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

Unified Diff: webrtc/media/base/videoframe.cc

Issue 2029273004: New static method I420Buffer::SetToBlack. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add missing SetToBlack call. Created 4 years, 6 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
« no previous file with comments | « webrtc/media/base/videoframe.h ('k') | webrtc/media/base/videoframe_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videoframe.cc
diff --git a/webrtc/media/base/videoframe.cc b/webrtc/media/base/videoframe.cc
index e876d74e31e5252958ac6aa6e4555e824f401e94..40cced11541c9c0da5ffd445088127bcd706c5c3 100644
--- a/webrtc/media/base/videoframe.cc
+++ b/webrtc/media/base/videoframe.cc
@@ -148,18 +148,6 @@ void VideoFrame::StretchToFrame(VideoFrame* dst,
dst->set_rotation(rotation());
}
-bool VideoFrame::SetToBlack() {
- return libyuv::I420Rect(video_frame_buffer()->MutableDataY(),
- video_frame_buffer()->StrideY(),
- video_frame_buffer()->MutableDataU(),
- video_frame_buffer()->StrideU(),
- video_frame_buffer()->MutableDataV(),
- video_frame_buffer()->StrideV(),
- 0, 0,
- width(), height(),
- 16, 128, 128) == 0;
-}
-
static const size_t kMaxSampleSize = 1000000000u;
// Returns whether a sample is valid.
bool VideoFrame::Validate(uint32_t fourcc,
« no previous file with comments | « webrtc/media/base/videoframe.h ('k') | webrtc/media/base/videoframe_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698