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

Issue 1973873003: Delete AndroidVideoCapturer::FrameFactory. (Closed)

Created:
4 years, 7 months ago by nisse-webrtc
Modified:
4 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Delete AndroidVideoCapturer::FrameFactory. Splits VideoCapturer::OnFrameCaptured into helper methods, which enables use of the VideoAdaptation logic without using a frame factory. Refactors AndroidVideoCapturer to make adaptation decision earlier, so we can crop and rotate using NV12ToI420Rotate. BUG=webrtc:5682 Committed: https://crrev.com/47ac4620c810fa816837f9b83b8392f8c29cf076 Cr-Commit-Position: refs/heads/master@{#12895}

Patch Set 1 #

Patch Set 2 : Rebase. Change AdaptFrameResolution return type. #

Patch Set 3 : Delete left-over prototype. Revert a comment change. #

Total comments: 1

Patch Set 4 : Fix height argument to CropAndScale. #

Patch Set 5 : Fix width/height typo. Tests. Formatting. #

Total comments: 17

Patch Set 6 : Reorganize android video capturing. #

Patch Set 7 : Address nits. #

Total comments: 4

Patch Set 8 : Move code to AndroidVideoCapturerJni. Make Matrix a class. #

Total comments: 6

Patch Set 9 : Address Magnus' comments. #

Patch Set 10 : Undo unrelated/unneeded changes. #

Total comments: 1

Patch Set 11 : Rebase. #

Patch Set 12 : Rebased, on top of landed thread-hop change. #

