Sample code for convert bmp into jpeg in GPU

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

Sample code for convert bmp into jpeg in GPU

跳至解决方案
2,519 次查看
ko-hey
Senior Contributor II

Hi everyone,

 

We're planning to use i.MX8MNano and want to convert bmp into jpeg.

i.MX8MNano has GC7000UL so we guess that it can convert bmp into jpeg by GPU because of reducing CPU load.

Can GC7000UL convert bmp into jpeg ?

If yes, is there any sample code for it ?

 

Ko-hey

 

0 项奖励
回复
1 解答
2,496 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi ,

We do not have such convert sample or api in bottom layer. Our GPU supports read raw bitmap to gpu buffer, but you may need to realize convert algorithm . Actually you can find some convert algorithm in git, and use opencl to accelerate the algorithm process.

Here is the gpu apis pdf:

https://www.nxp.com/docs/en/user-guide/i.MX_Graphics_User's_Guide_Linux.pdf

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,514 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi ko-hey,

The i.MX8MNano  support GPU apis are:

• OpenGL ES 1.1, 2.0, and 3.0 API
• EGL 1.5 API
• OpenGL ES11/20/30/31/32
• OpenCL 1.1/1.2 FP
• OpenVX 1.0.1
• Vulkan 1.0
• OpenGL 4.0
• WebGL 1.0.2
• OpenVG 1.1 API
• OpenCL 1.1 EP API

You can see the following web sites for detailed specifications:

• OpenGL ES 1.1, 2.0, and 3.0 API: www.khronos.org/opengles/
• OpenCL 1.1 EP www.khronos.org/opencl/
• EGL 1.4 API: www.khronos.org/egl/
• OpenVG 1.1 API: www.khronos.org/openvg/
• OpenGL ES API: www.khronos.org/opengles/
• OpenCL API: www.khronos.org/opencl/
• OpenVX API: www.khronos.org/openvx/
• Vulkan API: www.khronos.org/vulkan/
• OpenGL API: www.khronos.org/opengl/
• WebGL API: www.khronos.org/webgl/

Best Regards,

Zhiming

0 项奖励
回复
2,505 次查看
ko-hey
Senior Contributor II

Hi @Zhiming_Liu ,

Thank you for reply.

We know that it support OpenGL but I can't understand and find any samples whether it can convert bitmap into jpeg or not.

Can it use for conversion bitmap to jpeg ?

 

Ko-hey

 

0 项奖励
回复
2,497 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi ,

We do not have such convert sample or api in bottom layer. Our GPU supports read raw bitmap to gpu buffer, but you may need to realize convert algorithm . Actually you can find some convert algorithm in git, and use opencl to accelerate the algorithm process.

Here is the gpu apis pdf:

https://www.nxp.com/docs/en/user-guide/i.MX_Graphics_User's_Guide_Linux.pdf

 

0 项奖励
回复