Let IvfVideoFrameGenerator support AV1 codec
This CL adds dav1d decoder into `IvfVideoFrameGenerator` to support IVF input with AV1 codec. Bug: webrtc:15210 Change-Id: I4cbc93fa62fdc346f3c647bbf26f033bf0cc34ba Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/311340 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Jianhui J Dai <jianhui.j.dai@intel.com> Cr-Commit-Position: refs/heads/main@{#40402}
This commit is contained in:
parent
51712a3196
commit
cc6042d876
@ -66,6 +66,7 @@ rtc_library("frame_generator_impl") {
|
||||
"../modules/video_coding:webrtc_h264",
|
||||
"../modules/video_coding:webrtc_vp8",
|
||||
"../modules/video_coding:webrtc_vp9",
|
||||
"../modules/video_coding/codecs/av1:dav1d_decoder",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base:criticalsection",
|
||||
"../rtc_base:logging",
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
#include "api/video/i420_buffer.h"
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "media/base/media_constants.h"
|
||||
#include "modules/video_coding/codecs/av1/dav1d_decoder.h"
|
||||
#include "modules/video_coding/codecs/h264/include/h264.h"
|
||||
#include "modules/video_coding/codecs/vp8/include/vp8.h"
|
||||
#include "modules/video_coding/codecs/vp9/include/vp9.h"
|
||||
@ -145,6 +146,9 @@ std::unique_ptr<VideoDecoder> IvfVideoFrameGenerator::CreateVideoDecoder(
|
||||
if (codec_type == VideoCodecType::kVideoCodecH264) {
|
||||
return H264Decoder::Create();
|
||||
}
|
||||
if (codec_type == VideoCodecType::kVideoCodecAV1) {
|
||||
return CreateDav1dDecoder();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user