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

This commit is contained in:
Aryan Salmanpour
2025-06-30 13:43:02 -04:00
committato da GitHub
parent 18a0a3324a
commit 9d01934065
3 ha cambiato i file con 6 aggiunte e 4 eliminazioni
+1 -1
Vedi File
@@ -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
Vedi File
@@ -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)
+4 -2
Vedi File
@@ -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;
}
/**