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.
Этот коммит содержится в:
Jeff Jiang
2025-08-21 10:40:17 -04:00
коммит произвёл GitHub
родитель 5ffe20cdd7
Коммит 84257d513a
4 изменённых файлов: 25 добавлений и 5 удалений
+2 -2
Просмотреть файл
@@ -131,11 +131,11 @@ public:
}
int img_size = img_width * surf_info->bytes_per_pixel * (img_height + surf_info->chroma_height);
// For 10 bit, convert from P010 to LSB to match reference decoder output
// For 10/12 bit, convert from P010/P012 to LSB to match reference decoder output
if (surf_info->bytes_per_pixel == 2) {
uint16_t *ptr = reinterpret_cast<uint16_t *> (stacked_ptr);
for (i = 0; i < img_size / 2; i++) {
ptr[i] = ptr[i] >> 6;
ptr[i] = ptr[i] >> (16 - surf_info->bit_depth);
}
}