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

Unified Diff: webrtc/common_video/include/video_frame_buffer.h

Issue 1645543003: H264: Improve FFmpeg decoder performance by using I420BufferPool. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added comments about why we zero-initialize Created 4 years, 11 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/include/video_frame_buffer.h
diff --git a/webrtc/common_video/include/video_frame_buffer.h b/webrtc/common_video/include/video_frame_buffer.h
index 710d2862f0b9a37c88bf72898c24c80d60d52648..1950bb7845887b8b4ca75c342609e79b1dea5745 100644
--- a/webrtc/common_video/include/video_frame_buffer.h
+++ b/webrtc/common_video/include/video_frame_buffer.h
@@ -73,6 +73,8 @@ class I420Buffer : public VideoFrameBuffer {
// Non-const data access is only allowed if HasOneRef() is true to protect
// against unexpected overwrites.
uint8_t* MutableData(PlaneType type) override;
+ // The size of the |data| buffer.
+ size_t DataSize() const;
int stride(PlaneType type) const override;
void* native_handle() const override;
rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override;

Powered by Google App Engine
This is Rietveld 408576698