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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Make rotation check clearer. Created 3 years, 11 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
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 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 #import "RTCVideoFrame+Private.h" 11 #import "RTCVideoFrame+Private.h"
12 12
13 #include <memory> 13 #include <memory>
14 14
15 #include "webrtc/common_video/rotation.h" 15 #include "webrtc/api/video/video_rotation.h"
16 16
17 @implementation RTCVideoFrame { 17 @implementation RTCVideoFrame {
18 rtc::scoped_refptr<webrtc::VideoFrameBuffer> _videoBuffer; 18 rtc::scoped_refptr<webrtc::VideoFrameBuffer> _videoBuffer;
19 webrtc::VideoRotation _rotation; 19 webrtc::VideoRotation _rotation;
20 int64_t _timeStampNs; 20 int64_t _timeStampNs;
21 rtc::scoped_refptr<webrtc::VideoFrameBuffer> _i420Buffer; 21 rtc::scoped_refptr<webrtc::VideoFrameBuffer> _i420Buffer;
22 } 22 }
23 23
24 - (size_t)width { 24 - (size_t)width {
25 return _videoBuffer->width(); 25 return _videoBuffer->width();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 return self; 116 return self;
117 } 117 }
118 118
119 - (rtc::scoped_refptr<webrtc::VideoFrameBuffer>)i420Buffer { 119 - (rtc::scoped_refptr<webrtc::VideoFrameBuffer>)i420Buffer {
120 [self convertBufferIfNeeded]; 120 [self convertBufferIfNeeded];
121 return _i420Buffer; 121 return _i420Buffer;
122 } 122 }
123 123
124 @end 124 @end
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCShader+Private.h ('k') | webrtc/sdk/objc/Framework/Classes/RTCVideoFrame+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698