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

Unified Diff: webrtc/common_video/libyuv/include/webrtc_libyuv.h

Issue 2278883002: Move MutableDataY{,U,V} methods to I420Buffer only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update android capture and decoder code. Created 4 years, 4 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/common_video/libyuv/include/webrtc_libyuv.h
diff --git a/webrtc/common_video/libyuv/include/webrtc_libyuv.h b/webrtc/common_video/libyuv/include/webrtc_libyuv.h
index ec3720e442bc9621fb9e7cdb6696c964073051f7..00661fb1b2192f04e7a835b4cdd26a844b0249d2 100644
--- a/webrtc/common_video/libyuv/include/webrtc_libyuv.h
+++ b/webrtc/common_video/libyuv/include/webrtc_libyuv.h
@@ -102,7 +102,7 @@ int ConvertToI420(VideoType src_video_type,
int src_height,
size_t sample_size,
VideoRotation rotation,
- VideoFrame* dst_frame);
+ const rtc::scoped_refptr<I420Buffer>& dst_buffer);
magjed_webrtc 2016/08/25 11:12:56 If dst_buffer is an output argument, you need to u
nisse-webrtc 2016/08/25 11:31:35 I think the const is ok here; the scoped_refptr it
magjed_webrtc 2016/08/25 11:49:08 Yes, using const here will compile, but according
nisse-webrtc 2016/08/25 12:38:40 I'll do that then. That makes sense in some way. B
// Convert From I420
// Input:
@@ -120,8 +120,12 @@ int ConvertFromI420(const VideoFrame& src_frame,
// Compute PSNR for an I420 frame (all planes).
// Returns the PSNR in decibel, to a maximum of kInfinitePSNR.
double I420PSNR(const VideoFrame* ref_frame, const VideoFrame* test_frame);
+double I420PSNR(const rtc::scoped_refptr<VideoFrameBuffer>& ref_buffer,
+ const rtc::scoped_refptr<VideoFrameBuffer>& test_buffer);
// Compute SSIM for an I420 frame (all planes).
double I420SSIM(const VideoFrame* ref_frame, const VideoFrame* test_frame);
+double I420SSIM(const rtc::scoped_refptr<VideoFrameBuffer>& ref_buffer,
+ const rtc::scoped_refptr<VideoFrameBuffer>& test_buffer);
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698