OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #import <Foundation/Foundation.h> |
| 12 #import <WebRTC/RTCMacros.h> |
| 13 |
| 14 @class RTCVideoFrame; |
| 15 |
| 16 NS_ASSUME_NONNULL_BEGIN |
| 17 |
| 18 // Represents an encoded frame's type |
| 19 typedef NS_ENUM(NSUInteger, RTCFrameType) { |
| 20 EmptyFrame, |
| 21 VideoFrameKey, |
| 22 VideoFrameDelta, |
| 23 }; |
| 24 |
| 25 // Represents an encoded frame |
| 26 RTC_EXPORT |
| 27 @interface RTCEncodedImage : NSObject |
| 28 |
| 29 @property(nonatomic, retain) NSData* buffer; |
| 30 @property(nonatomic, assign) int encodedWidth; |
| 31 @property(nonatomic, assign) int encodedHeight; |
| 32 @property(nonatomic, assign) uint32_t timeStamp; |
| 33 @property(nonatomic, assign) long captureTimeMs; |
| 34 @property(nonatomic, assign) long ntpTimeMs; |
| 35 @property(nonatomic, assign) BOOL isTimingFrame; |
| 36 @property(nonatomic, assign) long encodeStartMs; |
| 37 @property(nonatomic, assign) long encodeFinishMs; |
| 38 @property(nonatomic, assign) RTCFrameType frameType; |
| 39 @property(nonatomic, assign) int rotation; |
| 40 @property(nonatomic, assign) BOOL completeFrame; |
| 41 @property(nonatomic, retain) NSNumber* qp; |
| 42 |
| 43 @end |
| 44 |
| 45 NS_ASSUME_NONNULL_END |
OLD | NEW |