Use same interface to convert YUV data w/ or w/out alpha to BGR* buffer
Categories
(Core :: Graphics, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox130 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
Details
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Since PlanarAlphaData
is included in PlanarYCbCrData
, ConvertYCbCrAToARGB(const layers::PlanarYCbCrData& aYCbCr, const layers::PlanarAlphaData& aAlpha, ... )
can be reduced to ConvertYCbCrAToARGB(const layers::PlanarYCbCrData& aYCbCr, ...)
and it makes sense to have a general API to convert the given YUV data into a BGRA buffer.
Assignee | ||
Comment 1•11 months ago
|
||
Depends on D215159
Assignee | ||
Comment 2•11 months ago
|
||
Depends on D215952
Assignee | ||
Comment 3•11 months ago
|
||
Depends on D215953
Assignee | ||
Comment 4•11 months ago
|
||
Depends on D215954
Assignee | ||
Comment 5•11 months ago
|
||
Depends on D215956
Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Assignee | ||
Comment 6•11 months ago
|
||
Currently, ConvertYCbCrAToARGB
is only used in nsAVIFDecoder
and the
usage doesn't scale the image, so ConvertYCbCrAToARGB
can be replaced
with the ConvertYCbCrToRGB32
introduced in the previous patch.
Depends on D215956
Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Assignee | ||
Comment 7•11 months ago
|
||
This patch simplifies the code path in nsAVIFDecoder
. Previously,
nsAVIFDecoder
relied on both ConvertYCbCrToRGB
and
ConvertYCbCrToRGB32
to convert YUV data to BGRX or BGRA, depending on
the presence of an alpha channel. With recent changes, nsAVIFDecoder
can now use ConvertYCbCrToRGB32
exclusively to streamline the
conversion process.
Depends on D215985
Updated•11 months ago
|
Comment 9•10 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8f96ec16bcec
https://hg.mozilla.org/mozilla-central/rev/3050cc69ee08
https://hg.mozilla.org/mozilla-central/rev/a98ee51e1b1f
https://hg.mozilla.org/mozilla-central/rev/0bccf07f3774
https://hg.mozilla.org/mozilla-central/rev/90cdcc49bcbd
https://hg.mozilla.org/mozilla-central/rev/745b3e3d9636
https://hg.mozilla.org/mozilla-central/rev/20f587028f0e
Description
•