[vlc-devel] [PATCH 2 of 4] avcodec: add HDYC to known ffmpeg chroma table

Edouard Gomez ed.gomez at free.fr
Wed Oct 15 00:04:28 CEST 2008


# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1224021634 -7200
# Node ID 133c154c624d6d1faf7d12171275e851944996b2
# Parent  9564c1736b76c96f37fb85476d36496b3d7955bb
avcodec: add HDYC to known ffmpeg chroma table

As a first approximation, let's make HDYC be known as UYVY to avcodec.

diff --git a/modules/codec/avcodec/chroma.h b/modules/codec/avcodec/chroma.h
--- a/modules/codec/avcodec/chroma.h
+++ b/modules/codec/avcodec/chroma.h
@@ -76,6 +76,13 @@
     {VLC_FOURCC('Y','U','Y','2'), PIX_FMT_YUYV422, 0, 0, 0 },
     {VLC_FOURCC('Y','U','Y','V'), PIX_FMT_YUYV422, 0, 0, 0 },
     {VLC_FOURCC('U','Y','V','Y'), PIX_FMT_UYVY422, 0, 0, 0 },
+    /* The next entry for HDYC is more of a temporary hack.
+     * UYVY conforms to the BT601 standard making its Y samples use a reduced
+     * [16-235] range whereas HDYC conforms to the BT709 standard which makes
+     * its Y samples use the full [0-255] range.
+     * When HDYC is handled by both vlc and avcodec, then we should switch
+     * to the proper colorspace pixel format. */
+    {VLC_FOURCC('H','D','Y','C'), PIX_FMT_UYVY422, 0, 0, 0 },
     {VLC_FOURCC('Y','4','1','1'), PIX_FMT_UYYVYY411, 0, 0, 0 },
 
     /* Packed RGB formats */



More information about the vlc-devel mailing list