Closed Bug 1571051 Opened 6 years ago Closed 6 years ago

Fix some small problems for the platform encoder

Categories

(Core :: Audio/Video: Playback, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

There are some small problems for the platform encoder, we have to fix them before starting using the platform encoder.

We don't have a contraint for using PlatformEncoderModule in the specific thread only, so we should use thread-safe refcounting for it, like PlatformDecoderModule.

As we are not going to modify the CodecSpecific, it should keep const when we forward it.

If the encoded frame is a keyframe, we should also mark the MediaRawData which would contain the data from this encoded frame as a keyframe.

The second plane should store data of the Cb buffer's value, not the Cr's.

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f173d38fe963 part1 : use thread safe refcounting for PlatformEncoderModule. r=jolin https://hg.mozilla.org/integration/autoland/rev/be1941df5f7c part2 : keep CodecSpecific const when doing the std::forward. r=jolin https://hg.mozilla.org/integration/autoland/rev/2b7023390939 part3 : mark MediaRawData as a keyframe. r=jolin https://hg.mozilla.org/integration/autoland/rev/ae95c555ecb7 part4 : use Cb buffer in the second plane. r=jolin
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: