Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Issue 1378033003: Android MediaCodecVideoDecoder: Manage lifetime of texture frames (Closed)

Created:
5 years, 2 months ago by magjed_webrtc
Modified:
5 years, 2 months ago
Reviewers:
AlexG, perkj_webrtc
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android MediaCodecVideoDecoder: Manage lifetime of texture frames This CL should be the last one in a series to finally unblock camera texture capture. The SurfaceTexture.updateTexImage() calls are moved from the video renderers into MediaCodecVideoDecoder, and the destructor of the texture frames will signal MediaCodecVideoDecoder that the frame has returned. This CL also removes the SurfaceTexture from the native handle and only exposes the texture matrix instead, because only the video source should access the SurfaceTexture. BUG=webrtc:4993 R=glaznev@webrtc.org, perkj@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/91b348c7029d843e06868ed12b728a809c53176c

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing perkj@s comments #

Total comments: 10

Patch Set 3 : Addressing Alexs comments #

Patch Set 4 : Add comment about disconnect() and synchronization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -166 lines) Patch
M talk/app/webrtc/java/android/org/webrtc/SurfaceViewRenderer.java View 1 chunk +1 line, -16 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoRendererGui.java View 1 2 1 chunk +3 lines, -17 lines 0 comments Download
M talk/app/webrtc/java/jni/androidmediadecoder_jni.cc View 1 16 chunks +28 lines, -42 lines 0 comments Download
M talk/app/webrtc/java/jni/native_handle_impl.h View 1 chunk +6 lines, -23 lines 0 comments Download
M talk/app/webrtc/java/jni/native_handle_impl.cc View 1 chunk +11 lines, -26 lines 0 comments Download
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java View 1 2 3 10 chunks +94 lines, -34 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/VideoRenderer.java View 4 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
magjed_webrtc
Please take a look.
5 years, 2 months ago (2015-10-05 06:49:19 UTC) #2
perkj_webrtc
Me like ! lgtm with nits https://codereview.webrtc.org/1378033003/diff/1/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc File talk/app/webrtc/java/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/1378033003/diff/1/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc#newcode487 talk/app/webrtc/java/jni/androidmediadecoder_jni.cc:487: if (!DeliverPendingOutputs(jni, kMediaCodecTimeoutMs ...
5 years, 2 months ago (2015-10-05 07:28:34 UTC) #3
magjed_webrtc
https://codereview.webrtc.org/1378033003/diff/1/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc File talk/app/webrtc/java/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/1378033003/diff/1/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc#newcode487 talk/app/webrtc/java/jni/androidmediadecoder_jni.cc:487: if (!DeliverPendingOutputs(jni, kMediaCodecTimeoutMs * 1000)) { On 2015/10/05 07:28:34, ...
5 years, 2 months ago (2015-10-05 09:49:55 UTC) #4
magjed_webrtc
Alex - ping.
5 years, 2 months ago (2015-10-06 17:55:42 UTC) #5
AlexG
https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java File talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java (right): https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java#newcode333 talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java:333: throw new IllegalStateException("Already holding a texture."); Print error message ...
5 years, 2 months ago (2015-10-06 23:27:35 UTC) #6
magjed_webrtc
https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java File talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java (right): https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java#newcode333 talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java:333: throw new IllegalStateException("Already holding a texture."); On 2015/10/06 23:27:35, ...
5 years, 2 months ago (2015-10-07 07:50:57 UTC) #7
AlexG
lgtm https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java File talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java (right): https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java#newcode355 talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java:355: synchronized (this) { On 2015/10/07 07:50:57, magjed_webrtc wrote: ...
5 years, 2 months ago (2015-10-07 17:04:30 UTC) #8
magjed_webrtc
https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java File talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java (right): https://codereview.webrtc.org/1378033003/diff/20001/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java#newcode355 talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java:355: synchronized (this) { On 2015/10/07 17:04:30, AlexG wrote: > ...
5 years, 2 months ago (2015-10-07 20:56:56 UTC) #9
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/91b348c7029d843e06868ed12b728a809c53176c Cr-Commit-Position: refs/heads/master@{#10203}
5 years, 2 months ago (2015-10-07 20:57:23 UTC) #10
magjed_webrtc
5 years, 2 months ago (2015-10-07 20:57:47 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
91b348c7029d843e06868ed12b728a809c53176c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698