2
0

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 cometimento está contido em:
Aryan Salmanpour
2024-06-13 14:04:53 -04:00
cometido por GitHub
ascendente 3a65ac9aea
cometimento c660aeab43
13 ficheiros modificados com 429 adições e 18 eliminações
+2 -2
Ver ficheiro
@@ -48,7 +48,7 @@ int main(int argc, char **argv) {
RocJpegDecodeParams decode_params = {};
RocJpegUtils rocjpeg_utils;
RocJpegUtils::ParseCommandLine(input_path, output_file_path, save_images, device_id, rocjpeg_backend, decode_params, nullptr, argc, argv);
RocJpegUtils::ParseCommandLine(input_path, output_file_path, save_images, device_id, rocjpeg_backend, decode_params, nullptr, nullptr, argc, argv);
if (!RocJpegUtils::GetFilePaths(input_path, file_paths, is_dir, is_file)) {
std::cerr << "ERROR: Failed to get input file paths!" << std::endl;
return EXIT_FAILURE;
@@ -95,7 +95,7 @@ int main(int argc, char **argv) {
std::cerr << "The chroma sub-sampling is not supported by VCN Hardware" << std::endl;
if (is_dir) {
std::cout << std::endl;
continue;
continue;
} else
return EXIT_FAILURE;
}