Closed Bug 1841903 Opened 3 years ago Closed 3 years ago

Reuse Maybe-utils in VideoDecoder for VideoFrame and EncodedVideoChunk

Categories

(Core :: Audio/Video: Web Codecs, task, P1)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

(Blocks 2 open bugs)

Details

Attachments

(6 external files, 1 obsolete file)

The utils converting types among Maybe, Nullable, and Optional added in VideoDecoder should be reused in VideoFrame (e.g., VideoFrame::GetDuration()) and EncodedVideoChunk (e.g., EncodedVideoChunk::GetDuration()).

The utils for conversion among Maybe, Nullable, and Optional added in
VideoDecoder should be moved to WebCodecsUtils so other files like
VideoFrame and EncodedVideoChunk can reuse those functions

Depends on D182835

Depends on D182837

This patch add some empty lines right after some utils implementation
sections so now all the utils implementations start from one empty line
after their section descriptions

Depends on D182834

EncodedVideoChunk serialization will take a reference to the data
stored in the chunk. Using MediaByteBuffer is a better choice for data
storage since it implies it can be shared.

Depends on D182838

Comment on attachment 9342479 [details]
Bug 1841903 - Store EncodedVideoChunk data in MediaByteBuffer

Revision D182843 was moved to bug 1838984. Setting attachment 9342479 [details] to obsolete.

Attachment #9342479 - Attachment is obsolete: true
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/33021233c2e9 Move Maybe-utils to WebCodecUtils r=padenot https://hg.mozilla.org/integration/autoland/rev/1ce06e14e96b Add lines to align style r=padenot https://hg.mozilla.org/integration/autoland/rev/0027a9fd3c45 Reuse utils in VideoFrame and EncodedVideoChunk r=padenot https://hg.mozilla.org/integration/autoland/rev/61f6eaaa51d6 Use utils in ChunkData ctor r=padenot https://hg.mozilla.org/integration/autoland/rev/5cea29422288 Apply const to ChunkData members if possible r=padenot

Backed out for causing Video related build bustages

Backout link

Push with failures

Failure log

Flags: needinfo?(cchang)

Per https://google.github.io/styleguide/cppguide.html#The__define_Guard,
the define guard should be formed by the path

Depends on D182838

Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/065ed7d4aa36 Move Maybe-utils to WebCodecUtils r=padenot https://hg.mozilla.org/integration/autoland/rev/85ed2643fa93 Add lines to align style r=padenot https://hg.mozilla.org/integration/autoland/rev/f46d9f80e879 Reuse utils in VideoFrame and EncodedVideoChunk r=padenot https://hg.mozilla.org/integration/autoland/rev/25df3d359143 Use utils in ChunkData ctor r=padenot https://hg.mozilla.org/integration/autoland/rev/472a16c1f7dd Apply const to ChunkData members if possible r=padenot https://hg.mozilla.org/integration/autoland/rev/b336a3ad3e0e Fix define guard style r=media-playback-reviewers,alwu
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: