| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 int StrideV() const override; | 38 int StrideV() const override; |
| 39 | 39 |
| 40 void* native_handle() const override; | 40 void* native_handle() const override; |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 void* native_handle_; | 43 void* native_handle_; |
| 44 const int width_; | 44 const int width_; |
| 45 const int height_; | 45 const int height_; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 // Deprecated. Please use WrapI420Buffer(...) instead. |
| 48 class WrappedI420Buffer : public I420BufferInterface { | 49 class WrappedI420Buffer : public I420BufferInterface { |
| 49 public: | 50 public: |
| 50 WrappedI420Buffer(int width, | 51 WrappedI420Buffer(int width, |
| 51 int height, | 52 int height, |
| 52 const uint8_t* y_plane, | 53 const uint8_t* y_plane, |
| 53 int y_stride, | 54 int y_stride, |
| 54 const uint8_t* u_plane, | 55 const uint8_t* u_plane, |
| 55 int u_stride, | 56 int u_stride, |
| 56 const uint8_t* v_plane, | 57 const uint8_t* v_plane, |
| 57 int v_stride, | 58 int v_stride, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 74 const int height_; | 75 const int height_; |
| 75 const uint8_t* const y_plane_; | 76 const uint8_t* const y_plane_; |
| 76 const uint8_t* const u_plane_; | 77 const uint8_t* const u_plane_; |
| 77 const uint8_t* const v_plane_; | 78 const uint8_t* const v_plane_; |
| 78 const int y_stride_; | 79 const int y_stride_; |
| 79 const int u_stride_; | 80 const int u_stride_; |
| 80 const int v_stride_; | 81 const int v_stride_; |
| 81 rtc::Callback0<void> no_longer_used_cb_; | 82 rtc::Callback0<void> no_longer_used_cb_; |
| 82 }; | 83 }; |
| 83 | 84 |
| 85 rtc::scoped_refptr<I420BufferInterface> WrapI420Buffer( |
| 86 int width, |
| 87 int height, |
| 88 const uint8_t* y_plane, |
| 89 int y_stride, |
| 90 const uint8_t* u_plane, |
| 91 int u_stride, |
| 92 const uint8_t* v_plane, |
| 93 int v_stride, |
| 94 const rtc::Callback0<void>& no_longer_used); |
| 95 |
| 96 rtc::scoped_refptr<I444BufferInterface> WrapI444Buffer( |
| 97 int width, |
| 98 int height, |
| 99 const uint8_t* y_plane, |
| 100 int y_stride, |
| 101 const uint8_t* u_plane, |
| 102 int u_stride, |
| 103 const uint8_t* v_plane, |
| 104 int v_stride, |
| 105 const rtc::Callback0<void>& no_longer_used); |
| 106 |
| 107 rtc::scoped_refptr<PlanarYuvBuffer> WrapYuvBuffer( |
| 108 VideoFrameBuffer::Type type, |
| 109 int width, |
| 110 int height, |
| 111 const uint8_t* y_plane, |
| 112 int y_stride, |
| 113 const uint8_t* u_plane, |
| 114 int u_stride, |
| 115 const uint8_t* v_plane, |
| 116 int v_stride, |
| 117 const rtc::Callback0<void>& no_longer_used); |
| 118 |
| 84 } // namespace webrtc | 119 } // namespace webrtc |
| 85 | 120 |
| 86 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ | 121 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ |
| OLD | NEW |