-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca71024
commit aa8bee9
Showing
87 changed files
with
992 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright 2018 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. | ||
*/ | ||
|
||
#import <AVFoundation/AVFoundation.h> | ||
|
||
#import "RTCMacros.h" | ||
#import "RTCVideoFrameBuffer.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** RTCVideoFrameBuffer containing a CVPixelBufferRef */ | ||
RTC_OBJC_EXPORT | ||
@interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer> | ||
|
||
@property(nonatomic, readonly) CVPixelBufferRef pixelBuffer; | ||
@property(nonatomic, readonly) int cropX; | ||
@property(nonatomic, readonly) int cropY; | ||
@property(nonatomic, readonly) int cropWidth; | ||
@property(nonatomic, readonly) int cropHeight; | ||
|
||
+ (NSSet<NSNumber *> *)supportedPixelFormats; | ||
|
||
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer; | ||
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer | ||
adaptedWidth:(int)adaptedWidth | ||
adaptedHeight:(int)adaptedHeight | ||
cropWidth:(int)cropWidth | ||
cropHeight:(int)cropHeight | ||
cropX:(int)cropX | ||
cropY:(int)cropY; | ||
|
||
- (BOOL)requiresCropping; | ||
- (BOOL)requiresScalingToWidth:(int)width height:(int)height; | ||
- (int)bufferSizeForCroppingAndScalingToWidth:(int)width height:(int)height; | ||
|
||
/** The minimum size of the |tmpBuffer| must be the number of bytes returned from the | ||
* bufferSizeForCroppingAndScalingToWidth:height: method. | ||
* If that size is 0, the |tmpBuffer| may be nil. | ||
*/ | ||
- (BOOL)cropAndScaleTo:(CVPixelBufferRef)outputPixelBuffer | ||
withTempBuffer:(nullable uint8_t *)tmpBuffer; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2017 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. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "RTCMacros.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** Implement this protocol to pass codec specific info from the encoder. | ||
* Corresponds to webrtc::CodecSpecificInfo. | ||
*/ | ||
RTC_OBJC_EXPORT | ||
@protocol RTCCodecSpecificInfo <NSObject> | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2017 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. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "RTCCodecSpecificInfo.h" | ||
#import "RTCMacros.h" | ||
|
||
/** Class for H264 specific config. */ | ||
typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) { | ||
RTCH264PacketizationModeNonInterleaved = 0, // Mode 1 - STAP-A, FU-A is allowed | ||
RTCH264PacketizationModeSingleNalUnit // Mode 0 - only single NALU allowed | ||
}; | ||
|
||
RTC_OBJC_EXPORT | ||
@interface RTCCodecSpecificInfoH264 : NSObject <RTCCodecSpecificInfo> | ||
|
||
@property(nonatomic, assign) RTCH264PacketizationMode packetizationMode; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Build/WebRTC.framework/Headers/RTCDefaultVideoDecoderFactory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2017 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. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "RTCMacros.h" | ||
#import "RTCVideoDecoderFactory.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** This decoder factory include support for all codecs bundled with WebRTC. If using custom | ||
* codecs, create custom implementations of RTCVideoEncoderFactory and RTCVideoDecoderFactory. | ||
*/ | ||
RTC_OBJC_EXPORT | ||
@interface RTCDefaultVideoDecoderFactory : NSObject <RTCVideoDecoderFactory> | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.