History

Add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Peter Ross committed 15 years ago

Commit e309fdc1 parent 969eb214 files · +30 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavutil/avutil.h +1 −1
  3. libavutil/pixdesc.c +23 −0
  4. libavutil/pixfmt.h +3 −0
doc/APIchanges+3−0
@@ -12,6 +12,9 @@ libavutil: 2009-03-08 · 11 unmodified lines
1212
1313 API changes, most recent first:
1414
15+2011-XX-XX - XXXXXXX - lavu XX.XXX.X - pixfmt.h
16+ Add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
17+
1518 2011-02-20 - e731b8d - lavf 52.102.0 - avio.h
1619 * e731b8d - rename init_put_byte() to ffio_init_context(), deprecating the
1720 original, and move it to a private header so it is no longer
libavutil/avutil.h+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
4141
4242 #define LIBAVUTIL_VERSION_MAJOR 50
43−#define LIBAVUTIL_VERSION_MINOR 39
43+#define LIBAVUTIL_VERSION_MINOR 40
4444 #define LIBAVUTIL_VERSION_MICRO 0
4545
4646 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
libavutil/pixdesc.c+23−0
@@ -630,6 +630,29 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { · 629 unmodified lines
630630 {0,1,1,0,3}, /* B */
631631 },
632632 },
633+ [PIX_FMT_BGR48BE] = {
634+ .name = "bgr48be",
635+ .nb_components= 3,
636+ .log2_chroma_w= 0,
637+ .log2_chroma_h= 0,
638+ .comp = {
639+ {0,5,1,0,15}, /* B */
640+ {0,5,3,0,15}, /* G */
641+ {0,5,5,0,15}, /* R */
642+ },
643+ .flags = PIX_FMT_BE,
644+ },
645+ [PIX_FMT_BGR48LE] = {
646+ .name = "bgr48le",
647+ .nb_components= 3,
648+ .log2_chroma_w= 0,
649+ .log2_chroma_h= 0,
650+ .comp = {
651+ {0,5,1,0,15}, /* B */
652+ {0,5,3,0,15}, /* G */
653+ {0,5,5,0,15}, /* R */
654+ },
655+ },
633656 [PIX_FMT_BGR565BE] = {
634657 .name = "bgr565be",
635658 .nb_components= 3,
libavutil/pixfmt.h+3−0
@@ -133,6 +133,8 @@ enum PixelFormat { · 132 unmodified lines
133133 PIX_FMT_BGR444BE, ///< packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), big-endian, most significant bits to 1
134134 PIX_FMT_BGR444LE, ///< packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), little-endian, most significant bits to 1
135135 PIX_FMT_Y400A, ///< 8bit gray, 8bit alpha
136+ PIX_FMT_BGR48BE, ///< packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big-endian
137+ PIX_FMT_BGR48LE, ///< packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as little-endian
136138 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
137139 };
138140
@@ -152,6 +154,7 @@ enum PixelFormat { · 13 unmodified lines
152154 #define PIX_FMT_RGB565 PIX_FMT_NE(RGB565BE, RGB565LE)
153155 #define PIX_FMT_RGB555 PIX_FMT_NE(RGB555BE, RGB555LE)
154156 #define PIX_FMT_RGB444 PIX_FMT_NE(RGB444BE, RGB444LE)
157+#define PIX_FMT_BGR48 PIX_FMT_NE(BGR48BE, BGR48LE)
155158 #define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE)
156159 #define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE)
157160 #define PIX_FMT_BGR444 PIX_FMT_NE(BGR444BE, BGR444LE)

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