Sample code for convert bmp into jpeg in GPU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Sample code for convert bmp into jpeg in GPU

ソリューションへジャンプ
2,514件の閲覧回数
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,491件の閲覧回数
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,509件の閲覧回数
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,500件の閲覧回数
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,492件の閲覧回数
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 件の賞賛
返信