Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ильжан
babyjitsi-ios
Commits
cd4ef2cd
Commit
cd4ef2cd
authored
Feb 09, 2021
by
Ильжан
Browse files
Initial commit
parents
Changes
496
Show whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
496 of 496+
files are displayed.
Plain diff
Email patch
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoDecoderFactory.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoCodecInfo.h"
#import "RTCVideoDecoder.h"
NS_ASSUME_NONNULL_BEGIN
/** RTCVideoDecoderFactory is an Objective-C version of webrtc::VideoDecoderFactory.
*/
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoDecoderFactory
)
<
NSObject
>
-
(
nullable
id
<
RTC_OBJC_TYPE
(
RTCVideoDecoder
)
>
)
createDecoder
:
(
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*
)
info
;
-
(
NSArray
<
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*>
*
)
supportedCodecs
;
// TODO(andersc): "supportedFormats" instead?
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoDecoderFactoryH264.h
0 → 100644
View file @
cd4ef2cd
/*
* 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"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoDecoderFactoryH264
)
:
NSObject
<
RTC_OBJC_TYPE
(
RTCVideoDecoderFactory
)
>
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoDecoderH264.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoDecoder.h"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoDecoderH264
)
:
NSObject
<
RTC_OBJC_TYPE
(
RTCVideoDecoder
)
>
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoDecoderVP8.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoDecoder.h"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoDecoderVP8
)
:
NSObject
/* This returns a VP8 decoder that can be returned from a RTCVideoDecoderFactory injected into
* RTCPeerConnectionFactory. Even though it implements the RTCVideoDecoder protocol, it can not be
* used independently from the RTCPeerConnectionFactory.
*/
+
(
id
<
RTC_OBJC_TYPE
(
RTCVideoDecoder
)
>
)
vp8Decoder
;
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoDecoderVP9.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoDecoder.h"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoDecoderVP9
)
:
NSObject
/* This returns a VP9 decoder that can be returned from a RTCVideoDecoderFactory injected into
* RTCPeerConnectionFactory. Even though it implements the RTCVideoDecoder protocol, it can not be
* used independently from the RTCPeerConnectionFactory.
*/
+
(
id
<
RTC_OBJC_TYPE
(
RTCVideoDecoder
)
>
)
vp9Decoder
;
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoder.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCEncodedImage.h"
#import "RTCMacros.h"
#import "RTCRtpFragmentationHeader.h"
#import "RTCVideoEncoderQpThresholds.h"
#import "RTCVideoEncoderSettings.h"
#import "RTCVideoFrame.h"
NS_ASSUME_NONNULL_BEGIN
/** Callback block for encoder. */
typedef
BOOL
(
^
RTCVideoEncoderCallback
)(
RTC_OBJC_TYPE
(
RTCEncodedImage
)
*
frame
,
id
<
RTC_OBJC_TYPE
(
RTCCodecSpecificInfo
)
>
info
,
RTC_OBJC_TYPE
(
RTCRtpFragmentationHeader
)
*
header
);
/** Protocol for encoder implementations. */
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoEncoder
)
<
NSObject
>
-
(
void
)
setCallback
:
(
RTCVideoEncoderCallback
)
callback
;
-
(
NSInteger
)
startEncodeWithSettings
:(
RTC_OBJC_TYPE
(
RTCVideoEncoderSettings
)
*
)
settings
numberOfCores
:(
int
)
numberOfCores
;
-
(
NSInteger
)
releaseEncoder
;
-
(
NSInteger
)
encode
:(
RTC_OBJC_TYPE
(
RTCVideoFrame
)
*
)
frame
codecSpecificInfo
:(
nullable
id
<
RTC_OBJC_TYPE
(
RTCCodecSpecificInfo
)
>
)
info
frameTypes
:(
NSArray
<
NSNumber
*>
*
)
frameTypes
;
-
(
int
)
setBitrate
:(
uint32_t
)
bitrateKbit
framerate
:(
uint32_t
)
framerate
;
-
(
NSString
*
)
implementationName
;
/** Returns QP scaling settings for encoder. The quality scaler adjusts the resolution in order to
* keep the QP from the encoded images within the given range. Returning nil from this function
* disables quality scaling. */
-
(
nullable
RTC_OBJC_TYPE
(
RTCVideoEncoderQpThresholds
)
*
)
scalingSettings
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoderFactory.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoCodecInfo.h"
#import "RTCVideoEncoder.h"
NS_ASSUME_NONNULL_BEGIN
/** RTCVideoEncoderFactory is an Objective-C version of
webrtc::VideoEncoderFactory::VideoEncoderSelector.
*/
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoEncoderSelector
)
<
NSObject
>
-
(
void
)
registerCurrentEncoderInfo
:
(
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*
)
info
;
-
(
nullable
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*
)
encoderForBitrate
:(
NSInteger
)
bitrate
;
-
(
nullable
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*
)
encoderForBrokenEncoder
;
@end
/** RTCVideoEncoderFactory is an Objective-C version of webrtc::VideoEncoderFactory.
*/
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoEncoderFactory
)
<
NSObject
>
-
(
nullable
id
<
RTC_OBJC_TYPE
(
RTCVideoEncoder
)
>
)
createEncoder
:
(
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*
)
info
;
-
(
NSArray
<
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*>
*
)
supportedCodecs
;
// TODO(andersc): "supportedFormats" instead?
@optional
-
(
NSArray
<
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*>
*
)
implementations
;
-
(
nullable
id
<
RTC_OBJC_TYPE
(
RTCVideoEncoderSelector
)
>
)
encoderSelector
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoderFactoryH264.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoEncoderFactory.h"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoEncoderFactoryH264
)
:
NSObject
<
RTC_OBJC_TYPE
(
RTCVideoEncoderFactory
)
>
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoderH264.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoCodecInfo.h"
#import "RTCVideoEncoder.h"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoEncoderH264
)
:
NSObject
<
RTC_OBJC_TYPE
(
RTCVideoEncoder
)
>
-
(
instancetype
)
initWithCodecInfo
:(
RTC_OBJC_TYPE
(
RTCVideoCodecInfo
)
*
)
codecInfo
;
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoderQpThresholds.h
0 → 100644
View file @
cd4ef2cd
/*
* 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
/** QP thresholds for encoder. Corresponds to webrtc::VideoEncoder::QpThresholds. */
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoEncoderQpThresholds
)
:
NSObject
-
(
instancetype
)
initWithThresholdsLow
:(
NSInteger
)
low
high
:(
NSInteger
)
high
;
@property
(
nonatomic
,
readonly
)
NSInteger
low
;
@property
(
nonatomic
,
readonly
)
NSInteger
high
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoderSettings.h
0 → 100644
View file @
cd4ef2cd
/*
* 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
typedef
NS_ENUM
(
NSUInteger
,
RTCVideoCodecMode
)
{
RTCVideoCodecModeRealtimeVideo
,
RTCVideoCodecModeScreensharing
,
};
/** Settings for encoder. Corresponds to webrtc::VideoCodec. */
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoEncoderSettings
)
:
NSObject
@property
(
nonatomic
,
strong
)
NSString
*
name
;
@property
(
nonatomic
,
assign
)
unsigned
short
width
;
@property
(
nonatomic
,
assign
)
unsigned
short
height
;
@property
(
nonatomic
,
assign
)
unsigned
int
startBitrate
;
// kilobits/sec.
@property
(
nonatomic
,
assign
)
unsigned
int
maxBitrate
;
@property
(
nonatomic
,
assign
)
unsigned
int
minBitrate
;
@property
(
nonatomic
,
assign
)
uint32_t
maxFramerate
;
@property
(
nonatomic
,
assign
)
unsigned
int
qpMax
;
@property
(
nonatomic
,
assign
)
RTCVideoCodecMode
mode
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoderVP8.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoEncoder.h"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoEncoderVP8
)
:
NSObject
/* This returns a VP8 encoder that can be returned from a RTCVideoEncoderFactory injected into
* RTCPeerConnectionFactory. Even though it implements the RTCVideoEncoder protocol, it can not be
* used independently from the RTCPeerConnectionFactory.
*/
+
(
id
<
RTC_OBJC_TYPE
(
RTCVideoEncoder
)
>
)
vp8Encoder
;
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoEncoderVP9.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoEncoder.h"
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoEncoderVP9
)
:
NSObject
/* This returns a VP9 encoder that can be returned from a RTCVideoEncoderFactory injected into
* RTCPeerConnectionFactory. Even though it implements the RTCVideoEncoder protocol, it can not be
* used independently from the RTCPeerConnectionFactory.
*/
+
(
id
<
RTC_OBJC_TYPE
(
RTCVideoEncoder
)
>
)
vp9Encoder
;
@end
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoFrame.h
0 → 100644
View file @
cd4ef2cd
/*
* 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.
*/
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>
#import "RTCMacros.h"
NS_ASSUME_NONNULL_BEGIN
typedef
NS_ENUM
(
NSInteger
,
RTCVideoRotation
)
{
RTCVideoRotation_0
=
0
,
RTCVideoRotation_90
=
90
,
RTCVideoRotation_180
=
180
,
RTCVideoRotation_270
=
270
,
};
@protocol
RTC_OBJC_TYPE
(
RTCVideoFrameBuffer
);
// RTCVideoFrame is an ObjectiveC version of webrtc::VideoFrame.
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoFrame
)
:
NSObject
/** Width without rotation applied. */
@property
(
nonatomic
,
readonly
)
int
width
;
/** Height without rotation applied. */
@property
(
nonatomic
,
readonly
)
int
height
;
@property
(
nonatomic
,
readonly
)
RTCVideoRotation
rotation
;
/** Timestamp in nanoseconds. */
@property
(
nonatomic
,
readonly
)
int64_t
timeStampNs
;
/** Timestamp 90 kHz. */
@property
(
nonatomic
,
assign
)
int32_t
timeStamp
;
@property
(
nonatomic
,
readonly
)
id
<
RTC_OBJC_TYPE
(
RTCVideoFrameBuffer
)
>
buffer
;
-
(
instancetype
)
init
NS_UNAVAILABLE
;
-
(
instancetype
)
new
NS_UNAVAILABLE
;
/** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp.
* Deprecated - initialize with a RTCCVPixelBuffer instead
*/
-
(
instancetype
)
initWithPixelBuffer
:(
CVPixelBufferRef
)
pixelBuffer
rotation
:(
RTCVideoRotation
)
rotation
timeStampNs
:(
int64_t
)
timeStampNs
DEPRECATED_MSG_ATTRIBUTE
(
"use initWithBuffer instead"
);
/** Initialize an RTCVideoFrame from a pixel buffer combined with cropping and
* scaling. Cropping will be applied first on the pixel buffer, followed by
* scaling to the final resolution of scaledWidth x scaledHeight.
*/
-
(
instancetype
)
initWithPixelBuffer
:(
CVPixelBufferRef
)
pixelBuffer
scaledWidth
:(
int
)
scaledWidth
scaledHeight
:(
int
)
scaledHeight
cropWidth
:(
int
)
cropWidth
cropHeight
:(
int
)
cropHeight
cropX
:(
int
)
cropX
cropY
:(
int
)
cropY
rotation
:(
RTCVideoRotation
)
rotation
timeStampNs
:(
int64_t
)
timeStampNs
DEPRECATED_MSG_ATTRIBUTE
(
"use initWithBuffer instead"
);
/** Initialize an RTCVideoFrame from a frame buffer, rotation, and timestamp.
*/
-
(
instancetype
)
initWithBuffer
:(
id
<
RTC_OBJC_TYPE
(
RTCVideoFrameBuffer
)
>
)
frameBuffer
rotation
:(
RTCVideoRotation
)
rotation
timeStampNs
:(
int64_t
)
timeStampNs
;
/** Return a frame that is guaranteed to be I420, i.e. it is possible to access
* the YUV data on it.
*/
-
(
RTC_OBJC_TYPE
(
RTCVideoFrame
)
*
)
newI420VideoFrame
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoFrameBuffer.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 <AVFoundation/AVFoundation.h>
#import "RTCMacros.h"
NS_ASSUME_NONNULL_BEGIN
@protocol
RTC_OBJC_TYPE
(
RTCI420Buffer
);
// RTCVideoFrameBuffer is an ObjectiveC version of webrtc::VideoFrameBuffer.
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoFrameBuffer
)
<
NSObject
>
@property
(
nonatomic
,
readonly
)
int
width
;
@property
(
nonatomic
,
readonly
)
int
height
;
-
(
id
<
RTC_OBJC_TYPE
(
RTCI420Buffer
)
>
)
toI420
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoRenderer.h
0 → 100644
View file @
cd4ef2cd
/*
* 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.
*/
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#endif
#import "RTCMacros.h"
NS_ASSUME_NONNULL_BEGIN
@class
RTC_OBJC_TYPE
(
RTCVideoFrame
);
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoRenderer
)
<
NSObject
>
/** The size of the frame. */
-
(
void
)
setSize
:
(
CGSize
)
size
;
/** The frame to be displayed. */
-
(
void
)
renderFrame
:(
nullable
RTC_OBJC_TYPE
(
RTCVideoFrame
)
*
)
frame
;
@end
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoViewDelegate
)
-
(
void
)
videoView
:
(
id
<
RTC_OBJC_TYPE
(
RTCVideoRenderer
)
>
)
videoView
didChangeVideoSize
:
(
CGSize
)
size
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoSource.h
0 → 100644
View file @
cd4ef2cd
/*
* 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.
*/
#import <Foundation/Foundation.h>
#import "RTCMacros.h"
#import "RTCMediaSource.h"
#import "RTCVideoCapturer.h"
NS_ASSUME_NONNULL_BEGIN
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoSource
)
:
RTC_OBJC_TYPE
(
RTCMediaSource
)
<
RTC_OBJC_TYPE
(
RTCVideoCapturerDelegate
)
>
-
(
instancetype
)
init
NS_UNAVAILABLE
;
/**
* Calling this function will cause frames to be scaled down to the
* requested resolution. Also, frames will be cropped to match the
* requested aspect ratio, and frames will be dropped to match the
* requested fps. The requested aspect ratio is orientation agnostic and
* will be adjusted to maintain the input orientation, so it doesn't
* matter if e.g. 1280x720 or 720x1280 is requested.
*/
-
(
void
)
adaptOutputFormatToWidth
:(
int
)
width
height
:(
int
)
height
fps
:(
int
)
fps
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoTrack.h
0 → 100644
View file @
cd4ef2cd
/*
* 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.
*/
#import "RTCMediaStreamTrack.h"
#import "RTCMacros.h"
NS_ASSUME_NONNULL_BEGIN
@protocol
RTC_OBJC_TYPE
(
RTCVideoRenderer
);
@class
RTC_OBJC_TYPE
(
RTCPeerConnectionFactory
);
@class
RTC_OBJC_TYPE
(
RTCVideoSource
);
RTC_OBJC_EXPORT
@interface
RTC_OBJC_TYPE
(
RTCVideoTrack
)
:
RTC_OBJC_TYPE
(
RTCMediaStreamTrack
)
/** The video source for this video track. */
@property
(
nonatomic
,
readonly
)
RTC_OBJC_TYPE
(
RTCVideoSource
)
*
source
;
-
(
instancetype
)
init
NS_UNAVAILABLE
;
/** Register a renderer that will render all frames received on this track. */
-
(
void
)
addRenderer
:(
id
<
RTC_OBJC_TYPE
(
RTCVideoRenderer
)
>
)
renderer
;
/** Deregister a renderer. */
-
(
void
)
removeRenderer
:(
id
<
RTC_OBJC_TYPE
(
RTCVideoRenderer
)
>
)
renderer
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCVideoViewShading.h
0 → 100644
View file @
cd4ef2cd
/*
* 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 "RTCVideoFrame.h"
NS_ASSUME_NONNULL_BEGIN
/**
* RTCVideoViewShading provides a way for apps to customize the OpenGL(ES shaders
* used in rendering for the RTCEAGLVideoView/RTCNSGLVideoView.
*/
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCVideoViewShading
)
<
NSObject
>
/** Callback for I420 frames. Each plane is given as a texture. */
-
(
void
)
applyShadingForFrameWithWidth
:
(
int
)
width
height
:
(
int
)
height
rotation
:
(
RTCVideoRotation
)
rotation
yPlane
:
(
GLuint
)
yPlane
uPlane
:
(
GLuint
)
uPlane
vPlane
:
(
GLuint
)
vPlane
;
/** Callback for NV12 frames. Each plane is given as a texture. */
-
(
void
)
applyShadingForFrameWithWidth
:(
int
)
width
height
:(
int
)
height
rotation
:(
RTCVideoRotation
)
rotation
yPlane
:(
GLuint
)
yPlane
uvPlane
:(
GLuint
)
uvPlane
;
@end
NS_ASSUME_NONNULL_END
Frameworks/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/A/Headers/RTCYUVPlanarBuffer.h
0 → 100644
View file @
cd4ef2cd
/*
* 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
/** Protocol for RTCVideoFrameBuffers containing YUV planar data. */
RTC_OBJC_EXPORT
@protocol
RTC_OBJC_TYPE
(
RTCYUVPlanarBuffer
)
<
RTC_OBJC_TYPE
(
RTCVideoFrameBuffer
)
>
@property
(
nonatomic
,
readonly
)
int
chromaWidth
;
@property
(
nonatomic
,
readonly
)
int
chromaHeight
;
@property
(
nonatomic
,
readonly
)
const
uint8_t
*
dataY
;
@property
(
nonatomic
,
readonly
)
const
uint8_t
*
dataU
;
@property
(
nonatomic
,
readonly
)
const
uint8_t
*
dataV
;
@property
(
nonatomic
,
readonly
)
int
strideY
;
@property
(
nonatomic
,
readonly
)
int
strideU
;
@property
(
nonatomic
,
readonly
)
int
strideV
;
-
(
instancetype
)
initWithWidth
:(
int
)
width
height
:(
int
)
height
dataY
:(
const
uint8_t
*
)
dataY
dataU
:(
const
uint8_t
*
)
dataU
dataV
:(
const
uint8_t
*
)
dataV
;
-
(
instancetype
)
initWithWidth
:(
int
)
width
height
:(
int
)
height
;
-
(
instancetype
)
initWithWidth
:(
int
)
width
height
:(
int
)
height
strideY
:(
int
)
strideY
strideU
:(
int
)
strideU
strideV
:(
int
)
strideV
;
@end
NS_ASSUME_NONNULL_END
Prev
1
…
9
10
11
12
13
14
15
16
17
…
25
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment