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

Issue 2990583002: Move matrix from VideoFrame to TextureBuffer. (Closed)

Created:
3 years, 5 months ago by sakal
Modified:
3 years, 4 months ago
Reviewers:
magjed_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move matrix from VideoFrame to TextureBuffer. Previously, the matrix in VideoFrame was used to crop and scale the frame. This caused complications because webrtc::VideoFrame doesn't include a matrix. cropAndScale method is added to VideoBuffer class for cropping and scaling instead. BUG=webrtc:7749, webrtc:7760 Review-Url: https://codereview.webrtc.org/2990583002 Cr-Commit-Position: refs/heads/master@{#19179} Committed: https://chromium.googlesource.com/external/webrtc/+/836f60cda1775d65f233f17501f5fdad96e0fbc0

Patch Set 1 #

Patch Set 2 : Fixes. #

Total comments: 6

Patch Set 3 : Address comments. #

Patch Set 4 : Make fields final again. #

Total comments: 8

Patch Set 5 : Address comments. #

Patch Set 6 : Rebase & fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -257 lines) Patch
M webrtc/sdk/android/BUILD.gn View 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/sdk/android/api/org/webrtc/SurfaceTextureHelper.java View 2 chunks +9 lines, -81 lines 0 comments Download
M webrtc/sdk/android/api/org/webrtc/VideoFrame.java View 1 2 4 chunks +52 lines, -26 lines 0 comments Download
M webrtc/sdk/android/api/org/webrtc/VideoRenderer.java View 1 3 chunks +7 lines, -8 lines 0 comments Download
M webrtc/sdk/android/instrumentationtests/src/org/webrtc/HardwareVideoDecoderTest.java View 1 2 3 4 5 5 chunks +9 lines, -12 lines 0 comments Download
M webrtc/sdk/android/instrumentationtests/src/org/webrtc/HardwareVideoEncoderTest.java View 1 2 3 4 5 3 chunks +13 lines, -4 lines 0 comments Download
M webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java View 1 2 3 4 4 chunks +19 lines, -8 lines 0 comments Download
M webrtc/sdk/android/src/java/org/webrtc/HardwareVideoEncoder.java View 3 chunks +5 lines, -5 lines 0 comments Download
M webrtc/sdk/android/src/java/org/webrtc/I420BufferImpl.java View 1 2 3 4 4 chunks +34 lines, -33 lines 0 comments Download
A webrtc/sdk/android/src/java/org/webrtc/TextureBufferImpl.java View 1 2 1 chunk +131 lines, -0 lines 0 comments Download
M webrtc/sdk/android/src/java/org/webrtc/WrappedNativeI420Buffer.java View 1 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/sdk/android/src/jni/native_handle_impl.h View 1 2 3 chunks +3 lines, -9 lines 0 comments Download
M webrtc/sdk/android/src/jni/native_handle_impl.cc View 1 2 6 chunks +13 lines, -66 lines 0 comments Download
M webrtc/sdk/android/src/jni/video_renderer_jni.cc View 1 chunk +1 line, -3 lines 0 comments Download
A webrtc/sdk/android/src/jni/videoframe_jni.cc View 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
sakal
Might be a little rough on the edges because I haven't had a chance to ...
3 years, 5 months ago (2017-07-25 15:10:14 UTC) #3
sakal
This is now tested and working PTAL.
3 years, 5 months ago (2017-07-26 09:27:33 UTC) #4
sakal
PTAL
3 years, 5 months ago (2017-07-26 09:30:30 UTC) #6
magjed_webrtc
https://codereview.webrtc.org/2990583002/diff/20001/webrtc/sdk/android/api/org/webrtc/VideoFrame.java File webrtc/sdk/android/api/org/webrtc/VideoFrame.java (right): https://codereview.webrtc.org/2990583002/diff/20001/webrtc/sdk/android/api/org/webrtc/VideoFrame.java#newcode128 webrtc/sdk/android/api/org/webrtc/VideoFrame.java:128: public static VideoFrame.Buffer cropAndScaleI420(I420Buffer buffer, int cropX, int cropY, ...
3 years, 4 months ago (2017-07-27 14:02:29 UTC) #7
sakal
I had to modify I420BufferImpl interface to accept individual ByteBuffers to support the optimized path ...
3 years, 4 months ago (2017-07-28 08:01:36 UTC) #8
magjed_webrtc
lgtm https://codereview.webrtc.org/2990583002/diff/60001/webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java File webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java (right): https://codereview.webrtc.org/2990583002/diff/60001/webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java#newcode619 webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java:619: buffer.limit(yPos + stride * sliceHeight); Maybe use uPos ...
3 years, 4 months ago (2017-07-28 09:51:53 UTC) #9
sakal
https://codereview.webrtc.org/2990583002/diff/60001/webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java File webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java (right): https://codereview.webrtc.org/2990583002/diff/60001/webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java#newcode619 webrtc/sdk/android/src/java/org/webrtc/HardwareVideoDecoder.java:619: buffer.limit(yPos + stride * sliceHeight); On 2017/07/28 09:51:53, magjed_webrtc ...
3 years, 4 months ago (2017-07-28 11:05:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2990583002/80001
3 years, 4 months ago (2017-07-28 11:05:49 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_mips_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_mips_dbg/builds/13839)
3 years, 4 months ago (2017-07-28 11:17:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2990583002/100001
3 years, 4 months ago (2017-07-28 14:09:41 UTC) #22
commit-bot: I haz the power
3 years, 4 months ago (2017-07-28 14:12:33 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/external/webrtc/+/836f60cda1775d65f233f1750...

Powered by Google App Engine
This is Rietveld 408576698