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:
Jeff Jiang
2025-08-21 10:40:17 -04:00
cometido por GitHub
padre 5ffe20cdd7
commit 84257d513a
Se han modificado 4 ficheros con 25 adiciones y 5 borrados
+16 -2
Ver fichero
@@ -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: {