AV1: Added 12-bit AV1 decode support. (#631)
* * rocDecode/AV1: Added 12-bit AV1 decode support. - The feature is only enabled for VAAPI version 1.23.0 and up. - Added MD5 calculation for 12-bit video output. * * rocDecode: Bumped version up to 1.2.0 and updated change log. * * rocDecode: Updated change log based on review.
Este commit está contenido en:
@@ -395,7 +395,14 @@ rocDecStatus VaapiVideoDecoder::CreateDecoderConfig() {
|
||||
}
|
||||
break;
|
||||
case rocDecVideoCodec_AV1:
|
||||
va_profile_ = VAProfileAV1Profile0;
|
||||
#if VA_CHECK_VERSION(1, 23, 0)
|
||||
if (decoder_create_info_.bit_depth_minus_8 == 4) {
|
||||
va_profile_ = VAProfileAV1Profile2;
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
va_profile_ = VAProfileAV1Profile0;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ERR("The codec type is not supported.");
|
||||
@@ -649,7 +656,14 @@ rocDecStatus VaContext::CheckDecCapForCodecType(RocdecDecodeCaps *dec_cap) {
|
||||
break;
|
||||
}
|
||||
case rocDecVideoCodec_AV1: {
|
||||
va_profile = VAProfileAV1Profile0;
|
||||
#if VA_CHECK_VERSION(1, 23, 0)
|
||||
if (dec_cap->bit_depth_minus_8 == 4) {
|
||||
va_profile = VAProfileAV1Profile2;
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
va_profile = VAProfileAV1Profile0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
Referencia en una nueva incidencia
Block a user