mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
pixdesc/pixfmt: Add XYZ colorspace for XYZ 12-bit values
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
5e46f6b5b7
commit
8c65264595
@ -1365,6 +1365,30 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
|
|||||||
.log2_chroma_h = 1,
|
.log2_chroma_h = 1,
|
||||||
.flags = PIX_FMT_HWACCEL,
|
.flags = PIX_FMT_HWACCEL,
|
||||||
},
|
},
|
||||||
|
[AV_PIX_FMT_XYZ12LE] = {
|
||||||
|
.name = "xyz12le",
|
||||||
|
.nb_components = 3,
|
||||||
|
.log2_chroma_w = 0,
|
||||||
|
.log2_chroma_h = 0,
|
||||||
|
.comp = {
|
||||||
|
{ 0, 5, 1, 4, 11 }, /* X */
|
||||||
|
{ 0, 5, 3, 4, 11 }, /* Y */
|
||||||
|
{ 0, 5, 5, 4, 11 }, /* Z */
|
||||||
|
},
|
||||||
|
/*.flags = -- not used*/
|
||||||
|
},
|
||||||
|
[AV_PIX_FMT_XYZ12BE] = {
|
||||||
|
.name = "xyz12be",
|
||||||
|
.nb_components = 3,
|
||||||
|
.log2_chroma_w = 0,
|
||||||
|
.log2_chroma_h = 0,
|
||||||
|
.comp = {
|
||||||
|
{ 0, 5, 1, 4, 11 }, /* X */
|
||||||
|
{ 0, 5, 3, 4, 11 }, /* Y */
|
||||||
|
{ 0, 5, 5, 4, 11 }, /* Z */
|
||||||
|
},
|
||||||
|
.flags = PIX_FMT_BE,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static enum AVPixelFormat get_pix_fmt_internal(const char *name)
|
static enum AVPixelFormat get_pix_fmt_internal(const char *name)
|
||||||
|
@ -179,6 +179,8 @@ enum AVPixelFormat {
|
|||||||
AV_PIX_FMT_YUVA444P16BE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
|
AV_PIX_FMT_YUVA444P16BE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
|
||||||
AV_PIX_FMT_YUVA444P16LE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
|
AV_PIX_FMT_YUVA444P16LE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
|
||||||
AV_PIX_FMT_VDPAU, ///< HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface
|
AV_PIX_FMT_VDPAU, ///< HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface
|
||||||
|
AV_PIX_FMT_XYZ12LE, ///< packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as little-endian, the 4 lower bits are set to 0
|
||||||
|
AV_PIX_FMT_XYZ12BE, ///< packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as big-endian, the 4 lower bits are set to 0
|
||||||
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
|
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
|
#if FF_API_PIX_FMT
|
||||||
@ -231,6 +233,8 @@ enum AVPixelFormat {
|
|||||||
#define AV_PIX_FMT_YUVA422P16 AV_PIX_FMT_NE(YUVA422P16BE, YUVA422P16LE)
|
#define AV_PIX_FMT_YUVA422P16 AV_PIX_FMT_NE(YUVA422P16BE, YUVA422P16LE)
|
||||||
#define AV_PIX_FMT_YUVA444P16 AV_PIX_FMT_NE(YUVA444P16BE, YUVA444P16LE)
|
#define AV_PIX_FMT_YUVA444P16 AV_PIX_FMT_NE(YUVA444P16BE, YUVA444P16LE)
|
||||||
|
|
||||||
|
#define AV_PIX_FMT_XYZ12 AV_PIX_FMT_NE(XYZ12BE, XYZ12LE)
|
||||||
|
|
||||||
#if FF_API_PIX_FMT
|
#if FF_API_PIX_FMT
|
||||||
#define PixelFormat AVPixelFormat
|
#define PixelFormat AVPixelFormat
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_MAJOR 52
|
#define LIBAVUTIL_VERSION_MAJOR 52
|
||||||
#define LIBAVUTIL_VERSION_MINOR 9
|
#define LIBAVUTIL_VERSION_MINOR 10
|
||||||
#define LIBAVUTIL_VERSION_MICRO 0
|
#define LIBAVUTIL_VERSION_MICRO 0
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
||||||
|
Loading…
Reference in New Issue
Block a user