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

Issue 1257043004: AppRTCDemo: Render each video in a separate SurfaceView (Closed)

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

Description

AppRTCDemo: Render each video in a separate SurfaceView This CL introduces a new org.webrtc.VideoRenderer.Callbacks implementation called SurfaceViewRenderer that renders each video stream in its own SurfaceView. AppRTCDemo is updated to use this new rendering. This CL also does the following changes: * Make the VideoRenderer.Callbacks interface asynchronous and require that renderFrameDone() is called for every renderFrame(). In JNI, this is implemented with cricket::VideoFrame::Copy()/delete. * Make public static helper functions: convertScalingTypeToVisibleFraction(), getDisplaySize(), and getTextureMatrix(). * Introduces new helper functions surfaceWidth()/surfaceHeight() in EGlBase that allows to query the surface size. * Introduce PercentFrameLayout that implements the percentage layout that is used by AppRTCDemo. BUG=webrtc:4742 Committed: https://crrev.com/05bfbe47ef6bcc9ca731c0fa0d5cd15a4f21e93f Cr-Commit-Position: refs/heads/master@{#9699}

Patch Set 1 #

Total comments: 20

Patch Set 2 : addressing alex's comments #

Total comments: 6

Patch Set 3 : No stretched frames. Handle unpacked and odd YUV frames. New helper class. #

Patch Set 4 : Change license header for PercentFrameLayout.java #

Unified diffs Side-by-side diffs Delta from patch set Stats (+834 lines, -129 lines) Patch
M talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/EglBase.java View 1 1 chunk +12 lines, -0 lines 0 comments Download
A talk/app/webrtc/java/android/org/webrtc/RendererCommon.java View 1 2 1 chunk +126 lines, -0 lines 0 comments Download
A talk/app/webrtc/java/android/org/webrtc/SurfaceViewRenderer.java View 1 2 1 chunk +474 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoRendererGui.java View 1 2 16 chunks +17 lines, -79 lines 0 comments Download
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 5 chunks +12 lines, -4 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/VideoRenderer.java View 1 2 7 chunks +26 lines, -5 lines 0 comments Download
M talk/app/webrtc/java/testcommon/src/org/webrtc/PeerConnectionTest.java View 1 2 chunks +2 lines, -0 lines 0 comments Download
M talk/libjingle.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/res/layout/activity_call.xml View 1 2 1 chunk +18 lines, -3 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java View 1 2 9 chunks +47 lines, -37 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/CallFragment.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
A webrtc/examples/androidapp/src/org/appspot/apprtc/PercentFrameLayout.java View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
M webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
magjed_webrtc
Please take a look.
5 years, 4 months ago (2015-08-03 17:48:55 UTC) #2
AlexG
https://codereview.webrtc.org/1257043004/diff/1/talk/app/webrtc/java/android/org/webrtc/EglBase.java File talk/app/webrtc/java/android/org/webrtc/EglBase.java (right): https://codereview.webrtc.org/1257043004/diff/1/talk/app/webrtc/java/android/org/webrtc/EglBase.java#newcode131 talk/app/webrtc/java/android/org/webrtc/EglBase.java:131: final int widthArr[] = new int[1]; nit: widthArr -> ...
5 years, 4 months ago (2015-08-04 00:27:23 UTC) #3
magjed_webrtc
https://codereview.webrtc.org/1257043004/diff/1/talk/app/webrtc/java/android/org/webrtc/EglBase.java File talk/app/webrtc/java/android/org/webrtc/EglBase.java (right): https://codereview.webrtc.org/1257043004/diff/1/talk/app/webrtc/java/android/org/webrtc/EglBase.java#newcode131 talk/app/webrtc/java/android/org/webrtc/EglBase.java:131: final int widthArr[] = new int[1]; On 2015/08/04 00:27:23, ...
5 years, 4 months ago (2015-08-04 17:05:05 UTC) #4
AlexG
Thanks for addressing comments Magnus. A few more comments, but these are not critical - ...
5 years, 4 months ago (2015-08-05 00:47:11 UTC) #5
magjed_webrtc
The last patch is rather big. I forgot about unpacked yuv frames which I have ...
5 years, 4 months ago (2015-08-07 17:14:50 UTC) #9
AlexG
Thanks! Nice work! lgtm
5 years, 4 months ago (2015-08-11 00:09:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257043004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257043004/100001
5 years, 4 months ago (2015-08-11 11:55:36 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/338)
5 years, 4 months ago (2015-08-11 11:57:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257043004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257043004/120001
5 years, 4 months ago (2015-08-11 12:04:14 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years, 4 months ago (2015-08-11 13:50:23 UTC) #18
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/05bfbe47ef6bcc9ca731c0fa0d5cd15a4f21e93f Cr-Commit-Position: refs/heads/master@{#9699}
5 years, 4 months ago (2015-08-11 13:50:38 UTC) #19
magjed_webrtc
A revert of this CL (patchset #4 id:120001) has been created in https://codereview.webrtc.org/1286133002/ by magjed@webrtc.org. ...
5 years, 4 months ago (2015-08-12 06:53:51 UTC) #20
magjed_webrtc
5 years, 4 months ago (2015-08-17 13:52:56 UTC) #21
Message was sent while issue was closed.
I will split this CL up and land it in parts.

Powered by Google App Engine
This is Rietveld 408576698