However I am not able to use NvMediaIJPECreate with RGB formats. Only YUV is accepted.
The format enumerations I was able to use with NvMediaIJPECreate: [23, 34, 40, 62, 68, 78, 90, 110, 112, 1014, 1015, 1016]
Does JPEG converter work with yuv422 in Planar configuration? I get an Error 7 when I use the function NvMediaIJPEFeedFrame.
If I use NvMediaIJPEFeedFrame with yuv420 it works.
Edit:
Answering my own question:
“Image Encode Processing provides the ability to encode processed YUV 420/RGB surface inputs to H.264, H.265, and JPEG formats.” From [url]Autonomous Vehicle Development Platforms | NVIDIA Docs
So my first question remains. Why I get an error on the RGBA types I try?
"A straight pixel copy between surfaces of the same dimensions (but not necessary the same bit depth or even color format) is issued by:
NvMedia2DBlitEx(i2d, dst, NULL, src, NULL, NULL, NULL);
"
I am trying to do dwImageNvMedia (its .img NvMediaImage) jpeg compression on both formats RGBA and YUV420.
I have managed to compress YUV420 format with:
It gives and error. And this leaves me with NO OPTIONS to generate camera dwImageNvMedia jpeg compressions.
Why is not RGBA jpeg compression supported if the flags are there to be used?
How could I do most efficiently dwImageNvMedia images compression? Please some help here.
Of course, I already have. As you can infer from my comment I am already capable of performing NVMedia JPEG encoding of YUV NvMediaImages, but with the wrong output.
The point is, I am not able of:
Performing encoding of RGBA NvMediaImage(s)
When coupled with a camera reading thread, I can encode YUV frames coming out of dwSensorCamera_getImageNvMedia but it does encode nothing (green image output) if encoding after dwSensorCamera_returnFrame.
Please, indicate how to:
Design the camera reading (for example, how to modify camera_multiple_gmsl sample) and image encoding of YUVs frames so that it does produce a meaningful output