Add supportsNativeHandle to the RTCVideoEncoder protocol.

The simulcast_encoder_adapter expects codecs that specify
supports_native_handle to perform resampling/scaling (through
GetEncoderInfo).
This change adds a method to the RTCVideoEncoder to let objc encoders
specify this rather than relying on the default.

Bug: webrtc:13044
Change-Id: I2efcbd42aa4f2048285f451c7b691fdeca111e62
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227641
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Commit-Queue: Peter Hanspers <peterhanspers@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34683}
This commit is contained in:
Peter Hanspers
2021-08-04 17:15:49 +02:00
committed by WebRTC LUCI CQ
parent 954c1d1a0c
commit 7f854bce1f
4 changed files with 13 additions and 1 deletions

View File

@ -79,4 +79,8 @@
return NO;
}
- (BOOL)supportsNativeHandle {
RTC_NOTREACHED();
return NO;
}
@end