Update VP9 encoder to use GetEncoderInfo
Bug: webrtc:9890 Change-Id: I74c1e098c800a44e2e038cd8a01be6c61bec97f5 Reviewed-on: https://webrtc-review.googlesource.com/c/109922 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25551}
This commit is contained in:
@ -1245,8 +1245,12 @@ int VP9EncoderImpl::RegisterEncodeCompleteCallback(
|
|||||||
return WEBRTC_VIDEO_CODEC_OK;
|
return WEBRTC_VIDEO_CODEC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* VP9EncoderImpl::ImplementationName() const {
|
VideoEncoder::EncoderInfo VP9EncoderImpl::GetEncoderInfo() const {
|
||||||
return "libvpx";
|
EncoderInfo info;
|
||||||
|
info.supports_native_handle = false;
|
||||||
|
info.implementation_name = "libvpx";
|
||||||
|
info.scaling_settings = VideoEncoder::ScalingSettings::kOff;
|
||||||
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<VP9Decoder> VP9Decoder::Create() {
|
std::unique_ptr<VP9Decoder> VP9Decoder::Create() {
|
||||||
|
@ -49,7 +49,7 @@ class VP9EncoderImpl : public VP9Encoder {
|
|||||||
int SetRateAllocation(const VideoBitrateAllocation& bitrate_allocation,
|
int SetRateAllocation(const VideoBitrateAllocation& bitrate_allocation,
|
||||||
uint32_t frame_rate) override;
|
uint32_t frame_rate) override;
|
||||||
|
|
||||||
const char* ImplementationName() const override;
|
EncoderInfo GetEncoderInfo() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Determine number of encoder threads to use.
|
// Determine number of encoder threads to use.
|
||||||
|
Reference in New Issue
Block a user