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

Unified Diff: webrtc/modules/video_processing/video_processing_impl.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/video_processing_impl.cc
diff --git a/webrtc/modules/video_processing/video_processing_impl.cc b/webrtc/modules/video_processing/video_processing_impl.cc
index f34886f10f22ca8361bc535d91041388976da300..e52a055f7ea160d019ee86c40804d29ebf3efb72 100644
--- a/webrtc/modules/video_processing/video_processing_impl.cc
+++ b/webrtc/modules/video_processing/video_processing_impl.cc
@@ -51,7 +51,7 @@ void VideoProcessing::GetFrameStats(const VideoFrame& frame,
int height = frame.height();
stats->sub_sampling_factor = GetSubSamplingFactor(width, height);
- const uint8_t* buffer = frame.buffer(kYPlane);
+ const uint8_t* buffer = frame.video_frame_buffer()->DataY();
// Compute histogram and sum of frame
for (int i = 0; i < height; i += (1 << stats->sub_sampling_factor)) {
int k = i * width;
@@ -98,7 +98,7 @@ void VideoProcessing::Brighten(int delta, VideoFrame* frame) {
look_up[i] = ((((val < 0) ? 0 : val) > 255) ? 255 : val);
}
- uint8_t* temp_ptr = frame->buffer(kYPlane);
+ uint8_t* temp_ptr = frame->video_frame_buffer()->MutableDataY();
for (int i = 0; i < num_pixels; i++) {
*temp_ptr = static_cast<uint8_t>(look_up[*temp_ptr]);
temp_ptr++;

Powered by Google App Engine
This is Rietveld 408576698