Closed Bug 1809570 Opened 3 years ago Closed 2 years ago

Add codec software/hardware decode status display in about:support for Android.

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

Unspecified
Android
enhancement

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: az, Assigned: az)

References

Details

Attachments

(3 files, 3 obsolete files)

This work required more substantial changes than expected, including to the interface to the Android API used to collect codec support information in Android PDMs over JNI. Several utility functions were added to help with this, including functions to collect HW accelerated decode support information in bulk. A full summary of the changes in depth can be found in the summary of this patch.

Pushed by azebrowski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8b60bf251af0 Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin https://hg.mozilla.org/integration/autoland/rev/bbccf0693489 Add utility functions to distinguish between SW/HW codec support on Android r=geckoview-reviewers,owlish https://hg.mozilla.org/integration/autoland/rev/394165fce635 Request and process per-codec SW/HW decode support for Android PDMs using JNI calls r=jolin https://hg.mozilla.org/integration/autoland/rev/849d3490fd92 Add per-codec SW/HW decode support info to about:support on Android r=jolin
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 111 Branch → ---

Backed out 4 changesets (Bug 1809570) for causing *.webm reftest failures.
Backout link
Push with failures <--> R6
Failure Log

Flags: needinfo?(azebrowski)

The previous failure was due to the check for hardware decode support in
AndroidDecoderModule relying solely on gfxVars::UseVP9HwDecode(). D166239 updates
HardwareCodecCapabilityUtils to distinguish between SW/HW decode, which
is used by D166240 as an additional check in AndroidDecoderModule.
This prevents a crash and causes two previously failing tests to now pass.

Attachment #9317766 - Attachment description: WIP: Bug 1809570 - Update test expectation for color_quads for yuv420p rendering on Android to expect a pass. r=jolin → Bug 1809570 - Update test expectation for color_quads for yuv420p rendering on Android to expect a pass. r=jolin
Attachment #9311668 - Attachment description: Bug 1809570 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin → WIP: Bug 1809570 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin
Attachment #9311669 - Attachment description: Bug 1809570 - Add utility functions to distinguish between SW/HW codec support on Android r=jolin → WIP: Bug 1809570 - Add utility functions to distinguish between SW/HW codec support on Android r=jolin
Depends on: 1822932

Comment on attachment 9311668 [details]
Bug 1809570 - Part 1 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin

Revision D166238 was moved to bug 1822932. Setting attachment 9311668 [details] to obsolete.

Attachment #9311668 - Attachment is obsolete: true

Comment on attachment 9311669 [details]
WIP: Bug 1809570 - Add utility functions to distinguish between SW/HW codec support on Android r=jolin

Revision D166239 was moved to bug 1822932. Setting attachment 9311669 [details] to obsolete.

Attachment #9311669 - Attachment is obsolete: true

Splitting this into two bugs, as I'd like to land the utility functions first to make sure that the changes aren't contributing to intermittents.

Flags: needinfo?(azebrowski)
Attachment #9311668 - Attachment is obsolete: false
Attachment #9311668 - Attachment description: WIP: Bug 1809570 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin → WIP: Bug 1809570 - Part 1 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin
Attachment #9311670 - Attachment description: Bug 1809570 - Request and process per-codec SW/HW decode support for Android PDMs using JNI calls r=jolin → WIP: Bug 1809570 - Part 2 - Request and process per-codec SW/HW decode support for Android PDMs using JNI calls r=jolin
Attachment #9317766 - Attachment description: Bug 1809570 - Update test expectation for color_quads for yuv420p rendering on Android to expect a pass. r=jolin → WIP: Bug 1809570 - Part 3 - Update test expectation for color_quads for yuv420p rendering on Android to expect a pass. r=jolin

Depends on D169869

Depends on D169869

Attachment #9331925 - Attachment is obsolete: true
Attachment #9311671 - Attachment description: Bug 1809570 - Add per-codec SW/HW decode support info to about:support on Android r=jolin → WIP: Bug 1809570 - Part 4 - Add per-codec SW/HW decode support info to about:support on Android r=jolin
Attachment #9311668 - Attachment description: WIP: Bug 1809570 - Part 1 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin → Bug 1809570 - Part 1 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin
Attachment #9311670 - Attachment description: WIP: Bug 1809570 - Part 2 - Request and process per-codec SW/HW decode support for Android PDMs using JNI calls r=jolin → Bug 1809570 - Part 2 - Request and process per-codec SW/HW decode support for Android PDMs using JNI calls r=jolin
Attachment #9317766 - Attachment description: WIP: Bug 1809570 - Part 3 - Update test expectation for color_quads for yuv420p rendering on Android to expect a pass. r=jolin → Bug 1809570 - Part 3 - Update test expectation for color_quads for yuv420p rendering on Android to expect a pass. r=jolin
Attachment #9311671 - Attachment description: WIP: Bug 1809570 - Part 4 - Add per-codec SW/HW decode support info to about:support on Android r=jolin → Bug 1809570 - Part 4 - Add per-codec SW/HW decode support info to about:support on Android r=jolin

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:az, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(jolin)
Flags: needinfo?(azebrowski)
Attachment #9311671 - Attachment description: Bug 1809570 - Part 4 - Add per-codec SW/HW decode support info to about:support on Android r=jolin → Bug 1809570 - Part 3 - Add per-codec SW/HW decode support info to about:support on Android r=jolin
Attachment #9317766 - Attachment is obsolete: true
Pushed by azebrowski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/91a01dde00f3 Part 1 - Add utility functions to convert between MIME type strings and codec SW/HW support enums. r=jolin https://hg.mozilla.org/integration/autoland/rev/bb1c49774fca Part 2 - Request and process per-codec SW/HW decode support for Android PDMs using JNI calls r=jolin https://hg.mozilla.org/integration/autoland/rev/e64c296cce76 Part 3 - Add per-codec SW/HW decode support info to about:support on Android r=jolin
Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Flags: needinfo?(jolin)
Flags: needinfo?(azebrowski)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: