From 9fedefeb54c75c308a5a3708a33b7d1878caed6c Mon Sep 17 00:00:00 2001 From: Lakshmi Kumar Date: Fri, 8 Mar 2024 07:56:51 -0800 Subject: [PATCH] README Updates (#282) * adding new sample for decoding mulitple files on multiple threads * threads work ; no decoding yet * working version * code clean up * review comments * removing spaces * review comments * fps cal + name changes for files * code clean up * update readme * update readme * remove spaces * change to lambda functions * changes for using reconfig * adding dumping of yuv frames + review comments * review comments * remove extra lines/spaces * adding struct for decoder info * make separate decoders for 8 & 10bit * code clean up * addign reset for Saving frames * review comments * fixes dump issue for new file * cmake update for threads * support for avc * name change for sample * cmake soource name change * readme update * fixing typo in readme * update REAME * update readme --------- Co-authored-by: Aryan Salmanpour [ROCm/rocdecode commit: 264e847c5a3124b073722e87c0cc0252ec812274] --- projects/rocdecode/samples/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/rocdecode/samples/README.md b/projects/rocdecode/samples/README.md index 5a3152734a..de7847092b 100644 --- a/projects/rocdecode/samples/README.md +++ b/projects/rocdecode/samples/README.md @@ -6,6 +6,12 @@ rocDecode samples The video decode sample illustrates decoding a single packetized video stream using FFMPEG demuxer, video parser, and rocDecoder to get the individual decoded frames in YUV format. This sample can be configured with a device ID and optionally able to dump the output to a file. This sample uses the high-level RocVideoDecoder class which connects both the video parser and Rocdecoder. This process repeats in a loop until all frames have been decoded. +## [Video decode batch sample](videoDecodeBatch) + +This sample decodes multiple files using multiple threads, using the rocDecode library. The input is a directory of files and an input number of threads. The maximum number of threads is capped to 64. +If the number of files is higher than the number of threads requested by the user, the files are distributed to the threads in a round robin fashion. +If the number of files is lesser than the number of threads requested by the user, the number of threads created will be equal to the number of files. + ## [Video decode memory](videoDecodeMem) The video decode memory sample illustrates a way to pass the data chunk-by-chunk sequentially to the FFMPEG demuxer which is then decoded on AMD hardware using rocDecode library.