Glimagesink full screen

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Glimagesink full screen

1,920 Views
spear_kor
Contributor I

Dear all,

 

I am building a cpp application using gstreamer. I have a pipeline like below:

rtspsrc location=rtsp://192.168.252.102:554/axis-media/media.amp latency=150 ! rtph264depay ! h264parse ! v4l2h264dec ! imxvideoconvert_g2d ! glupload ! glcolorconvert ! glimagesinkelement

 - How can I make the output of glimagesinkelement full-screen? 

 - If impossible, any way to implement render-rectangle on c/cpp? I couldn't find any examples.

 

Thanks,

Anil

0 Kudos
2 Replies

1,902 Views
spear_kor
Contributor I

Thanks for the response. For display size, I am going to check other options.

0 Kudos

1,914 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello spear_kor,

 

Which error is gstreamer mentioned? Please gst-inspect mfw_v4lsink in order to see how to control display size.

You can add the glRectf as example:

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
       glColor3f(0.0f, 0.0f, 0.0f);
       glRectf(-0.75f,0.75f, 0.75f, -0.75f);
       glutSwapBuffers();

Regards