Use CodecTypeToPayloadString
Bug: none Change-Id: Ic1879497a35ca3c1aa362ca2d3834d8d80a6bc31 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/296662 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39504}
This commit is contained in:
parent
6a0997de01
commit
a0be70a87c
@ -8996,31 +8996,8 @@ std::string TestParametersVideoCodecAndAllowI420ConversionToString(
|
|||||||
testing::TestParamInfo<std::pair<VideoCodecType, bool>> info) {
|
testing::TestParamInfo<std::pair<VideoCodecType, bool>> info) {
|
||||||
VideoCodecType codec_type = std::get<0>(info.param);
|
VideoCodecType codec_type = std::get<0>(info.param);
|
||||||
bool allow_i420_conversion = std::get<1>(info.param);
|
bool allow_i420_conversion = std::get<1>(info.param);
|
||||||
std::string str;
|
return std::string(CodecTypeToPayloadString(codec_type)) +
|
||||||
switch (codec_type) {
|
(allow_i420_conversion ? "_AllowToI420" : "_DisallowToI420");
|
||||||
case kVideoCodecGeneric:
|
|
||||||
str = "Generic";
|
|
||||||
break;
|
|
||||||
case kVideoCodecVP8:
|
|
||||||
str = "VP8";
|
|
||||||
break;
|
|
||||||
case kVideoCodecVP9:
|
|
||||||
str = "VP9";
|
|
||||||
break;
|
|
||||||
case kVideoCodecAV1:
|
|
||||||
str = "AV1";
|
|
||||||
break;
|
|
||||||
case kVideoCodecH264:
|
|
||||||
str = "H264";
|
|
||||||
break;
|
|
||||||
case kVideoCodecMultiplex:
|
|
||||||
str = "Multiplex";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
RTC_DCHECK_NOTREACHED();
|
|
||||||
}
|
|
||||||
str += allow_i420_conversion ? "_AllowToI420" : "_DisallowToI420";
|
|
||||||
return str;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr std::pair<VideoCodecType, bool> kVP8DisallowConversion =
|
constexpr std::pair<VideoCodecType, bool> kVP8DisallowConversion =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user