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

Unified Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.cc

Issue 2765243002: Delete RawVideoType enum, use the VideoType enum instead. (Closed)
Patch Set: Define constant webrtc::kI420, for backwards compatibility. Created 3 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_coding/codecs/test/videoprocessor.cc
diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
index 0bb04a99df03d7a193411ab829832e3092343e1a..3a918f6cacb88225ae71598e03786c12025fe250 100644
--- a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
+++ b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
@@ -251,7 +251,8 @@ bool VideoProcessorImpl::ProcessFrame(int frame_number) {
}
if (source_frame_writer_) {
- size_t length = CalcBufferSize(kI420, buffer->width(), buffer->height());
+ size_t length =
+ CalcBufferSize(VideoType::kI420, buffer->width(), buffer->height());
rtc::Buffer extracted_buffer(length);
int extracted_length =
ExtractBuffer(buffer, length, extracted_buffer.data());
@@ -467,14 +468,15 @@ void VideoProcessorImpl::FrameDecoded(const VideoFrame& image) {
scaled_buffer->ScaleFrom(*image.video_frame_buffer());
}
- size_t length =
- CalcBufferSize(kI420, scaled_buffer->width(), scaled_buffer->height());
+ size_t length = CalcBufferSize(VideoType::kI420, scaled_buffer->width(),
+ scaled_buffer->height());
extracted_buffer.SetSize(length);
extracted_length =
ExtractBuffer(scaled_buffer, length, extracted_buffer.data());
} else {
// No resize.
- size_t length = CalcBufferSize(kI420, image.width(), image.height());
+ size_t length =
+ CalcBufferSize(VideoType::kI420, image.width(), image.height());
extracted_buffer.SetSize(length);
if (image.video_frame_buffer()->native_handle()) {
extracted_length =

Powered by Google App Engine
This is Rietveld 408576698