Add support for rocJpegDecodeBatched API - part 1 of 2 (#31)

* Add initial support for batch decoding

* Add support for reading and parsing the images in batches and allocating the output buffers

* Add initial support for the rocJpegDecodeBatched API

* use recursive_mutex to allow DecodeBatched and Decode functions called concurrently

* code cleanup

* Add a CTEST for jpegdecodebatched

* modify the help message

* code clean up
Este commit está contenido en:
Aryan Salmanpour
2024-06-13 14:04:53 -04:00
cometido por GitHub
padre 3a65ac9aea
commit c660aeab43
Se han modificado 13 ficheros con 429 adiciones y 18 borrados
+12
Ver fichero
@@ -120,4 +120,16 @@ add_test(
--build-generator "${CMAKE_GENERATOR}"
--test-command "jpegdecodemultithreads"
-i ${ROCM_PATH}/share/rocjpeg/images/ -t 2
)
add_test(
NAME
jpeg-decode-batch-fmt-native
COMMAND
"${CMAKE_CTEST_COMMAND}"
--build-and-test "${ROCM_PATH}/share/rocjpeg/samples/jpegDecodeBatched"
"${CMAKE_CURRENT_BINARY_DIR}/jpegDecodeBatched"
--build-generator "${CMAKE_GENERATOR}"
--test-command "jpegdecodebatched"
-i ${ROCM_PATH}/share/rocjpeg/images/
)