| Index: webrtc/api/video/i420_buffer.h
|
| diff --git a/webrtc/api/video/i420_buffer.h b/webrtc/api/video/i420_buffer.h
|
| index 507bd0571b303f0238a7f2b03631336aaf5f8e82..388a3dd76903ad9e8f24a7d841f6220c2d994a21 100644
|
| --- a/webrtc/api/video/i420_buffer.h
|
| +++ b/webrtc/api/video/i420_buffer.h
|
| @@ -53,6 +53,9 @@
|
| // are resolved in a better way. Or in the mean time, use SetBlack.
|
| void InitializeData();
|
|
|
| + // TODO(nisse): Deprecated, use static method instead.
|
| + void SetToBlack() { SetBlack(this); }
|
| +
|
| int width() const override;
|
| int height() const override;
|
| const uint8_t* DataY() const override;
|
| @@ -85,6 +88,14 @@
|
| // Scale all of |src| to the size of |this| buffer, with no cropping.
|
| void ScaleFrom(const VideoFrameBuffer& src);
|
|
|
| + // TODO(nisse): Deprecated, delete once downstream applications are updated.
|
| + // Returns a rotated versions of |src|. Native buffers are not
|
| + // supported. The reason this function doesn't return an I420Buffer,
|
| + // is that it returns |src| unchanged in case |rotation| is zero.
|
| + static rtc::scoped_refptr<VideoFrameBuffer> Rotate(
|
| + rtc::scoped_refptr<VideoFrameBuffer> src,
|
| + VideoRotation rotation);
|
| +
|
| protected:
|
| I420Buffer(int width, int height);
|
| I420Buffer(int width, int height, int stride_y, int stride_u, int stride_v);
|
|
|