changeset 28631:70a43ec47c61

Re-add accidentally discarded comment about YUVJ format.
author reimar
date Thu, 19 Feb 2009 12:19:55 +0000
parents acadba04afaf
children 6e90a47a6aaf
files fmt-conversion.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fmt-conversion.c	Thu Feb 19 11:42:05 2009 +0000
+++ b/fmt-conversion.c	Thu Feb 19 12:19:55 2009 +0000
@@ -50,14 +50,19 @@
     {IMGFMT_YVU9,  PIX_FMT_YUV410P},
     {IMGFMT_IF09,  PIX_FMT_YUV410P},
     {IMGFMT_YV12,  PIX_FMT_YUV420P},
-    {IMGFMT_YV12,  PIX_FMT_YUVJ420P},
     {IMGFMT_I420,  PIX_FMT_YUV420P},
     {IMGFMT_IYUV,  PIX_FMT_YUV420P},
     {IMGFMT_411P,  PIX_FMT_YUV411P},
     {IMGFMT_422P,  PIX_FMT_YUV422P},
+    {IMGFMT_444P,  PIX_FMT_YUV444P},
+
+    // YUVJ are YUV formats that use the full Y range and not just
+    // 16 - 235 (see colorspaces.txt).
+    // Currently they are all treated the same way.
+    {IMGFMT_YV12,  PIX_FMT_YUVJ420P},
     {IMGFMT_422P,  PIX_FMT_YUVJ422P},
-    {IMGFMT_444P,  PIX_FMT_YUV444P},
     {IMGFMT_444P,  PIX_FMT_YUVJ444P},
+
     {IMGFMT_XVMC_MOCO_MPEG2, PIX_FMT_XVMC_MPEG2_MC},
     {IMGFMT_XVMC_IDCT_MPEG2, PIX_FMT_XVMC_MPEG2_IDCT},
     {IMGFMT_VDPAU_MPEG1,     PIX_FMT_VDPAU_MPEG1},