[vlc-devel] [PATCH 2 of 4] avcodec: add HDYC to known ffmpeg chroma table
David Flynn
davidf+nntp at woaf.net
Mon Nov 17 17:14:21 CET 2008
On 2008-10-14, Edouard Gomez <ed.gomez at free.fr> wrote:
> 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 },
Just for completeness, the comment should read:
/* The next entry for HDYC is more of a temporary hack.
* UYVY and HDYC use the same sample positions, but
* UYVY uses Rec601 colourimetry rather than Rec709 for HDYC */
..david
More information about the vlc-devel
mailing list