OLD | NEW |
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 "webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h" | 11 #import "webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h" |
12 #import "webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h" | 12 #import "webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h" |
13 | 13 |
14 @implementation RTCVideoFrame { | 14 @implementation RTCVideoFrame { |
15 RTCVideoRotation _rotation; | 15 RTCVideoRotation _rotation; |
16 int64_t _timeStampNs; | 16 int64_t _timeStampNs; |
17 } | 17 } |
18 | 18 |
19 @synthesize buffer = _buffer; | 19 @synthesize buffer = _buffer; |
| 20 @synthesize timeStamp; |
20 | 21 |
21 - (int)width { | 22 - (int)width { |
22 return _buffer.width; | 23 return _buffer.width; |
23 } | 24 } |
24 | 25 |
25 - (int)height { | 26 - (int)height { |
26 return _buffer.height; | 27 return _buffer.height; |
27 } | 28 } |
28 | 29 |
29 - (RTCVideoRotation)rotation { | 30 - (RTCVideoRotation)rotation { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 if (self = [super init]) { | 130 if (self = [super init]) { |
130 _buffer = buffer; | 131 _buffer = buffer; |
131 _rotation = rotation; | 132 _rotation = rotation; |
132 _timeStampNs = timeStampNs; | 133 _timeStampNs = timeStampNs; |
133 } | 134 } |
134 | 135 |
135 return self; | 136 return self; |
136 } | 137 } |
137 | 138 |
138 @end | 139 @end |
OLD | NEW |