
Bug: webrtc:11341 Change-Id: Ia894d6269c8b2f70d8de113936ceb53107cfa923 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172803 Reviewed-by: Anders Carlsson <andersc@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31005}
45 lines
1.4 KiB
Objective-C
45 lines
1.4 KiB
Objective-C
/*
|
|
* 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 RTCVideoEncoderSelector <NSObject>
|
|
|
|
- (void)registerCurrentEncoderInfo:(RTCVideoCodecInfo *)info;
|
|
- (nullable RTCVideoCodecInfo *)encoderForBitrate:(NSInteger)bitrate;
|
|
- (nullable RTCVideoCodecInfo *)encoderForBrokenEncoder;
|
|
|
|
@end
|
|
|
|
/** RTCVideoEncoderFactory is an Objective-C version of webrtc::VideoEncoderFactory. */
|
|
RTC_OBJC_EXPORT
|
|
@protocol RTCVideoEncoderFactory <NSObject>
|
|
|
|
- (nullable id<RTCVideoEncoder>)createEncoder:(RTCVideoCodecInfo *)info;
|
|
- (NSArray<RTCVideoCodecInfo *> *)supportedCodecs; // TODO(andersc): "supportedFormats" instead?
|
|
|
|
@optional
|
|
- (NSArray<RTCVideoCodecInfo *> *)implementations;
|
|
- (nullable id<RTCVideoEncoderSelector>)encoderSelector;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|