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

Unified Diff: webrtc/common_video/video_frame.cc

Issue 2020593002: Refactor scaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Include <algorithm>, needed for std::min. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/common_video/video_frame.cc
diff --git a/webrtc/common_video/video_frame.cc b/webrtc/common_video/video_frame.cc
index 978dde15b75eaa779a261d3c0636058e38556ef0..bfac3a680de9fc18ace1dc323ce1b29d34655197 100644
--- a/webrtc/common_video/video_frame.cc
+++ b/webrtc/common_video/video_frame.cc
@@ -23,12 +23,6 @@ namespace webrtc {
// to optimized bitstream readers. See avcodec_decode_video2.
const size_t EncodedImage::kBufferPaddingBytesH264 = 8;
-int ExpectedSize(int plane_stride, int image_height, PlaneType type) {
- if (type == kYPlane)
- return plane_stride * image_height;
- return plane_stride * ((image_height + 1) / 2);
-}
-
VideoFrame::VideoFrame()
: video_frame_buffer_(nullptr),
timestamp_(0),

Powered by Google App Engine
This is Rietveld 408576698