Fix a bug casued by the reuse of the surfaces (#162)

[ROCm/rocjpeg commit: 9d01934065]
This commit is contained in:
Aryan Salmanpour
2025-06-30 13:43:02 -04:00
committed by GitHub
vanhempi 08b805e9f8
commit 573e4ed0cc
3 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
+1 -1
Näytä tiedosto
@@ -3,7 +3,7 @@
Documentation for rocJPEG is available at
[https://rocm.docs.amd.com/projects/rocJPEG/en/latest/](https://rocm.docs.amd.com/projects/rocJPEG/en/latest/)
## rocJPEG 0.14.0 (unreleased)
## rocJPEG 0.14.1 (unreleased)
## Added
* cmake config files
+1 -1
Näytä tiedosto
@@ -42,7 +42,7 @@ endif()
# rocJPEG Version
# NOTE: package version and rocjpeg_version.h is generated with this version
set(VERSION "0.14.0")
set(VERSION "0.14.1")
# Set Project Version and Language
project(rocjpeg VERSION ${VERSION} LANGUAGES CXX)
@@ -286,12 +286,14 @@ RocJpegStatus RocJpegDecoder::DecodeBatched(RocJpegStreamHandle *jpeg_streams, i
default:
break;
}
}
CHECK_HIP(hipStreamSynchronize(hip_stream_));
for (int k = 0; k < current_batch_size; k++) {
VASurfaceID current_surface_id = *(current_surface_ids.data() + k + i);
CHECK_ROCJPEG(jpeg_vaapi_decoder_.SetSurfaceAsIdle(current_surface_id));
}
}
CHECK_HIP(hipStreamSynchronize(hip_stream_));
return ROCJPEG_STATUS_SUCCESS;
}
/**