How to temporarily disable drawing in the directdrawsink?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to temporarily disable drawing in the directdrawsink?

wl2776
Administrator
Is it possible to have a frozen frame on the screen, while the pipeline is playing?

I am using playbin2 and directdrawsink as the video sink.
Reply | Threaded
Open this post in threaded view
|

Re: How to temporarily disable drawing in the directdrawsink?

dhoyt
It's entirely possible if there was a bug in directdrawsink that caused incoming frames to be discarded or not drawn. I'm not sure about directdraw, but in direct3d if you've lost the d3d device object (due to another app going to fullscreen, a UAC prompt, etc.), then incoming frames won't be drawn until you reset the device and redraw. Directdraw may have something similar.

When do you notice this happening? And can you reproduce it reliably and consistently?

Just FYI -- the direct3d video sink in the ossbuild repo. correctly handles these scenarios.

-----Original Message-----
From: wl2776 [mailto:[hidden email]]
Sent: Tuesday, August 03, 2010 5:05 AM
To: [hidden email]
Subject: [gst-devel] How to temporarily disable drawing in the directdrawsink?


Is it possible to have a frozen frame on the screen, while the pipeline is
playing?

I am using playbin2 and directdrawsink as the video sink.
--
View this message in context: http://*gstreamer-devel.966125.n4.nabble.com/How-to-temporarily-disable-drawing-in-the-directdrawsink-tp2311736p2311736.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://*p.sf.net/sfu/dev2dev-palm
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://*lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to temporarily disable drawing in the directdrawsink?

Andoni Morales
2010/8/3 Hoyt, David <[hidden email]>:
> It's entirely possible if there was a bug in directdrawsink that caused incoming frames to be discarded or not drawn. I'm not sure about directdraw, but in direct3d if you've lost the d3d device object (due to another app going to fullscreen, a UAC prompt, etc.), then incoming frames won't be drawn until you reset the device and redraw. Directdraw may have something similar.
>
> When do you notice this happening? And can you reproduce it reliably and consistently?

I think he his asking "how", and not "why" :P

The approach might vary depending on the pipeline you are using, but
usually setting the element to the paused state, locking its state and
unplugging it will do the job.

Andoni

>
> Just FYI -- the direct3d video sink in the ossbuild repo. correctly handles these scenarios.
>
> -----Original Message-----
> From: wl2776 [mailto:[hidden email]]
> Sent: Tuesday, August 03, 2010 5:05 AM
> To: [hidden email]
> Subject: [gst-devel] How to temporarily disable drawing in the directdrawsink?
>
>
> Is it possible to have a frozen frame on the screen, while the pipeline is
> playing?
>
> I am using playbin2 and directdrawsink as the video sink.
> --
> View this message in context: http://*gstreamer-devel.966125.n4.nabble.com/How-to-temporarily-disable-drawing-in-the-directdrawsink-tp2311736p2311736.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://*p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://*lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to temporarily disable drawing in the directdrawsink?

wl2776
Administrator
In reply to this post by dhoyt
dhoyt wrote
When do you notice this happening? And can you reproduce it reliably and consistently?
This is not happening, unfortunately.

I'm struggling with the reverse framestepping.
It isn't stable, I cannot fix it, and was going to replace or supplement it with jumping backwards and stepping forward.
Ugly, I know...
Reply | Threaded
Open this post in threaded view
|

Re: How to temporarily disable drawing in the directdrawsink?

wl2776
Administrator
In reply to this post by Andoni Morales
Andoni Morales wrote
The approach might vary depending on the pipeline you are using, but
usually setting the element to the paused state, locking its state and
unplugging it will do the job.
I'm using playbin2.
How can I lock the state? I see only gst_element_set_state().
Reply | Threaded
Open this post in threaded view
|

Re: How to temporarily disable drawing in the directdrawsink?

Tiago Katcipis


On Wed, Aug 4, 2010 at 3:57 AM, wl2776 <[hidden email]> wrote:


Andoni Morales wrote:
>
> The approach might vary depending on the pipeline you are using, but
> usually setting the element to the paused state, locking its state and
> unplugging it will do the job.
>

I'm using playbin2.
How can I lock the state? I see only gst_element_set_state().
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-temporarily-disable-drawing-in-the-directdrawsink-tp2311736p2313009.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
http://www.getgnulinux.org/windows

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel