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

Issue 1372813002: Android VideoCapturer: Send ByteBuffer instead of byte[] (Closed)

Created:
5 years, 2 months ago by magjed_webrtc
Modified:
5 years, 2 months ago
Reviewers:
hbos
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 VideoCapturer: Send ByteBuffer instead of byte[] The purpose with this CL is to replace GetByteArrayElements() and ReleaseByteArrayElements() with GetDirectBufferAddress(). R=hbos@webrtc.org Committed: https://crrev.com/cb3649b40b3fd6d5bbb0a92003b717e46ce90924 Cr-Commit-Position: refs/heads/master@{#10091}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -31 lines) Patch
M talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java View 2 chunks +3 lines, -2 lines 2 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java View 6 chunks +15 lines, -15 lines 0 comments Download
M talk/app/webrtc/java/jni/androidvideocapturer_jni.h View 1 chunk +1 line, -1 line 0 comments Download
M talk/app/webrtc/java/jni/androidvideocapturer_jni.cc View 2 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
magjed_webrtc
hbos - Please take a look.
5 years, 2 months ago (2015-09-28 10:01:19 UTC) #2
hbos
lgtm https://codereview.webrtc.org/1372813002/diff/1/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java File talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java (right): https://codereview.webrtc.org/1372813002/diff/1/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java#newcode112 talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java:112: frameSize = frame.capacity(); Should limit() be used instead ...
5 years, 2 months ago (2015-09-28 12:35:51 UTC) #3
magjed_webrtc
Committed patchset #1 (id:1) manually as cb3649b40b3fd6d5bbb0a92003b717e46ce90924 (presubmit successful).
5 years, 2 months ago (2015-09-28 14:42:20 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/cb3649b40b3fd6d5bbb0a92003b717e46ce90924 Cr-Commit-Position: refs/heads/master@{#10091}
5 years, 2 months ago (2015-09-28 14:42:23 UTC) #5
magjed_webrtc
https://codereview.webrtc.org/1372813002/diff/1/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java File talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java (right): https://codereview.webrtc.org/1372813002/diff/1/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java#newcode112 talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java:112: frameSize = frame.capacity(); On 2015/09/28 12:35:51, hbos wrote: > ...
5 years, 2 months ago (2015-09-28 14:42:42 UTC) #6
hbos
On 2015/09/28 14:42:42, magjed_webrtc wrote: > https://codereview.webrtc.org/1372813002/diff/1/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java > File talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java > (right): > > https://codereview.webrtc.org/1372813002/diff/1/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java#newcode112 ...
5 years, 2 months ago (2015-09-28 14:50:55 UTC) #7
hbos
On 2015/09/28 14:50:55, hbos wrote: > On 2015/09/28 14:42:42, magjed_webrtc wrote: > > > https://codereview.webrtc.org/1372813002/diff/1/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java ...
5 years, 2 months ago (2015-09-28 14:52:57 UTC) #8
magjed_webrtc
5 years, 2 months ago (2015-09-29 08:13:32 UTC) #9
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.webrtc.org/1377783002/ by magjed@webrtc.org.

The reason for reverting is: The top row in the video stream from the camera is
messed up. The byte[] pointer is not the same as GetDirectBufferAddress()
apparently..

Powered by Google App Engine
This is Rietveld 408576698