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 class WrappedI420Buffer : public I420BufferInterface { | 48 rtc::scoped_refptr<I420BufferInterface> WrapI420Buffer( |
nisse-webrtc
2017/06/13 12:29:09
Deleting this class will likely break some downstr
Yuwei
2017/06/19 21:33:26
Just added back WrappedI420Buffer. I did a cs on C
| |
49 public: | 49 int width, |
50 WrappedI420Buffer(int width, | 50 int height, |
51 int height, | 51 const uint8_t* y_plane, |
52 const uint8_t* y_plane, | 52 int y_stride, |
53 int y_stride, | 53 const uint8_t* u_plane, |
54 const uint8_t* u_plane, | 54 int u_stride, |
55 int u_stride, | 55 const uint8_t* v_plane, |
56 const uint8_t* v_plane, | 56 int v_stride, |
57 int v_stride, | 57 const rtc::Callback0<void>& no_longer_used); |
58 const rtc::Callback0<void>& no_longer_used); | |
59 int width() const override; | |
60 int height() const override; | |
61 | 58 |
62 const uint8_t* DataY() const override; | 59 rtc::scoped_refptr<I444BufferInterface> WrapI444Buffer( |
63 const uint8_t* DataU() const override; | 60 int width, |
64 const uint8_t* DataV() const override; | 61 int height, |
65 int StrideY() const override; | 62 const uint8_t* y_plane, |
66 int StrideU() const override; | 63 int y_stride, |
67 int StrideV() const override; | 64 const uint8_t* u_plane, |
68 | 65 int u_stride, |
69 private: | 66 const uint8_t* v_plane, |
70 friend class rtc::RefCountedObject<WrappedI420Buffer>; | 67 int v_stride, |
71 ~WrappedI420Buffer() override; | 68 const rtc::Callback0<void>& no_longer_used); |
72 | |
73 const int width_; | |
74 const int height_; | |
75 const uint8_t* const y_plane_; | |
76 const uint8_t* const u_plane_; | |
77 const uint8_t* const v_plane_; | |
78 const int y_stride_; | |
79 const int u_stride_; | |
80 const int v_stride_; | |
81 rtc::Callback0<void> no_longer_used_cb_; | |
82 }; | |
83 | 69 |
84 } // namespace webrtc | 70 } // namespace webrtc |
85 | 71 |
86 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ | 72 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ |
OLD | NEW |