| 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 "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 Loading... |
| 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 |
| OLD | NEW |