| 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 |
| 11 #ifndef WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ | 11 #ifndef WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ |
| 12 #define WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ | 12 #define WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 | 15 |
| 16 #include "webrtc/api/video/video_frame_buffer.h" | 16 #include "webrtc/api/video/video_frame_buffer.h" |
| 17 // TODO(nisse): For backwards compatibility, files including this file | |
| 18 // expect it to declare I420Buffer. Delete after callers are updated. | |
| 19 #include "webrtc/api/video/i420_buffer.h" | |
| 20 #include "webrtc/base/callback.h" | 17 #include "webrtc/base/callback.h" |
| 21 #include "webrtc/base/scoped_ref_ptr.h" | 18 #include "webrtc/base/scoped_ref_ptr.h" |
| 22 | 19 |
| 23 namespace webrtc { | 20 namespace webrtc { |
| 24 | 21 |
| 25 // Base class for native-handle buffer is a wrapper around a |native_handle|. | 22 // Base class for native-handle buffer is a wrapper around a |native_handle|. |
| 26 // This is used for convenience as most native-handle implementations can share | 23 // This is used for convenience as most native-handle implementations can share |
| 27 // many VideoFrame implementations, but need to implement a few others (such | 24 // many VideoFrame implementations, but need to implement a few others (such |
| 28 // as their own destructors or conversion methods back to software I420). | 25 // as their own destructors or conversion methods back to software I420). |
| 29 class NativeHandleBuffer : public VideoFrameBuffer { | 26 class NativeHandleBuffer : public VideoFrameBuffer { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const uint8_t* const v_plane_; | 80 const uint8_t* const v_plane_; |
| 84 const int y_stride_; | 81 const int y_stride_; |
| 85 const int u_stride_; | 82 const int u_stride_; |
| 86 const int v_stride_; | 83 const int v_stride_; |
| 87 rtc::Callback0<void> no_longer_used_cb_; | 84 rtc::Callback0<void> no_longer_used_cb_; |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace webrtc | 87 } // namespace webrtc |
| 91 | 88 |
| 92 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ | 89 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ |
| OLD | NEW |