On Wed, Jul 19, 2017 at 9:47 AM, chris319 via dev-media <
[email protected]> wrote:


> Where in the Firefox source code is the video color space determined
> (bt.601 or bt.709)?
>

YUV buffers default to bt.601
https://searchfox.org/mozilla-central/source/dom/media/MediaData.h#470 but
decoders can override this, e.g.
https://searchfox.org/mozilla-central/source/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp#325
I didn't find any other instances of this though.

The conversion is applied in software, e.g.
https://searchfox.org/mozilla-central/source/gfx/ycbcr/scale_yuv_argb.cpp#207
but we also use shaders in the compositor, which at least have access to
the setting.

I don't think we currently maintain a correct color space for most video.

HTH,
 -r
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to