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
이 커밋은 다음에 포함됨:
Aryan Salmanpour 작성하고 GitHub가 2024-06-13 14:04:53 -04:00를 커밋함
1 부모 3a65ac9aea
커밋 c660aeab43
13 파일이 변경됨
+429 -18

검색과 일치하는 파일 없음

+12
파일 보기
@@ -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/
)