--- Black and white gradients never looked better! Vittorio doc/APIchanges | 3 +++ libavutil/pixdesc.c | 19 +++++++++++++++++++ libavutil/pixfmt.h | 5 +++++ libavutil/version.h | 4 ++-- 4 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges index 9535b88..64ba875 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,9 @@ libavutil: 2013-12-xx API changes, most recent first: +2014-07-xx - xxxxxxx - lavu 53.19.0 - pixfmt.h + Add AV_PIX_FMT_GRAY16A pixel format. + 2014-07-xx - xxxxxxx - lavu 53.18.0 - display.h Add av_display_matrix_flip() to flip the transformation matrix. diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 9683688..6fced3a 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -1344,6 +1344,24 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { }, .flags = AV_PIX_FMT_FLAG_ALPHA, }, + [AV_PIX_FMT_GRAY16ALE] = { + .name = "gray16ale", + .nb_components = 2, + .comp = { + { 0, 3, 1, 0, 15 }, /* Y */ + { 0, 3, 3, 0, 15 }, /* A */ + }, + .flags = AV_PIX_FMT_FLAG_ALPHA, + }, + [AV_PIX_FMT_GRAY16ABE] = { + .name = "gray16abe", + .nb_components = 2, + .comp = { + { 0, 3, 1, 0, 15 }, /* Y */ + { 0, 3, 3, 0, 15 }, /* A */ + }, + .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_ALPHA, + }, [AV_PIX_FMT_GBRP] = { .name = "gbrp", .nb_components = 3, @@ -1633,6 +1651,7 @@ enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt) switch (pix_fmt) { PIX_FMT_SWAP_ENDIANNESS(GRAY16); + PIX_FMT_SWAP_ENDIANNESS(GRAY16A); PIX_FMT_SWAP_ENDIANNESS(RGB48); PIX_FMT_SWAP_ENDIANNESS(RGB565); PIX_FMT_SWAP_ENDIANNESS(RGB555); diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 0c9467e..eadc501 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -199,6 +199,10 @@ enum AVPixelFormat { AV_PIX_FMT_YVYU422, ///< packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb AV_PIX_FMT_VDA, ///< HW acceleration through VDA, data[3] contains a CVPixelBufferRef + + AV_PIX_FMT_GRAY16ABE, ///< 16bit gray, 16bit alpha (big-endian) + AV_PIX_FMT_GRAY16ALE, ///< 16bit gray, 16bit alpha (little-endian) + AV_PIX_FMT_NB, ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions #if FF_API_PIX_FMT @@ -228,6 +232,7 @@ enum AVPixelFormat { #define AV_PIX_FMT_BGR555 AV_PIX_FMT_NE(BGR555BE, BGR555LE) #define AV_PIX_FMT_BGR444 AV_PIX_FMT_NE(BGR444BE, BGR444LE) #define AV_PIX_FMT_BGRA64 AV_PIX_FMT_NE(BGRA64BE, BGRA64LE) +#define AV_PIX_FMT_GRAY16A AV_PIX_FMT_NE(GRAY16ABE, GRAY16ALE) #define AV_PIX_FMT_YUV420P9 AV_PIX_FMT_NE(YUV420P9BE , YUV420P9LE) #define AV_PIX_FMT_YUV422P9 AV_PIX_FMT_NE(YUV422P9BE , YUV422P9LE) diff --git a/libavutil/version.h b/libavutil/version.h index 98f7037..e981948 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -54,8 +54,8 @@ */ #define LIBAVUTIL_VERSION_MAJOR 53 -#define LIBAVUTIL_VERSION_MINOR 18 -#define LIBAVUTIL_VERSION_MICRO 1 +#define LIBAVUTIL_VERSION_MINOR 19 +#define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ LIBAVUTIL_VERSION_MINOR, \ -- 1.8.5.2 (Apple Git-48) _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel