summaryrefslogtreecommitdiff
path: root/libavutil/pixfmt.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-08-05 14:19:26 +0200
committerPaul B Mahol <onemda@gmail.com>2017-08-07 13:06:51 +0200
commitab6d89d7ee5cdb4b5e58efbf5bbc2517e39aa705 (patch)
treedf22194ffa8d3e31d37b404a337e025f209c26a5 /libavutil/pixfmt.h
parent5621a99e27511f9eabcf097764cb5ca554aac639 (diff)
downloadffmpeg-ab6d89d7ee5cdb4b5e58efbf5bbc2517e39aa705.tar.gz
libavutil: add GRAY9 pixel format
Diffstat (limited to 'libavutil/pixfmt.h')
-rw-r--r--libavutil/pixfmt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index e1e4074bee..5798507e74 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -326,6 +326,9 @@ enum AVPixelFormat {
*/
AV_PIX_FMT_D3D11,
+ AV_PIX_FMT_GRAY9BE, ///< Y , 9bpp, big-endian
+ AV_PIX_FMT_GRAY9LE, ///< Y , 9bpp, 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
};
@@ -342,6 +345,7 @@ enum AVPixelFormat {
#define AV_PIX_FMT_0RGB32 AV_PIX_FMT_NE(0RGB, BGR0)
#define AV_PIX_FMT_0BGR32 AV_PIX_FMT_NE(0BGR, RGB0)
+#define AV_PIX_FMT_GRAY9 AV_PIX_FMT_NE(GRAY9BE, GRAY9LE)
#define AV_PIX_FMT_GRAY10 AV_PIX_FMT_NE(GRAY10BE, GRAY10LE)
#define AV_PIX_FMT_GRAY12 AV_PIX_FMT_NE(GRAY12BE, GRAY12LE)
#define AV_PIX_FMT_GRAY16 AV_PIX_FMT_NE(GRAY16BE, GRAY16LE)