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

Issue 1881953002: Delete method webrtc::VideoFrame::native_handle. (Closed)

Created:
4 years, 8 months ago by nisse-webrtc
Modified:
4 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, the sun, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Delete method webrtc::VideoFrame::native_handle. Instead, use the corresponding method on VideoFrameBuffer. In the process, reduce code duplication in frame comparison functions used in the test code. Make FramesEqual use FrameBufsEqual. Make the latter support texture frames. The cl also refactors VideoFrame::CopyFrame to use I420Buffer::Copy. This has possibly undesired side effects of never reusing the frame buffer of the destination frame, and producing a frame buffer which may use different stride than the source frame. BUG=webrtc:5682 Committed: https://crrev.com/26acec4772a426f46388cacd315a6af2affe4679 Cr-Commit-Position: refs/heads/master@{#12373}

Patch Set 1 #

Patch Set 2 : Use preprocessor hack instead of RTC_DEPRECATED, for testing. #

Patch Set 3 : Update android encoder. Fix FrameEquals. #

Patch Set 4 : Another android fix. #

Patch Set 5 : Make EqualFramesVector and ExpectEqualFramesVector ignore timestamps. #

Total comments: 5

Patch Set 6 : Cleanup TODOs. #

Total comments: 1

Patch Set 7 : Delete the native_handle method. #

Total comments: 2

Patch Set 8 : Add missing braces. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -140 lines) Patch
M webrtc/api/java/jni/androidmediaencoder_jni.cc View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M webrtc/common_video/i420_video_frame_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/common_video/video_frame.cc View 1 2 3 4 5 6 3 chunks +6 lines, -20 lines 0 comments Download
M webrtc/modules/video_coding/video_sender.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/test/frame_utils.h View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M webrtc/test/frame_utils.cc View 1 2 1 chunk +30 lines, -23 lines 0 comments Download
M webrtc/video/video_capture_input_unittest.cc View 1 2 3 4 5 6 7 6 chunks +13 lines, -36 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 3 chunks +4 lines, -44 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video_frame.h View 1 2 3 4 5 6 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 39 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881953002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881953002/1
4 years, 8 months ago (2016-04-12 08:50:51 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_libfuzzer_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_libfuzzer_rel/builds/1653) mac_compile_dbg on ...
4 years, 8 months ago (2016-04-12 08:54:23 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881953002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881953002/20001
4 years, 8 months ago (2016-04-12 09:05:21 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_mips_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_mips_dbg/builds/1085)
4 years, 8 months ago (2016-04-12 09:08:52 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/1881953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881953002/40001
4 years, 8 months ago (2016-04-12 11:41:26 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_x64_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x64_dbg/builds/3094)
4 years, 8 months ago (2016-04-12 11:45:21 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/1881953002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881953002/80001
4 years, 8 months ago (2016-04-12 12:07:17 UTC) #14
nisse-webrtc
I also have a question on video_frame_buffer(). When does it make sense to have a ...
4 years, 8 months ago (2016-04-12 12:21:43 UTC) #17
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, 8 months ago (2016-04-12 14:07:58 UTC) #19
perkj_webrtc
https://codereview.webrtc.org/1881953002/diff/80001/webrtc/common_video/video_frame.cc File webrtc/common_video/video_frame.cc (right): https://codereview.webrtc.org/1881953002/diff/80001/webrtc/common_video/video_frame.cc#newcode170 webrtc/common_video/video_frame.cc:170: #if ENABLE_WEBRTC_VIDEOFRAME_NATIVE_HANDLE ? https://codereview.webrtc.org/1881953002/diff/80001/webrtc/modules/video_coding/video_sender.cc File webrtc/modules/video_coding/video_sender.cc (right): https://codereview.webrtc.org/1881953002/diff/80001/webrtc/modules/video_coding/video_sender.cc#newcode303 webrtc/modules/video_coding/video_sender.cc:303: ...
4 years, 8 months ago (2016-04-13 05:44:08 UTC) #20
nisse-webrtc
https://codereview.webrtc.org/1881953002/diff/80001/webrtc/common_video/video_frame.cc File webrtc/common_video/video_frame.cc (right): https://codereview.webrtc.org/1881953002/diff/80001/webrtc/common_video/video_frame.cc#newcode170 webrtc/common_video/video_frame.cc:170: #if ENABLE_WEBRTC_VIDEOFRAME_NATIVE_HANDLE On 2016/04/13 05:44:08, perkj_webrtc wrote: > ? ...
4 years, 8 months ago (2016-04-13 07:28:50 UTC) #21
nisse-webrtc
On 2016/04/13 07:28:50, nisse-webrtc wrote: > But I think I need to investigate in a ...
4 years, 8 months ago (2016-04-13 07:38:20 UTC) #22
magjed_webrtc
> And there's one piece of code which depends on the behaviour of Reset and ...
4 years, 8 months ago (2016-04-13 08:53:06 UTC) #23
magjed_webrtc
https://codereview.webrtc.org/1881953002/diff/100001/webrtc/video_frame.h File webrtc/video_frame.h (right): https://codereview.webrtc.org/1881953002/diff/100001/webrtc/video_frame.h#newcode128 webrtc/video_frame.h:128: // TODO(nisse): Should be deleted, in favor of using ...
4 years, 8 months ago (2016-04-13 08:53:23 UTC) #24
nisse-webrtc
On 2016/04/13 08:53:06, magjed_webrtc wrote: > You can refactor |captured_frame_| to be a scoped_ptr<VideoFrame> instead ...
4 years, 8 months ago (2016-04-13 10:09:19 UTC) #25
nisse-webrtc
On 2016/04/13 08:53:23, magjed_webrtc wrote: > Can't you update the place in Chrome first, and ...
4 years, 8 months ago (2016-04-13 13:31:58 UTC) #26
magjed_webrtc
lgtm
4 years, 8 months ago (2016-04-14 07:32:07 UTC) #27
nisse-webrtc
Deleted the method, now that a cl eliminating it in chrome is landed (https://codereview.chromium.org/1882583004/). What ...
4 years, 8 months ago (2016-04-14 07:47:07 UTC) #29
pbos-webrtc
lgtm https://codereview.webrtc.org/1881953002/diff/120001/webrtc/video/video_capture_input_unittest.cc File webrtc/video/video_capture_input_unittest.cc (right): https://codereview.webrtc.org/1881953002/diff/120001/webrtc/video/video_capture_input_unittest.cc#newcode236 webrtc/video/video_capture_input_unittest.cc:236: frames2[i]->video_frame_buffer())) {}s
4 years, 8 months ago (2016-04-14 14:50:54 UTC) #30
nisse-webrtc
https://codereview.webrtc.org/1881953002/diff/120001/webrtc/video/video_capture_input_unittest.cc File webrtc/video/video_capture_input_unittest.cc (right): https://codereview.webrtc.org/1881953002/diff/120001/webrtc/video/video_capture_input_unittest.cc#newcode236 webrtc/video/video_capture_input_unittest.cc:236: frames2[i]->video_frame_buffer())) On 2016/04/14 14:50:54, pbos-webrtc wrote: > {}s Done.
4 years, 8 months ago (2016-04-15 07:15:09 UTC) #31
perkj_webrtc
lgtm
4 years, 8 months ago (2016-04-15 08:25:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881953002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881953002/140001
4 years, 8 months ago (2016-04-15 08:35:48 UTC) #35
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-15 10:43:44 UTC) #37
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 10:43:53 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/26acec4772a426f46388cacd315a6af2affe4679
Cr-Commit-Position: refs/heads/master@{#12373}

Powered by Google App Engine
This is Rietveld 408576698