JPEG Decoder¶
Name¶
jpegdec - jpeg decoding
Description¶
KNEO Pi provides an application called jpegdec
designed for JPEG video decoding demostrations. This application reads a video file and decode it into a series of YUV files.
Before starting the decoding process, ensure that the appropriate driver is loaded.
Here is a sample configuration file (config.ini) used for decoding: * inputpath: Path to the input video file * outputpath: Path where the decoded YUV file will be saved * framenum: output frame numbers
Use the following command to start the decoding process:
Synopsis¶
VMF_VDEC supports three types of video decoders, including H.265/HEVC, H.264/AVC, and JPEG.To initialize the VMF_VDEC module, the user can call the VMF_VDEC_Init function to select the decoder type by specifying the value of VMF_VDEC_CODEC_TYPE. After the initialization is done, user can get decoded state by calling VMF_VDEC_GetState function.The video is decompressed by VMF_VDEC_ProcessOneFrame, and the video decoder has to be released by VMF_VDEC_Release before the end of the program.
The simple decoder app flow is shown below:
Options¶
-c Specify the decoding configuration file
Example¶
To decode the specified video file according to the parameters defined in the config.ini
file and output a YUV file