summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorKirill Gavrilov <kirill@sview.ru>2013-08-12 19:29:35 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-08-12 18:10:14 +0200
commit53f309c617394c0c8d955ac907863590d268292b (patch)
treed31f1e48a51f63fbc985781e344f0978a141087c /libavutil
parent2395ae22ce8b9eea7cb4ebd9f8d6d707496119b4 (diff)
pixfmt: extend description for planar YUV 9/10 bits formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/pixfmt.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index d3d39ad9da..57da2a3ed9 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -146,9 +146,11 @@ enum AVPixelFormat {
AV_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
AV_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
- //the following 10 formats have the disadvantage of needing 1 format for each bit depth, thus
- //If you want to support multiple bit depths, then using AV_PIX_FMT_YUV420P16* with the bpp stored separately
- //is better
+ /**
+ * The following 12 formats have the disadvantage of needing 1 format for each bit depth.
+ * Notice that each 9/10 bits sample is stored in 16 bits with extra padding.
+ * If you want to support multiple bit depths, then using AV_PIX_FMT_YUV420P16* with the bpp stored separately is better.
+ */
AV_PIX_FMT_YUV420P9BE, ///< planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
AV_PIX_FMT_YUV420P9LE, ///< planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
AV_PIX_FMT_YUV420P10BE,///< planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian