
SRI Image sample test is designed to showcase SRI library functionalities. 

Steps to build
______________

Build SRI test from <sdk>\Tests\Multimedia\Sources\Tests\SriImageSample folder using below nact command 

nact platforms=NXFP2 specs=NX BUILD=Release,Develop

Steps to run 
_____________


SRI sample works on two paths

1. Capture a Screenshot: Is a Scoop image feature. It is used to capture a image from rendering video.

a. Background Video - Run any sample like NvnSkBenchmark.nsp or NvSfPlayer.nsp from Telnet to render a video.

eg: L <sdk>\Externals\odin\nvn-samples\samples\Outputs\<NX-NXFP2-a32/a64>\Processes\sk-benchmark\<Develop/Release>\sk-benchmark.nsp 

b. SRI test - Run SRI test from target manager with below parameters 
<sdk>\Tests\Outputs\<NX-NXFP2-a32/a64>\Tests\testMultimedia_SriImageSample\<Develop/Release>\testMultimedia_SriImageSample.nsp 

Command line parameter : screenshot --out <output file path> 

eg: screenshot --out C:\temp\capture.jpg
    screenshot --out sdcard:/temp/capture.jpg

After successful run the image capture.jpg will be captured from rendering video and saved at <output file path>.
    
------------------- 
 
2. Raw image encoding : It takes raw yuv data and dump encoded JPEG image at specified <output JPEG file> location. 
Command line parameter : input --in<input yuv file> -width <width> -height <height> --out <output JPEG file>
-width -> Raw data width 
-height -> Raw data height 

eg: input --in C:\temp\input.yuv -width 640 -height 480 --out C:\temp\output.jpg
    input --in sdcard:/temp/input.yuv -width 640 -height 480 --out sdcard:/temp/output.jpg

-------------------

SRI sample checks all basic functionalities for both the paths. 

Known issue: A short stutter is observed in rendering video during image capture.


