Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: webrtc/common_video/include/corevideo_frame_buffer.h

Issue 1853503003: Add CoreVideoFrameBuffer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rename file for readability. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_COREVIDEO_FRAME_BUFFER_H_
12 #define WEBRTC_COMMON_VIDEO_INCLUDE_COREVIDEO_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 ~CoreVideoFrameBuffer() override;
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_COREVIDEO_FRAME_BUFFER_H_
34
OLDNEW
« no previous file with comments | « webrtc/common_video/corevideo_frame_buffer.cc ('k') | webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698