Page 2 of 2

Re: EGLImageKHR to OpenMax

Posted: Thu Oct 04, 2018 10:46 am
by 6by9
longo92 wrote:
Thu Oct 04, 2018 10:08 am
Is possible to pass to the encoder opnmax JPEG del EGL image in the same way of the openMax encoder? does the jpeg encoder supports EGL image?
Under OpenMax image_encode certainly doesn't.

Under MMAL, if you've rendered to a vcsm buffer then zero copy with MMAL_ENCODING_RGBA should be able to accept the buffer. If encoding to JPEG then it has to do a software conversion of the image to YUV.

For all components you should be able to enumerate the supported formats using OMX_IndexParamImagePortFormat / OMX_IndexParamVideoPortFormat under IL, or MMAL_PARAMETER_SUPPORTED_ENCODINGS under MMAL (see mmal_util.c for an example of using MMAL_PARAMETER_SUPPORTED_ENCODINGS).

Re: EGLImageKHR to OpenMax

Posted: Mon Oct 08, 2018 9:09 am
by longo92
Under MMAL, if you've rendered to a vcsm buffer then zero copy with MMAL_ENCODING_RGBA should be able to accept the buffer. If encoding to JPEG then it has to do a software conversion of the image to YUV.
It works. Thanks.