Closed Bug 1039182 Opened 10 years ago Closed 10 years ago

Add getGrapicBuffer interface to MediaCodecProxy

Categories

(Core :: Audio/Video, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
2.1 S3 (29aug)

People

(Reporter: bwu, Assigned: brsun)

References

Details

Attachments

(1 file, 2 obsolete files)

Add an interface, getOutputGraphicBufferFromIndex, to get GraphicBuffer from MediaCodec. 
This is currently blocked by bug 1009410.
Blocks: 1009410
Blocks: 1033903, 1033900, 1033969
No longer blocks: 1009410
Depends on: 1009410
Add getOutputGraphicBufferFromIndex() to get Graphic Buffer from MediaCodec. 
This needs to be called right after calling dequeueOutputBuffer().
This is part of 2.1 feature work on Async codec.
feature-b2g: --- → 2.1
Assignee: nobody → bwu
Target Milestone: --- → 2.1 S3 (29aug)
[Blocking Requested - why for this release]:

Per offline discussion with Ken Chang, Marvin Khoo and Blake Wu, I'm going to move this from 2.1 feat+ to 2.1? and nominate this as 2.1+ since it will largely improve the performance.
blocking-b2g: --- → 2.1?
feature-b2g: 2.1 → ---
It is a 2.1+ bug.
blocking-b2g: 2.1? → 2.1+
[Blocking Requested - why for this release]:

Hi Ken, Ivan and Eric! Can you explain why this should block the whole release?

Usually we do not block on performance improvements.

For reference, the reasons to block a release are listed at https://wiki.mozilla.org/B2G/Triage#Blocker_Triage_Guidelines.
blocking-b2g: 2.1+ → 2.1?
Use SFINAE trick and template specialization trick to wrap interface-difference of MediaCodec. So that the correct OutputGraphicBufferStub template class can be chosen during compile time.
Assignee: bwu → brsun
Attachment #8487040 - Flags: review?(sotaro.ikeda.g)
Comment on attachment 8487040 [details] [diff] [review]
bug1039182_add_graphic_buffer_interface_into_media_codec_proxy.patch

Review of attachment 8487040 [details] [diff] [review]:
-----------------------------------------------------------------

Nice!
Attachment #8487040 - Flags: review?(sotaro.ikeda.g) → review+
TBPL result seems good:
 - [default] media.omx.async.enabled pref-off: https://tbpl.mozilla.org/?tree=Try&rev=7b4aaa1ff606
 - media.omx.async.enabled pref-on: https://tbpl.mozilla.org/?tree=Try&rev=a2583a942188
Attachment #8487040 - Attachment is obsolete: true
Attachment #8487733 - Flags: review+
Keywords: checkin-needed
Attachment #8456705 - Attachment is obsolete: true
See Also: → 1009410
https://hg.mozilla.org/mozilla-central/rev/4eb5b760919a
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Hi Eric, triage group is trying to make a determination on why this blocks. See comment #5 - we automatically block on perf *regressions* but perf wins usually ride the trains. Is there a reason we should block here?

Also, we're still in the approvals stage - so maybe instead of requesting blocking, you can ask for approval on the patch and land that way.
Flags: needinfo?(echou)
(In reply to Dietrich Ayala (:dietrich) from comment #11)
> Hi Eric, triage group is trying to make a determination on why this blocks.
> See comment #5 - we automatically block on perf *regressions* but perf wins
> usually ride the trains. Is there a reason we should block here?
> 

Since this is not a perf regression, I'll remove the nomination (sorry for not noticing comment 5. You may want to ni me directly next time ;-) ). The reason we nominated this as a blocker was because we know that the patch could make a huge improvement on performance by using the new interface which has been created in bug 1009410.

> Also, we're still in the approvals stage - so maybe instead of requesting
> blocking, you can ask for approval on the patch and land that way.

Sure. Thanks Dietrich.
blocking-b2g: 2.1? → ---
Flags: needinfo?(echou)
Blocks: 1043274
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: