Sample code for convert bmp into jpeg in GPU

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

Sample code for convert bmp into jpeg in GPU

Jump to solution
1,251 Views
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 Kudos
1 Solution
1,228 Views
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

 

View solution in original post

0 Kudos
3 Replies
1,246 Views
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 Kudos
1,237 Views
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 Kudos
1,229 Views
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 Kudos