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
Cette révision appartient à :
@@ -132,7 +132,7 @@ int main(int argc, char **argv) {
|
||||
RocJpegUtils rocjpeg_utils;
|
||||
std::vector<std::thread> threads;
|
||||
|
||||
RocJpegUtils::ParseCommandLine(input_path, output_file_path, save_images, device_id, rocjpeg_backend, decode_params, &num_threads, argc, argv);
|
||||
RocJpegUtils::ParseCommandLine(input_path, output_file_path, save_images, device_id, rocjpeg_backend, decode_params, &num_threads, 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;
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur