Update samples (#82)

* Update samples

* Simplify the arguments of the DecodeImages function by grouping some of them into a struct.

* Modify the logic for selecting the valid images per batch

* Modify the logic for selecting the valid images per batch for jpegDecodeBatched sample too

[ROCm/rocjpeg commit: a4f3daef1e]
This commit is contained in:
Aryan Salmanpour
2024-11-25 20:40:50 -05:00
committed by GitHub
parent 26edb2e2fe
commit 9394c3cea9
12 changed files with 443 additions and 369 deletions
+2 -2
View File
@@ -10,6 +10,6 @@ The jpeg decode sample illustrates decoding a JPEG images using rocJPEG library
The jpeg decode bacthed sample illustrates decoding JPEG images by batches of specified size using rocJPEG library to get the individual decoded images in one of the supported output format (i.e., native, yuv, y, rgb, rgb_planar). This sample can be configured with a device ID and optionally able to dump the output to a file.
## [JPEG decode multi-threads](jpegDecodeMultiThreads)
## [JPEG decode perf](jpegDecodePerf)
The jpeg decode multi threads sample illustrates decoding JPEG images using rocJPEG library with multiple threads to get the individual decoded images in one of the supported output format (i.e., native, yuv, y, rgb, rgb_planar). This sample can be configured with a device ID and optionally able to dump the output to a file.
The jpeg decode perf sample illustrates decoding JPEG images by batches of specified size with multiple threads using rocJPEG library to achieve optimal performance. The individual decoded images can be retrieved in one of the supported output format (i.e., native, yuv, y, rgb, rgb_planar). This sample can be configured with a device ID and optionally able to dump the output to a file.