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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
865 次查看
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 项奖励
回复
1 解答
824 次查看
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 项奖励
回复
3 回复数
835 次查看
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 项奖励
回复
825 次查看
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 项奖励
回复
799 次查看
jim777
Contributor II
thanks!