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

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

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Created 4 years 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
1 /* 1 /*
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2016 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_COREVIDEO_FRAME_BUFFER_H_ 11 #ifndef WEBRTC_COMMON_VIDEO_INCLUDE_COREVIDEO_FRAME_BUFFER_H_
12 #define WEBRTC_COMMON_VIDEO_INCLUDE_COREVIDEO_FRAME_BUFFER_H_ 12 #define WEBRTC_COMMON_VIDEO_INCLUDE_COREVIDEO_FRAME_BUFFER_H_
13 13
14 #include <CoreVideo/CoreVideo.h> 14 #include <CoreVideo/CoreVideo.h>
15 15
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/common_video/include/video_frame_buffer.h" 18 #include "webrtc/api/video/video_frame_buffer.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 21
22 class CoreVideoFrameBuffer : public NativeHandleBuffer { 22 class CoreVideoFrameBuffer : public NativeHandleBuffer {
23 public: 23 public:
24 explicit CoreVideoFrameBuffer(CVPixelBufferRef pixel_buffer); 24 explicit CoreVideoFrameBuffer(CVPixelBufferRef pixel_buffer);
25 CoreVideoFrameBuffer(CVPixelBufferRef pixel_buffer, 25 CoreVideoFrameBuffer(CVPixelBufferRef pixel_buffer,
26 int adapted_width, 26 int adapted_width,
27 int adapted_height, 27 int adapted_height,
28 int crop_width, 28 int crop_width,
(...skipping 21 matching lines...) Expand all
50 const int buffer_height_; 50 const int buffer_height_;
51 const int crop_width_; 51 const int crop_width_;
52 const int crop_height_; 52 const int crop_height_;
53 const int crop_x_; 53 const int crop_x_;
54 const int crop_y_; 54 const int crop_y_;
55 }; 55 };
56 56
57 } // namespace webrtc 57 } // namespace webrtc
58 58
59 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_COREVIDEO_FRAME_BUFFER_H_ 59 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_COREVIDEO_FRAME_BUFFER_H_
60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698