Closed Bug 2033598 Opened 6 months ago Closed 6 months ago

Support HDR Metadata on supported codecs

Categories

(Core :: Audio/Video: Playback, task)

task

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(5 external files)

This bug is used to support adding HDR metadata into the video info.

Blocks: 2033628

SEI type 137 (mastering display colour volume) and type 144 (content
light level info) are defined in ITU-T H.265 (08/2021) §D.3.26 and
§D.3.27.

METADATA_TYPE_HDR_MDCV (type 1) and METADATA_TYPE_HDR_CLL (type 2) are
defined in the AV1 Bitstream & Decoding Process Specification §6.7.1.

Parse MasteringMetadata from WebM container and store in
gfx::HDRMetadata. Add a GTest to verify the parsed values using a
minimal synthetic VP9/WebM file generated with ffmpeg.

Wire the HDR metadata parsers introduced in Parts 2-4 into the video
pipeline so that VideoInfo::mHDRMetadata is populated for HEVC, AV1,
and VP9/WebM content. This makes the mastering display colour volume
and content light level data available to downstream consumers for
correct HDR display.

Depends on: 2034229
Depends on: 2034234
Blocks: 2034249
Pushed by alwu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e9327122a008 https://hg.mozilla.org/integration/autoland/rev/76c68dc7af29 Part 1: Define gfx::HDRMetadata and add to VideoInfo and IPC. r=media-playback-reviewers,kinetik https://github.com/mozilla-firefox/firefox/commit/6c6bc244dde9 https://hg.mozilla.org/integration/autoland/rev/a9f648c6b12f Part 2: Parse HEVC SEI type 137/144 into mHDRMetadata. r=media-playback-reviewers,kinetik https://github.com/mozilla-firefox/firefox/commit/ef0f04e56bab https://hg.mozilla.org/integration/autoland/rev/a3e3e8f1db4a Part 3: Parse AV1 Metadata OBUs (MDCV/CLL) into mHDRMetadata. r=media-playback-reviewers,kinetik https://github.com/mozilla-firefox/firefox/commit/f3a261748b96 https://hg.mozilla.org/integration/autoland/rev/5dbbaae3fbf7 Part 4: Parse VP9/WebM container mastering metadata into mHDRMetadata. r=media-playback-reviewers,kinetik https://github.com/mozilla-firefox/firefox/commit/a3e4377ab1cb https://hg.mozilla.org/integration/autoland/rev/8f6649532edc Part 5: Wire HDR metadata into video config for HEVC, AV1, and VP9/WebM. r=media-playback-reviewers,kinetik https://github.com/mozilla-firefox/firefox/commit/20b00cdddd17 https://hg.mozilla.org/integration/autoland/rev/71efa6de107e apply code formatting via Lando
QA Whiteboard: [qa-triage-done-c153/b152]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: