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

Unified Diff: webrtc/test/fake_texture_frame.h

Issue 1878623002: Added new VideoFrameBuffer methods Data[YUV]() etc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 8 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/engine/webrtcvideoframe.cc ('k') | webrtc/test/frame_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fake_texture_frame.h
diff --git a/webrtc/test/fake_texture_frame.h b/webrtc/test/fake_texture_frame.h
index 9575fae469d6f8029824fbda768957bce661bd50..15b70d8f7b5b5df25e1d9b07f72aba8bf2f8e507 100644
--- a/webrtc/test/fake_texture_frame.h
+++ b/webrtc/test/fake_texture_frame.h
@@ -42,9 +42,9 @@ class FakeNativeHandleBuffer : public NativeHandleBuffer {
new rtc::RefCountedObject<I420Buffer>(width_, height_));
int half_height = (height_ + 1) / 2;
int half_width = (width_ + 1) / 2;
- memset(buffer->MutableData(kYPlane), 0, height_ * width_);
- memset(buffer->MutableData(kUPlane), 0, half_height * half_width);
- memset(buffer->MutableData(kVPlane), 0, half_height * half_width);
+ memset(buffer->MutableDataY(), 0, height_ * width_);
+ memset(buffer->MutableDataU(), 0, half_height * half_width);
+ memset(buffer->MutableDataV(), 0, half_height * half_width);
return buffer;
}
};
« no previous file with comments | « webrtc/media/engine/webrtcvideoframe.cc ('k') | webrtc/test/frame_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698