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

Unified Diff: webrtc/media/base/fakevideorenderer.h

Issue 1921493004: Revert of Delete cricket::VideoFrame methods GetYPlane and GetYPitch. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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/api/java/jni/peerconnection_jni.cc ('k') | webrtc/media/base/videobroadcaster_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/fakevideorenderer.h
diff --git a/webrtc/media/base/fakevideorenderer.h b/webrtc/media/base/fakevideorenderer.h
index 7398bbaa8bbf12d087b6bec7e5114c38ec9828c8..51f1f90ee88c3f17e080004ffa751ecbc77c9ade 100644
--- a/webrtc/media/base/fakevideorenderer.h
+++ b/webrtc/media/base/fakevideorenderer.h
@@ -82,15 +82,15 @@
uint8_t v_min,
uint8_t v_max,
const cricket::VideoFrame* frame) {
- if (!frame || !frame->video_frame_buffer()) {
+ if (!frame) {
return false;
}
// Y
int y_width = frame->width();
int y_height = frame->height();
- const uint8_t* y_plane = frame->video_frame_buffer()->DataY();
+ const uint8_t* y_plane = frame->GetYPlane();
const uint8_t* y_pos = y_plane;
- int32_t y_pitch = frame->video_frame_buffer()->StrideY();
+ int32_t y_pitch = frame->GetYPitch();
for (int i = 0; i < y_height; ++i) {
for (int j = 0; j < y_width; ++j) {
uint8_t y_value = *(y_pos + j);
@@ -103,12 +103,12 @@
// U and V
int chroma_width = (frame->width() + 1)/2;
int chroma_height = (frame->height() + 1)/2;
- const uint8_t* u_plane = frame->video_frame_buffer()->DataU();
- const uint8_t* v_plane = frame->video_frame_buffer()->DataV();
+ const uint8_t* u_plane = frame->GetUPlane();
+ const uint8_t* v_plane = frame->GetVPlane();
const uint8_t* u_pos = u_plane;
const uint8_t* v_pos = v_plane;
- int32_t u_pitch = frame->video_frame_buffer()->StrideU();
- int32_t v_pitch = frame->video_frame_buffer()->StrideV();
+ int32_t u_pitch = frame->GetUPitch();
+ int32_t v_pitch = frame->GetVPitch();
for (int i = 0; i < chroma_height; ++i) {
for (int j = 0; j < chroma_width; ++j) {
uint8_t u_value = *(u_pos + j);
« no previous file with comments | « webrtc/api/java/jni/peerconnection_jni.cc ('k') | webrtc/media/base/videobroadcaster_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698