Gstreamer - glimagesink client-draw-callback

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

Gstreamer - glimagesink client-draw-callback

2,649件の閲覧回数
spear_kor
Contributor I

Dear All,

I was wondering if there is any available example for client-draw-callback implementation to draw frames using GLES2. 

I need to paint the decoded video frames on imx.8 using Yocto. 

 

0 件の賞賛
返信
2 返答(返信)

2,632件の閲覧回数
spear_kor
Contributor I

Hello,

Thanks for the response.

However, I think I am misunderstood. I was asking for the client-draw-callback signal handler of GStreamer.

Thanks

0 件の賞賛
返信

2,642件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Spear-kor,

 

In your yocto BSP you have the graphics examples, that include the triangle as example two, data in the
ESContext structure include information such as the window width and height, EGL context, and callback function pointers.

The rest of the main function is responsible for creating the window, initializing
the draw callback function, and entering the main loop:
esCreateWindow(&esContext, "Hello Triangle", 320, 240,
ES_WINDOW_RGB);
if(!Init(&esContext))
return 0;
esRegisterDrawFunc(&esContext, Draw);
esMainLoop(&esContext);

 

Regards

0 件の賞賛
返信