OpenVG MQX Vybrid - error when calling eglCreateWindowSurface

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

OpenVG MQX Vybrid - error when calling eglCreateWindowSurface

ソリューションへジャンプ
1,223件の閲覧回数
slw
Contributor III

Hi,

My system includes the following components:

- Freescale MQX4.1

- Freescale Vybrid VF522

- OpenVG 0.7.0

When I want to use another colorformat than ARGB8888, I get the error EGL_NO_SURFACE, when calling eglCreateWindowSurface.

I get the error when using RGB888 or RGB565.

I don't have the OpenVG sources, so I don't know what's going wrong inside this function.

Any hints ?

Regards

Sebastian

ラベル(2)
0 件の賞賛
返信
1 解決策
854件の閲覧回数
slw
Contributor III

Hi,

I have found a solution.

I first have to set the same color-format in the buffer-info of the fbdev-driver, cause they have to match and openvg-lib does not set itself this information.

fb = fopen("fbdev:0", NULL);

buf_info.FORMAT = FBDEV_COLOR_RGB888;

...

ioctl(fb, IO_IOCTL_FBDEV_SET_BUFFER_INFO, &buf_info);

...

//search for matching egl-config

...

eglCreateContext( ......);

Regards

Sebastian

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
853件の閲覧回数
cyborgnegotiato
Senior Contributor II

ioseph_martinez could you assist with this question?

Thanks,

Jozef

0 件の賞賛
返信
854件の閲覧回数
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you  help with this case?

0 件の賞賛
返信
855件の閲覧回数
slw
Contributor III

Hi,

I have found a solution.

I first have to set the same color-format in the buffer-info of the fbdev-driver, cause they have to match and openvg-lib does not set itself this information.

fb = fopen("fbdev:0", NULL);

buf_info.FORMAT = FBDEV_COLOR_RGB888;

...

ioctl(fb, IO_IOCTL_FBDEV_SET_BUFFER_INFO, &buf_info);

...

//search for matching egl-config

...

eglCreateContext( ......);

Regards

Sebastian

0 件の賞賛
返信