exact image size with eglCreateImageKHR

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

exact image size with eglCreateImageKHR

跳至解决方案
1,297 次查看
tselmeci
Contributor IV

On iMX53 my program creates an image with eglCreateImageKHR(...). The required size is 720x576. Getting the stride parameter of the image with eglQueryImageFSL(...) I've noticed that stride is 736. It looks like eglCreateImageKHR(...) creates images with a width of integer multiple of 32. This is not appropriate to me.

Is there any way to make eglCreateImageKHR(...) create exactly the requested image size for me? If it's impossible, can I force it to work e.g. work multiple of 16?

标记 (3)
1 解答
964 次查看
andre_silva
NXP Employee
NXP Employee

You are right, eglCreateImageKHR only works with multiples of 32, any other value will not work, and there is no way to force it.

regards,

Andre

在原帖中查看解决方案

2 回复数
964 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

As far as I know, multiples of 16 can not be forced, since YUV textures does not render when using eglQueryImageFSL, but maybe AndreSilva can clarify this situation.

Regards

0 项奖励
回复
965 次查看
andre_silva
NXP Employee
NXP Employee

You are right, eglCreateImageKHR only works with multiples of 32, any other value will not work, and there is no way to force it.

regards,

Andre