Patch Set 13 : Address nit. Delete left-over include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -391 lines) Patch
M webrtc/api/androidvideocapturer.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -10 lines 0 comments Download
M webrtc/api/androidvideocapturer.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +0 lines, -109 lines 0 comments Download
M webrtc/api/java/jni/androidmediaencoder_jni.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -4 lines 0 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +107 lines, -19 lines 0 comments Download
M webrtc/api/java/jni/native_handle_impl.h View 1 2 3 4 5 6 7 2 chunks +26 lines, -1 line 0 comments Download
M webrtc/api/java/jni/native_handle_impl.cc View 1 2 3 4 5 6 7 6 chunks +62 lines, -56 lines 0 comments Download
M webrtc/api/java/jni/peerconnection_jni.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/media/base/videoadapter.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -5 lines 0 comments Download
M webrtc/media/base/videoadapter.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -6 lines 0 comments Download
M webrtc/media/base/videoadapter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 40 chunks +140 lines, -143 lines 0 comments Download
M webrtc/media/base/videocapturer.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -6 lines 0 comments Download
M webrtc/media/base/videocapturer.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +54 lines, -23 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 48 (19 generated)
nisse-webrtc
Please have a first look. I haven't tried to get cropping or aspect ratio right, ...
4 years, 7 months ago (2016-05-12 13:58:51 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973873003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973873003/40001
4 years, 7 months ago (2016-05-16 09:29:09 UTC) #4
nisse-webrtc
Updated after your (magjed's, that is) android cropping changes were landed. I've also change the ...
4 years, 7 months ago (2016-05-16 09:33:24 UTC) #5
nisse-webrtc
https://codereview.webrtc.org/1973873003/diff/40001/webrtc/common_video/video_frame_buffer.cc File webrtc/common_video/video_frame_buffer.cc (right): https://codereview.webrtc.org/1973873003/diff/40001/webrtc/common_video/video_frame_buffer.cc#newcode211 webrtc/common_video/video_frame_buffer.cc:211: rtc::scoped_refptr<I420Buffer> I420Buffer::CropAndScale( And I realize this methods still needs ...
4 years, 7 months ago (2016-05-16 09:44:16 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/7866)
4 years, 7 months ago (2016-05-16 10:50:15 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973873003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973873003/60001
4 years, 7 months ago (2016-05-16 12:23:30 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_tsan2 on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_tsan2/builds/12190)
4 years, 7 months ago (2016-05-16 13:01:35 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973873003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973873003/60001
4 years, 7 months ago (2016-05-16 13:08:29 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 7 months ago (2016-05-16 14:24:13 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973873003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973873003/80001
4 years, 7 months ago (2016-05-17 10:29:56 UTC) #18
nisse-webrtc
+ perkj, please have a look.
4 years, 7 months ago (2016-05-17 10:31:33 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 11:42:49 UTC) #24
magjed_webrtc
https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc#newcode83 webrtc/api/androidvideocapturer.cc:83: void AndroidVideoCapturer::OnIncomingFrame( Add two methods OnIncomingTexture and OnIncomingNV21 instead, ...
4 years, 7 months ago (2016-05-17 12:12:40 UTC) #25
magjed_webrtc
https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc#newcode127 webrtc/api/androidvideocapturer.cc:127: adapted = I420Buffer::CropAndScale(buffer, crop_x, crop_y, Use a frame pool ...
4 years, 7 months ago (2016-05-17 12:19:12 UTC) #26
nisse-webrtc
Reorganized as suggested. Now passes some initial tests, using run_AppRtcDemoTest. https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc#newcode83 ...
4 years, 7 months ago (2016-05-18 11:16:34 UTC) #28
magjed_webrtc
https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc#newcode83 webrtc/api/androidvideocapturer.cc:83: void AndroidVideoCapturer::OnIncomingFrame( On 2016/05/18 11:16:33, nisse-webrtc wrote: > On ...
4 years, 7 months ago (2016-05-18 11:41:59 UTC) #29
nisse-webrtc
https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc#newcode83 webrtc/api/androidvideocapturer.cc:83: void AndroidVideoCapturer::OnIncomingFrame( On 2016/05/18 11:41:59, magjed_webrtc wrote: > On ...
4 years, 7 months ago (2016-05-18 12:17:52 UTC) #30
nisse-webrtc
New version, with the adaptiation code moved to AndroidVideoCapturerJni. https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1973873003/diff/80001/webrtc/api/androidvideocapturer.cc#newcode127 webrtc/api/androidvideocapturer.cc:127: ...
4 years, 7 months ago (2016-05-18 13:54:58 UTC) #31
magjed_webrtc
https://codereview.webrtc.org/1973873003/diff/140001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1973873003/diff/140001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode203 webrtc/api/java/jni/androidvideocapturer_jni.cc:203: crop_x &= ~1; The same is true for crop_y. ...
4 years, 7 months ago (2016-05-18 15:45:30 UTC) #32
nisse-webrtc
https://codereview.webrtc.org/1973873003/diff/140001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1973873003/diff/140001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode203 webrtc/api/java/jni/androidvideocapturer_jni.cc:203: crop_x &= ~1; On 2016/05/18 15:45:30, magjed_webrtc wrote: > ...
4 years, 7 months ago (2016-05-18 16:34:17 UTC) #33
nisse-webrtc
On 2016/05/18 16:34:17, nisse-webrtc wrote: > Two buffer pools it is, then. But it would ...
4 years, 7 months ago (2016-05-19 08:02:04 UTC) #34
nisse-webrtc
Please have another look now.
4 years, 7 months ago (2016-05-23 08:49:43 UTC) #36
nisse-webrtc
On 2016/05/23 08:49:43, nisse-webrtc wrote: > Please have another look now. The crash on patch ...
4 years, 7 months ago (2016-05-23 13:50:17 UTC) #37
magjed_webrtc
lgtm https://codereview.webrtc.org/1973873003/diff/180001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1973873003/diff/180001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode206 webrtc/api/java/jni/androidvideocapturer_jni.cc:206: int uv_width = (width + 1)/2; nit: (width ...
4 years, 7 months ago (2016-05-25 12:36:40 UTC) #38
nisse-webrtc
Tommi, I need owner's approval for the changes to webrtc/api/androidvideocapturer.cc webrtc/api/androidvideocapturer.h Can you have a ...
4 years, 7 months ago (2016-05-25 12:53:07 UTC) #40
tommi
lgtm
4 years, 7 months ago (2016-05-25 14:22:33 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973873003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973873003/240001
4 years, 7 months ago (2016-05-25 14:24:34 UTC) #44
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 7 months ago (2016-05-25 15:47:07 UTC) #46
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 15:47:10 UTC) #48
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/47ac4620c810fa816837f9b83b8392f8c29cf076
Cr-Commit-Position: refs/heads/master@{#12895}

Powered by Google App Engine
This is Rietveld 408576698