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 6b578bce491191117141a565902fa4f96d70b99f..e3835d3dbf213c4ba771560c8f41faad786d08cb 100644 |
--- a/webrtc/common_video/include/video_frame_buffer.h |
+++ b/webrtc/common_video/include/video_frame_buffer.h |
@@ -45,6 +45,7 @@ class NativeHandleBuffer : public VideoFrameBuffer { |
const int height_; |
}; |
+// Deprecated. Please use WrapI420Buffer(...) instead. |
class WrappedI420Buffer : public I420BufferInterface { |
public: |
WrappedI420Buffer(int width, |
@@ -81,6 +82,40 @@ class WrappedI420Buffer : public I420BufferInterface { |
rtc::Callback0<void> no_longer_used_cb_; |
}; |
+rtc::scoped_refptr<I420BufferInterface> WrapI420Buffer( |
+ int width, |
+ int height, |
+ const uint8_t* y_plane, |
+ int y_stride, |
+ const uint8_t* u_plane, |
+ int u_stride, |
+ const uint8_t* v_plane, |
+ int v_stride, |
+ const rtc::Callback0<void>& no_longer_used); |
+ |
+rtc::scoped_refptr<I444BufferInterface> WrapI444Buffer( |
+ int width, |
+ int height, |
+ const uint8_t* y_plane, |
+ int y_stride, |
+ const uint8_t* u_plane, |
+ int u_stride, |
+ const uint8_t* v_plane, |
+ int v_stride, |
+ const rtc::Callback0<void>& no_longer_used); |
+ |
+rtc::scoped_refptr<PlanarYuvBuffer> WrapYuvBuffer( |
+ VideoFrameBuffer::Type type, |
+ int width, |
+ int height, |
+ const uint8_t* y_plane, |
+ int y_stride, |
+ const uint8_t* u_plane, |
+ int u_stride, |
+ const uint8_t* v_plane, |
+ int v_stride, |
+ const rtc::Callback0<void>& no_longer_used); |
+ |
} // namespace webrtc |
#endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ |