6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5805
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: EGLImageKHR to OpenMax

Thu Oct 04, 2018 10:46 am

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).
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

longo92
Posts: 35
Joined: Mon Sep 03, 2018 3:45 pm
Contact: Website Skype

Re: EGLImageKHR to OpenMax

Mon Oct 08, 2018 9:09 am

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.

Return to “OpenGLES”