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

Issue 2541863002: Delete VideoFrame default constructor, and IsZeroSize method. (Closed)

Created:
4 years ago by nisse-webrtc
Modified:
4 years 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, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Delete VideoFrame default constructor, and IsZeroSize method. This ensures that the video_frame_buffer method never can return a null pointer. BUG=webrtc:6591 Committed: https://crrev.com/bfcf561923a42005e4c7d66d8e72e5932155f997 Cr-Commit-Position: refs/heads/master@{#15574}

Patch Set 1 #

Patch Set 2 : Delete DCHECK using IsZeroSize. #

Total comments: 4

Patch Set 3 : Fix crash in FakeVideoSendStream::ReconfigureVideoEncoder. #

Patch Set 4 : Rebase. #

Patch Set 5 : Initialize pixel data in VideoBroadcasterTest.OnFrame test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -93 lines) Patch
M webrtc/common_video/i420_video_frame_unittest.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M webrtc/common_video/libyuv/webrtc_libyuv.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/common_video/video_frame.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M webrtc/media/base/videobroadcaster_unittest.cc View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 3 2 chunks +17 lines, -9 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/codecs/i420/include/i420.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc View 8 chunks +13 lines, -10 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm View 1 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/test/frame_generator.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 3 6 chunks +31 lines, -19 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/video_frame.h View 2 chunks +0 lines, -13 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
nisse-webrtc
This change is seems easy, at least for webrtc itself (some need for downstream updates ...
4 years ago (2016-11-30 16:09:25 UTC) #2
magjed_webrtc
https://codereview.webrtc.org/2541863002/diff/20001/webrtc/modules/video_coding/generic_encoder.cc File webrtc/modules/video_coding/generic_encoder.cc (right): https://codereview.webrtc.org/2541863002/diff/20001/webrtc/modules/video_coding/generic_encoder.cc#newcode130 webrtc/modules/video_coding/generic_encoder.cc:130: return encoder_->Encode(VideoFrame(I420Buffer::Create(1, 1), This looks very strange. What's the ...
4 years ago (2016-11-30 16:23:56 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/2541863002/diff/20001/webrtc/modules/video_coding/generic_encoder.cc File webrtc/modules/video_coding/generic_encoder.cc (right): https://codereview.webrtc.org/2541863002/diff/20001/webrtc/modules/video_coding/generic_encoder.cc#newcode130 webrtc/modules/video_coding/generic_encoder.cc:130: return encoder_->Encode(VideoFrame(I420Buffer::Create(1, 1), On 2016/11/30 16:23:56, magjed_webrtc wrote: > ...
4 years ago (2016-11-30 16:36:00 UTC) #4
magjed_webrtc
lgtm https://codereview.webrtc.org/2541863002/diff/20001/webrtc/modules/video_coding/generic_encoder.cc File webrtc/modules/video_coding/generic_encoder.cc (right): https://codereview.webrtc.org/2541863002/diff/20001/webrtc/modules/video_coding/generic_encoder.cc#newcode130 webrtc/modules/video_coding/generic_encoder.cc:130: return encoder_->Encode(VideoFrame(I420Buffer::Create(1, 1), On 2016/11/30 16:36:00, nisse-webrtc wrote: ...
4 years ago (2016-12-01 11:46:38 UTC) #5
stefan-webrtc
lgtm
4 years ago (2016-12-08 13:33:30 UTC) #6
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/2541863002/60001
4 years ago (2016-12-13 12:19:11 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_msan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_msan/builds/15999)
4 years ago (2016-12-13 12:42:14 UTC) #11
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/2541863002/80001
4 years ago (2016-12-13 13:19:27 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-13 14:08:36 UTC) #18
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/bfcf561923a42005e4c7d66d8e72e5932155f997 Cr-Commit-Position: refs/heads/master@{#15574}
4 years ago (2016-12-13 14:08:45 UTC) #20
nisse-webrtc
4 years ago (2016-12-14 10:06:34 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.webrtc.org/2574123002/ by nisse@webrtc.org.

The reason for reverting is: Crashes perf tests, e.g., 

./out/Debug/webrtc_perf_tests
--gtest_filter='FullStackTest.ScreenshareSlidesVP8_2TL_VeryLossyNet'

dies with an assert related to rtc::Optional..

Powered by Google App Engine
This is Rietveld 408576698