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

Unified Diff: webrtc/modules/video_processing/deflickering.cc

Issue 1900673002: Delete webrtc::VideoFrame methods buffer and stride. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update H.264 video_toolbox encoder. 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
Index: webrtc/modules/video_processing/deflickering.cc
diff --git a/webrtc/modules/video_processing/deflickering.cc b/webrtc/modules/video_processing/deflickering.cc
index 0e936ce9b77a5a203a1a5ae47e4c4362d1e31019..89227f783d864a9777b5f16ca91ebad692ee9f64 100644
--- a/webrtc/modules/video_processing/deflickering.cc
+++ b/webrtc/modules/video_processing/deflickering.cc
@@ -130,8 +130,8 @@ int32_t VPMDeflickering::ProcessFrame(VideoFrame* frame,
uint8_t* y_sorted = new uint8_t[y_sub_size];
uint32_t sort_row_idx = 0;
for (int i = 0; i < height; i += kDownsamplingFactor) {
- memcpy(y_sorted + sort_row_idx * width, frame->buffer(kYPlane) + i * width,
- width);
+ memcpy(y_sorted + sort_row_idx * width,
+ frame->video_frame_buffer()->DataY() + i * width, width);
sort_row_idx++;
}
@@ -227,7 +227,7 @@ int32_t VPMDeflickering::ProcessFrame(VideoFrame* frame,
}
// Map to the output frame.
- uint8_t* buffer = frame->buffer(kYPlane);
+ uint8_t* buffer = frame->video_frame_buffer()->MutableDataY();
for (uint32_t i = 0; i < y_size; i++) {
buffer[i] = map_uw8[buffer[i]];
}

Powered by Google App Engine
This is Rietveld 408576698