imxvpudec_jpeg (hantro dec) consumes more CPU than jpegdec (software dec) on i.MX8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imxvpudec_jpeg (hantro dec) consumes more CPU than jpegdec (software dec) on i.MX8

361 Views
Kovachev
Contributor II

Hello,
imxvpudec_jpeg (83% CPU) consumes more CPU than jpegdec (67% CPU), what could be the reason? I was expecting the opposite.

imxvpudec_jpeg:
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command
413 root 20 0 339M 28652 10300 S 83.2 0.7 0:08.56 gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg, width=2560, height=1440, framerate=30/1 ! imxvpud

jpegdec:
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command
419 root 20 0 318M 22540 6420 S 67.0 0.6 0:06.09 gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg, width=2560, height=1440, framerate=30/1 ! jpegdec

 

Regards

0 Kudos
2 Replies

347 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Is probably that you are not using a nxp bsp, since it not uses the hardware codec for it.

Regards

0 Kudos

339 Views
Kovachev
Contributor II

Hi, how's that's possible, could you clarify?  If the DMABUF or hantrodec is not configured the imxvpudec_jpeg fails with negotiation failure. I can't get your point how it's possible to run imxvpudec_jpeg without NXP BSP?

I'm using linux-imx with DMABUF enabled, libimxvpuapi DWL and hantrodec and a device tree with enabled hantro vpu. If any of those is missing imxvpudec_jpeg doesn't work at all.

 

0 Kudos