summaryrefslogtreecommitdiff
path: root/libavutil/pixfmt.h
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-12-08 11:17:01 +0100
committerAnton Khirnov <anton@khirnov.net>2016-07-02 09:35:23 +0200
commitb7c5f885233a7b8692140c920d9f43220dc830d9 (patch)
tree8a597fdad01b11ebf49a27de41164c6b56a82c1a /libavutil/pixfmt.h
parentb55566db4c51d920a6496455bb30a608e5a50a41 (diff)
downloadffmpeg-b7c5f885233a7b8692140c920d9f43220dc830d9.tar.gz
pixfmt: add P010 pixel format
P010 is the 10-bit variant of NV12 (planar luma, packed chroma), using two bytes per component to store 10-bit data plus 6-bit zeroes in the LSBs. Signed-off-by: Anton Khirnov <anton@khirnov.net>
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 9a5903b483..8a8d624a37 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -227,6 +227,9 @@ enum AVPixelFormat {
*/
AV_PIX_FMT_CUDA,
+ AV_PIX_FMT_P010LE, ///< like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, little-endian
+ AV_PIX_FMT_P010BE, ///< like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, big-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
};
@@ -282,6 +285,7 @@ enum AVPixelFormat {
#define AV_PIX_FMT_XYZ12 AV_PIX_FMT_NE(XYZ12BE, XYZ12LE)
#define AV_PIX_FMT_NV20 AV_PIX_FMT_NE(NV20BE, NV20LE)
+#define AV_PIX_FMT_P010 AV_PIX_FMT_NE(P010BE, P010LE)
/**
* Chromaticity coordinates of the source primaries.