Update Dav1dDecoderTemplateAdapater to include AV1 profile1 support.
Bug: webrtc:13573 Change-Id: Ibc81b6400eb8e22ce28ae434c83a22013ef96c79 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/299946 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39757}
This commit is contained in:
parent
527196508c
commit
31af34ba8c
@ -114,8 +114,8 @@ TEST(VideoDecoderFactoryTemplate, OpenH264) {
|
||||
TEST(VideoDecoderFactoryTemplate, Dav1d) {
|
||||
VideoDecoderFactoryTemplate<Dav1dDecoderTemplateAdapter> factory;
|
||||
auto formats = factory.GetSupportedFormats();
|
||||
EXPECT_THAT(formats.size(), 1);
|
||||
EXPECT_THAT(formats[0], Field(&SdpVideoFormat::name, "AV1"));
|
||||
EXPECT_THAT(formats, Not(IsEmpty()));
|
||||
EXPECT_THAT(formats, Each(Field(&SdpVideoFormat::name, "AV1")));
|
||||
EXPECT_THAT(factory.CreateVideoDecoder(formats[0]), Ne(nullptr));
|
||||
}
|
||||
|
||||
|
||||
@ -14,13 +14,17 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "api/video_codecs/av1_profile.h"
|
||||
#include "api/video_codecs/sdp_video_format.h"
|
||||
#include "modules/video_coding/codecs/av1/dav1d_decoder.h"
|
||||
|
||||
namespace webrtc {
|
||||
struct Dav1dDecoderTemplateAdapter {
|
||||
static std::vector<SdpVideoFormat> SupportedFormats() {
|
||||
return {SdpVideoFormat("AV1")};
|
||||
return {SdpVideoFormat("AV1"),
|
||||
SdpVideoFormat(
|
||||
"AV1", {{kAV1FmtpProfile,
|
||||
AV1ProfileToString(AV1Profile::kProfile1).data()}})};
|
||||
}
|
||||
|
||||
static std::unique_ptr<VideoDecoder> CreateDecoder(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user