Does voxl-jpeg-turbo use any HW accelleration?
-
If yes great!
If not, are there any options that support hw acceleration for JPEG encoding? -
@Ed-Sutter voxl-jpeg-turbo is just a wrapper for this code: https://github.com/libjpeg-turbo/libjpeg-turbo. So it is all SW. There is HW support for JPEG encoding on the device but we have not yet enabled it.
-
@Eric-Katzfey we would like to use HW support for jpeg encoding right away. Is there a way or a workaround to access it? Otherwise, we are running into overheating issues on the VOXL (both VOXL-Cam and FlightDeck).
-
@prasanth You should be able to use OpenMAX (OMX) for this but we have not yet tried it.
-
@Eric-Katzfey Hi Eric. I tried use openMAX based on this code https://github.com/tjormola/rpi-openmax-demos/blob/master/rpi-encode-yuv.c
It compiled correctly. But which openMAX component to use? That code is for rPI, so the component is "OMX.broadcom.image_encode". I changed to "OMX.qcom.image_encode" but I got no such component error.
Could you tell me which omx component to use for the jpeg encoding?
Thank you!
-
@Dong-Liu We have not tried this yet so I don't know. But I would imagine you could locate it in a header file.
-
@Eric-Katzfey I tried grep OMX.qcom from header files, could not find any.
But, string libOmxCore.so only displayed video and audio codec. There is no image codec.
voxl:/usr/include$ strings /usr/lib/libOmxCore.so |grep OMX.qcom
OMX.qcom.video.decoder.avc
OMX.qcom.video.decoder.avc.dsmode
OMX.qcom.video.decoder.mpeg4
OMX.qcom.video.decoder.vc1
OMX.qcom.video.decoder.wmv
OMX.qcom.file.muxer
OMX.qcom.video.decoder.divx4
OMX.qcom.video.decoder.divx
OMX.qcom.video.decoder.divx311
OMX.qcom.video.decoder.h263
OMX.qcom.video.decoder.hevc
OMX.qcom.video.decoder.vp8
OMX.qcom.video.decoder.vp9
OMX.qcom.video.encoder.mpeg4
OMX.qcom.video.encoder.h263
OMX.qcom.video.encoder.avc
OMX.qcom.video.encoder.vp8
OMX.qcom.video.encoder.hevc
OMX.qcom.audio.decoder.Qcelp13
OMX.qcom.audio.decoder.evrc
OMX.qcom.audio.decoder.wma
OMX.qcom.audio.decoder.wma10Pro
OMX.qcom.audio.decoder.alac
OMX.qcom.audio.decoder.ape
OMX.qcom.audio.encoder.aac
OMX.qcom.audio.encoder.qcelp13
OMX.qcom.audio.encoder.evrc
OMX.qcom.audio.encoder.amrnb
OMX.qcom.audio.encoder.g711mlaw
OMX.qcom.audio.encoder.g711alaw
OMX.qcom.audio.encoder.amrwb
OMX.qcom.audio.decoder.g711mlaw
OMX.qcom.audio.decoder.g711alaw
OMX.qcom.audio.decoder.amrwb
OMX.qcom.audio.decoder.amrnb
OMX.qcom.audio.decoder.aac
OMX.qcom.audio.decoder.multiaac
1