Closed Bug 1643375 Opened 5 years ago Closed 5 years ago

Remove YCbCrBuffer::Plane::mOffset

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: bryce, Assigned: bryce)

Details

Attachments

(1 file, 1 obsolete file)

We can remove the mOffset member from YCbCrBuffer::Plane and instead just roll any offset into the data pointer when we store the planes.

Using an offset makes sense if we only store a single pointer and then offset into each plane, but since each plane has its own pointer, we don't need the offset.

Because we store each plane's data pointer we don't need to store a separate
offset, we can just roll that offset into the pointer for that plane.

This helps remove a lot of code where we're not using the offset anyway, and in
the Chromium CDM case we simply roll the offset into our data pointer.

The CDM header bump has moved some enums, as well as using enum classes instead
of old style enums. This patch updates consumers of these enums to be compatible
with the new headers.

Drive by remove using namespace cdm from a couple of files as

  • In some places I'd already been using fully qualified names.
  • I prefer the fully qualified names as they make it clear when enums are coming
    from the cdm namespace and cdm:: is not a particularly more verbose thing to
    have on identifiers.

Depends on D78341

Whoops, looks like patch 2 there is on the wrong bug. Fixing.

Comment on attachment 9154267 [details]
Bug 1643375 - Update enums that have changed with CDM header bump. r?alwu,dminor

Revision D78343 was moved to bug 1623651. Setting attachment 9154267 [details] to obsolete.

Attachment #9154267 - Attachment is obsolete: true
Pushed by bvandyk@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/74114077fc6a Remove VideoData::YCbCrBuffer::Plane::mOffset. r=alwu
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: