2016-01-11 09:47:07 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-04-27 01:54:20 -07:00
|
|
|
#import "WebRTC/RTCVideoFrame.h"
|
2016-01-11 09:47:07 -08:00
|
|
|
|
2016-08-10 07:58:29 -07:00
|
|
|
#include "webrtc/common_video/rotation.h"
|
2016-11-02 03:39:58 -07:00
|
|
|
#include "webrtc/media/base/videoframe.h"
|
2016-01-11 09:47:07 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface RTCVideoFrame ()
|
|
|
|
|
|
2016-04-04 14:10:43 -07:00
|
|
|
@property(nonatomic, readonly)
|
|
|
|
|
rtc::scoped_refptr<webrtc::VideoFrameBuffer> i420Buffer;
|
|
|
|
|
|
2016-08-10 07:58:29 -07:00
|
|
|
- (instancetype)initWithVideoBuffer:
|
|
|
|
|
(rtc::scoped_refptr<webrtc::VideoFrameBuffer>)videoBuffer
|
|
|
|
|
rotation:(webrtc::VideoRotation)rotation
|
|
|
|
|
timeStampNs:(int64_t)timeStampNs
|
2016-01-11 09:47:07 -08:00
|
|
|
NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|