Closed
Bug 1192312
Opened 9 years ago
Closed 9 years ago
Use MediaCodecSource for camera recording since gonk L
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(feature-b2g:2.2r+, firefox43 fixed, b2g-v2.2r fixed, b2g-master fixed)
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file, 1 obsolete file)
10.17 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1187364 +++ Since android L, MediaCodecSource is used instead of OMXCodec. MediaCodec expose more capability than OMXCodec, it seems better to use MediaCodecSource if possible.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Comment 2•9 years ago
|
||
I confirmed that attachment 8645034 [details] [diff] [review] works on master nexus-5-l.
Assignee | ||
Comment 3•9 years ago
|
||
FYI: Diagram of MediaCodecSource related classes. https://github.com/sotaroikeda/android-diagrams/blob/master/media/MediaCodecSource_5.1.pdf
Assignee | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9345b4c6a8e6
Assignee | ||
Updated•9 years ago
|
Attachment #8645034 -
Flags: review?(aosmond)
Comment 5•9 years ago
|
||
Comment on attachment 8645034 [details] [diff] [review] patch - Use MediaCodecSource for camera recording since gonk L Review of attachment 8645034 [details] [diff] [review]: ----------------------------------------------------------------- r+ with some minor nits. ::: dom/camera/GonkRecorder.cpp @@ +1367,5 @@ > + // release the camera source due to the camera's lock > + // and unlock mechanism. > + if (cameraSource != NULL) { > + cameraSource->stop(); > + } Is this check necessary? It shouldn't be null, and if it is, we should fail in setupMPEG4Recording and setupMPEG2TSRecording before calling setupVideoEncoder.
Attachment #8645034 -
Flags: review?(aosmond) → review+
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Andrew Osmond [:aosmond] from comment #5) > > Is this check necessary? It shouldn't be null, and if it is, we should fail > in setupMPEG4Recording and setupMPEG2TSRecording before calling > setupVideoEncoder. On b2g, the check is not necessary. I am going to remove it. It exists on android to support video source surface.
Assignee | ||
Comment 7•9 years ago
|
||
Apply the comment. Carry "r=aosmond".
Attachment #8645034 -
Attachment is obsolete: true
Attachment #8648051 -
Flags: review+
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/db0d6f44e3e9
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S5 (21Aug)
Updated•9 years ago
|
feature-b2g: --- → 2.2r+
status-b2g-v2.2r:
--- → affected
Updated•9 years ago
|
status-b2g-master:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•