Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_COMMON_VIDEO_INCLUDE_CORE_VIDEO_FRAME_BUFFER_H_ | |
| 12 #define WEBRTC_COMMON_VIDEO_INCLUDE_CORE_VIDEO_FRAME_BUFFER_H_ | |
| 13 | |
| 14 #include <CoreVideo/CoreVideo.h> | |
| 15 | |
| 16 #include "webrtc/common_video/include/video_frame_buffer.h" | |
| 17 | |
| 18 namespace webrtc { | |
| 19 | |
| 20 class CoreVideoFrameBuffer : public NativeHandleBuffer { | |
| 21 public: | |
| 22 explicit CoreVideoFrameBuffer(CVPixelBufferRef pixel_buffer); | |
| 23 virtual ~CoreVideoFrameBuffer(); | |
|
magjed_webrtc
2016/04/04 14:03:30
nit: Override instead of virtual?
tkchin_webrtc
2016/04/04 19:12:51
Done.
| |
| 24 | |
| 25 rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override; | |
| 26 | |
| 27 private: | |
| 28 CVPixelBufferRef pixel_buffer_; | |
| 29 }; | |
| 30 | |
| 31 } // namespace webrtc | |
| 32 | |
| 33 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_CORE_VIDEO_FRAME_BUFFER_H_ | |
| 34 | |
| OLD | NEW |