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

Issue 2286633002: Delete IsZeroSize method. (Closed)

Created:
4 years, 3 months ago by nisse-webrtc
Modified:
4 years ago
Reviewers:
stefan-webrtc, mflodman
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Delete IsZeroSize method. BUG=webrtc:5682 This cl is superseded by https://codereview.webrtc.org/2541863002/

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -36 lines) Patch
M webrtc/common_video/i420_video_frame_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_video/libyuv/webrtc_libyuv.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/common_video/video_frame.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc View 1 chunk +0 lines, -4 lines 1 comment Download
M webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm View 1 chunk +0 lines, -1 line 1 comment 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/vp8_impl.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/video_processing/frame_preprocessor.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 chunk +2 lines, -6 lines 1 comment Download
M webrtc/video_frame.h View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
nisse-webrtc
Please have a look. IsZeroSize means that a VideoFrame has no associated VideoFrameBuffer, which should ...
4 years, 3 months ago (2016-08-29 13:12:53 UTC) #6
stefan-webrtc
https://codereview.webrtc.org/2286633002/diff/1/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc File webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc (left): https://codereview.webrtc.org/2286633002/diff/1/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc#oldcode280 webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc:280: if (input_frame.IsZeroSize()) { Should we DCHECK that we have ...
4 years, 3 months ago (2016-09-05 14:45:25 UTC) #7
nisse-webrtc
On 2016/09/05 14:45:25, stefan-webrtc (holmer) wrote: > https://codereview.webrtc.org/2286633002/diff/1/webrtc/video/video_quality_test.cc#oldcode611 > webrtc/video/video_quality_test.cc:611: if (!comparison.reference.IsZeroSize()) > { > ...
4 years, 3 months ago (2016-09-06 06:23:08 UTC) #8
stefan-webrtc
On 2016/09/06 06:23:08, nisse-webrtc wrote: > On 2016/09/05 14:45:25, stefan-webrtc (holmer) wrote: > > > ...
4 years, 3 months ago (2016-09-06 06:56:53 UTC) #9
stefan-webrtc
On 2016/09/06 06:56:53, stefan-webrtc (holmer) wrote: > On 2016/09/06 06:23:08, nisse-webrtc wrote: > > On ...
4 years, 3 months ago (2016-09-06 06:58:12 UTC) #10
nisse-webrtc
On 2016/09/06 06:23:08, nisse-webrtc wrote: > My question is really: Where and why does the ...
4 years, 1 month ago (2016-10-31 15:04:56 UTC) #11
nisse-webrtc
4 years, 1 month ago (2016-10-31 15:15:42 UTC) #12
On 2016/10/31 15:04:56, nisse-webrtc wrote:

> To me it appears useless, greping the encoder sources for IsZeroSize, the
> typical use is
> 
>   if (input_image.IsZeroSize()) {
>     return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
>   }
> 
> which would make the above RequestFrame method always a no-op. But I could
well
> be missing something.

And RequestFrame is used in one place,
https://codesearch.chromium.org/chromium/src/third_party/webrtc/modules/video...

Who knows this logic? It was latest touched by Peter Boström doing some locking
improvements, otherwise unchanged since 2013, cl
https://webrtc-codereview.appspot.com/2200008 by andresp@.

Powered by Google App Engine
This is Rietveld 408576698