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.
Dieser Commit ist enthalten in:
Jeff Jiang verfasst und GitHub committed 2025-08-21 10:40:17 -04:00
1 Ursprung 5ffe20cdd7
Commit 84257d513a
4 Dateien geändert
+25 -5

Keine Dateien entsprechen Ihrer Suche

+2 -2
Datei anzeigen
@@ -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);
}
}