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:
+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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user