summaryrefslogtreecommitdiff
path: root/libavutil/pixfmt.h
diff options
context:
space:
mode:
authorLinjie Fu <linjie.fu@intel.com>2020-01-15 14:58:38 +0800
committerMark Thompson <sw@jkqxz.net>2020-02-24 00:09:51 +0000
commit1c37cad084041c74c6f21505e24670611e6f28a5 (patch)
tree412febe560f3055edeb524e625d40093238e7bb6 /libavutil/pixfmt.h
parent4627a56d46a07dd2384c92310147cabac98b4539 (diff)
downloadffmpeg-1c37cad084041c74c6f21505e24670611e6f28a5.tar.gz
lavu/pix_fmt: add new pixel format y210
Add some packed 4:2:2 10-bit pixel formats for hardware decode support in VAAPI and QSV. Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Diffstat (limited to 'libavutil/pixfmt.h')
-rw-r--r--libavutil/pixfmt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index e1a511758b..1c625cfc8a 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -355,6 +355,9 @@ enum AVPixelFormat {
*/
AV_PIX_FMT_VULKAN,
+ AV_PIX_FMT_Y210BE, ///< packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, big-endian
+ AV_PIX_FMT_Y210LE, ///< packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, 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
};
@@ -443,6 +446,8 @@ enum AVPixelFormat {
#define AV_PIX_FMT_P010 AV_PIX_FMT_NE(P010BE, P010LE)
#define AV_PIX_FMT_P016 AV_PIX_FMT_NE(P016BE, P016LE)
+#define AV_PIX_FMT_Y210 AV_PIX_FMT_NE(Y210BE, Y210LE)
+
/**
* Chromaticity coordinates of the source primaries.
* These values match the ones defined by ISO/IEC 23001-8_2013 ยง 7.1.