Hi, thanks for replying!
>what's your use case?
I am trying to make an application that would run on imx8mp evk, which encodes a single image file (believed to be of YUV420 format) into H264 format.
Basically, I just want to see first how encoding works as I have no background on this.
This input image file is created via the following command:
gst-launch-1.0 filesrc location="raw.jpg" ! jpegdec ! filesink location="image_file.yuv"
raw.jpg: JPEG file created on Paint (1920x1080)
image_file.yuv: my application's input file which I believe/hope is of YUV420 format
> did you download nxp yocto bsp?
Yes, I am using yocto-real-time-edge bsp.
>what source code do you refer to?
None, I am only referring to the VPU reference manual, that's why I included that same question in my original post.
Parameters passed to VPU_EncOpenSimp and VPU_EncEncodeFrame are mostly set to automatic values (0 or -1), according to the manual.
Other parameters are based on the input image file, such as size.