v4l2 equivalent codec after VPU API deprecated from i.MX8MP/i.MX9

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

v4l2 equivalent codec after VPU API deprecated from i.MX8MP/i.MX9

Jump to solution
839 Views
jim777
Contributor II

From RM00294 i.MX VPU Application Programming Interface Linux Reference Manual:

"... Besides the VPU wrapper API (deprecated), the V4L2-based
framework on top of the user library is designed to make the integration more standardized"

So
1. what are the corresponding V4L2  features that are equivalent to the VPU APIs for mjpg encoder/decoder?
- assume it is still based on  hardware (VPU) accelerated.

2.  from my imx8mp yocto build,  I see  two more (unfamiliar) devices dev/video2/3 listed as vsi_v4l2enc/dec, are those related to the features?

3. Any specific app reference ?

Thanks,
Jim

0 Kudos
Reply
1 Solution
798 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @jim777 

I hope you are doing very well.

 

Please take a look to the chapter 7.3.3 Video encoding of i.MX Linux User's Guide.

Manuel_Salas_0-1746468089897.png

 

Best regards,

Salas.

View solution in original post

0 Kudos
Reply
3 Replies
809 Views
jim777
Contributor II

Would NXP support help?
-  browse over the source code  https://github.com/nxp-imx/linux-imx.git drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
that seems to  be the driver  for the hardware (VPU) accelerated codec, but it listed only 'compatible' to quite a few chipset: Confused - is i.MX8MP supported ? ( the  general statement from the doc quoted above seemly suggested so)  

 269  static const struct of_device_id mxc_jpeg_match[] = {
 270         {
 271                 .compatible = "nxp,imx8qxp-jpgdec",
 272                 .data       = &mxc_decode_mode,
 273         },
 274         {
 275                 .compatible = "nxp,imx8qxp-jpgenc",
 276                 .data       = &mxc_encode_mode,
 277         },
 278         {
 279                 .compatible = "fsl,imx9-jpgdec",
 280                 .data       = &mxc_decode_mode,
 281         },
 282         {
 283                 .compatible = "fsl,imx9-jpgenc",
 284                 .data       = &mxc_encode_mode,
 285         },
 286         { },
 287 };

 

0 Kudos
Reply
799 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @jim777 

I hope you are doing very well.

 

Please take a look to the chapter 7.3.3 Video encoding of i.MX Linux User's Guide.

Manuel_Salas_0-1746468089897.png

 

Best regards,

Salas.

0 Kudos
Reply
773 Views
jim777
Contributor II
thanks!