Hi,
Is there a way to force the image decoder to use the pixel format on output port chosen by the user when enbaling the port, instead of being modified by MMAL_EVENT_FORMAT_CHANGED.
I'm writing my own c++ image decoder class (wrapper around mmal decoder, based on this: https://github.com/6by9/userland/blob/h ... peg/jpeg.c).
More precisely, the output port supports the following formats:
image decoder port vc.ril.image_decode:out:0 supported encodings: RGB2 //aka RGB_5_6_5
image decoder port vc.ril.image_decode:out:0 supported encodings: I420
image decoder port vc.ril.image_decode:out:0 supported encodings: I422
image decoder port vc.ril.image_decode:out:0 supported encodings: RGBA
image decoder port vc.ril.image_decode:out:0 supported encodings: BGRA
I set RGB2, in the setup phase, but when i decode :
-in a PNG image the MMAL_EVENT_FORMAT_CHANGED switches to RGBA.
-in a JPEG image the MMAL_EVENT_FORMAT_CHANGED switches to I420.
Is there a way to avoid that and force the decoder to use the format chosen by the user ?
Another question: the MMAL_ENCODING_OPAQUE is not listed, is it correct? I'm using firmware of 12/02/2020. (There was a similar problem with the video decoder viewtopic.php?f=67&t=226416&p=1390005#p1390005).
Thanks,
Alessandro
