History

Merge commit 'e9abafca278f87e1ecc6d50091d99b73ff63c9a6'

* commit 'e9abafca278f87e1ecc6d50091d99b73ff63c9a6': avutil: add AV_PIX_FMT_YA16 pixel format Conflicts: libavutil/pixdesc.c libavutil/pixfmt.h libavutil/version.h

Michael Niedermayer committed 12 years ago

Commit 6017c982 parents 4c8bc6f e9abafc4 files · +28 −2Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavutil/pixdesc.c +18 −0
  3. libavutil/pixfmt.h +5 −0
  4. libavutil/version.h +2 −2
doc/APIchanges+3−0
@@ -15,6 +15,9 @@ libavutil: 2012-10-22 · 14 unmodified lines
1515
1616 API changes, most recent first:
1717
18+2014-08-xx - xxxxxxx - lavu 53.22.0 - pixfmt.h
19+ Add AV_PIX_FMT_YA16 pixel format for 16 bit packed gray with alpha.
20+
1821 2014-08-xx - xxxxxxx - lavu 53.21.1 - avstring.h
1922 Rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8 to better identify the format.
2023 An alias pixel format and color space name are provided for compatibility.
libavutil/pixdesc.c+18−0
@@ -1560,6 +1560,24 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 1559 unmodified lines
15601560 .flags = AV_PIX_FMT_FLAG_ALPHA,
15611561 .alias = "gray8a",
15621562 },
1563+ [AV_PIX_FMT_YA16LE] = {
1564+ .name = "ya16le",
1565+ .nb_components = 2,
1566+ .comp = {
1567+ { 0, 3, 1, 0, 15 }, /* Y */
1568+ { 0, 3, 3, 0, 15 }, /* A */
1569+ },
1570+ .flags = AV_PIX_FMT_FLAG_ALPHA,
1571+ },
1572+ [AV_PIX_FMT_YA16BE] = {
1573+ .name = "ya16be",
1574+ .nb_components = 2,
1575+ .comp = {
1576+ { 0, 3, 1, 0, 15 }, /* Y */
1577+ { 0, 3, 3, 0, 15 }, /* A */
1578+ },
1579+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_ALPHA,
1580+ },
15631581 [AV_PIX_FMT_GBRP] = {
15641582 .name = "gbrp",
15651583 .nb_components = 3,
libavutil/pixfmt.h+5−0
@@ -236,6 +236,10 @@ enum AVPixelFormat { · 235 unmodified lines
236236
237237 AV_PIX_FMT_VDA, ///< HW acceleration through VDA, data[3] contains a CVPixelBufferRef
238238
239+ AV_PIX_FMT_YA16BE, ///< 16bit gray, 16bit alpha (big-endian)
240+ AV_PIX_FMT_YA16LE, ///< 16bit gray, 16bit alpha (little-endian)
241+
242+
239243 #ifndef AV_PIX_FMT_ABI_GIT_MASTER
240244 AV_PIX_FMT_RGBA64BE=0x123, ///< packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian
241245 AV_PIX_FMT_RGBA64LE, ///< packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian
@@ -320,6 +324,7 @@ enum AVPixelFormat { · 78 unmodified lines
320324 #define AV_PIX_FMT_0BGR32 AV_PIX_FMT_NE(0BGR, RGB0)
321325
322326 #define AV_PIX_FMT_GRAY16 AV_PIX_FMT_NE(GRAY16BE, GRAY16LE)
327+#define AV_PIX_FMT_YA16 AV_PIX_FMT_NE(YA16BE, YA16LE)
323328 #define AV_PIX_FMT_RGB48 AV_PIX_FMT_NE(RGB48BE, RGB48LE)
324329 #define AV_PIX_FMT_RGB565 AV_PIX_FMT_NE(RGB565BE, RGB565LE)
325330 #define AV_PIX_FMT_RGB555 AV_PIX_FMT_NE(RGB555BE, RGB555LE)
libavutil/version.h+2−2
@@ -56,8 +56,8 @@ · 55 unmodified lines
5656 */
5757
5858 #define LIBAVUTIL_VERSION_MAJOR 52
59−#define LIBAVUTIL_VERSION_MINOR 96
60−#define LIBAVUTIL_VERSION_MICRO 101
59+#define LIBAVUTIL_VERSION_MINOR 97
60+#define LIBAVUTIL_VERSION_MICRO 100
6161
6262 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
6363 LIBAVUTIL_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t