Closed Bug 1037378 Opened 10 years ago Closed 6 years ago

Have a way to create hardware / software MediaCodec on demand.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: brsun, Unassigned)

References

Details

This is a followup bug of bug 904177. MediaCodec doesn't have any interface to select hardware-only or software-only codec during the creation time. We should figure out how we can control this configuration.
How about using OMXCodec::findMatchingCodecs()?
IIRC, you can use the following function to create MediaCodec with HW codec component name. 
MediaCodec::CreateByComponentName(const sp<ALooper> &looper, const char *name).
For the "name", it could be found via MediaCodecList.
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity.
Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.