exact image size with eglCreateImageKHR

cancel
Showing results for 
Search instead for 
Did you mean: 

exact image size with eglCreateImageKHR

Jump to solution
535 Views
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?

Tags (3)
1 Solution
202 Views
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

View solution in original post

2 Replies
202 Views
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 Kudos
203 Views
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

View solution in original post