Bug 1765187 Part 1: Track color primaries independently from coefficients. r=media...
commit949fa28f4fda6182314fbae538aacb57140f63cb
authorBrad Werth <bwerth@mozilla.com>
Mon, 10 Oct 2022 20:12:58 +0000 (10 20:12 +0000)
committerBrad Werth <bwerth@mozilla.com>
Mon, 10 Oct 2022 20:12:58 +0000 (10 20:12 +0000)
tree09d9717baeec2999a9798d46593f0498a14f2401
parentbdb516e93f7ab654e57dd60059287d7467c7f855
Bug 1765187 Part 1: Track color primaries independently from coefficients. r=media-playback-reviewers,jgilbert,alwu

This patch attempts to read color primary information from platform
agnostic decoders. It doesn't use any of this information to change how
the video frame is displayed.

It also cleans up some VPX transfer characteristics, to ensure they are
actually retrieved from the codec information, when available.

Differential Revision: https://phabricator.services.mozilla.com/D156362
19 files changed:
dom/media/MediaData.cpp
dom/media/MediaData.h
dom/media/MediaInfo.h
dom/media/ipc/MediaIPCUtils.h
dom/media/platforms/agnostic/AOMDecoder.cpp
dom/media/platforms/agnostic/BlankDecoderModule.cpp
dom/media/platforms/agnostic/DAV1DDecoder.cpp
dom/media/platforms/agnostic/DAV1DDecoder.h
dom/media/platforms/agnostic/VPXDecoder.cpp
dom/media/platforms/agnostic/VPXDecoder.h
dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h
dom/media/platforms/omx/OmxDataDecoder.cpp
dom/media/platforms/wrappers/MediaChangeMonitor.cpp
dom/media/webm/WebMDemuxer.cpp
gfx/layers/ImageContainer.h
gfx/thebes/gfxUtils.cpp
gfx/thebes/gfxUtils.h
image/decoders/nsAVIFDecoder.cpp