Re: Hardware Overlay with Push Source



On Mon, 11 Apr 2005 22:21:01 -0700, Augie at NHN wrote:

> Check the below link.
>
> http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/htm/pushsourcefilterssample.asp
>
> it says,
>
> NOTE: The desktop capture filter does not support hardware overlays, so it
> will not capture video rendered to an overlay surface or cursors displayed
> via hardware overlay. It uses GDI to convert the current desktop image into
> a bitmap, which is passed to the output pin as a media sample.

This is saying that the PushSourceDesktop filter cannot capture the overlay
surface. It is not about the output of the PushSourceDesktop to an overlay
surface.

> When I test those filters, not only the desktop capture filter but also the
> bitmap source filter cannot create hardware overlays.

Which video renderer are you using? What media type are you trying to
connect to it with?

As the docs say about the Overlay Mixer Filter "In the following table, the
media subtypes accepted on input pin 0 are hardware dependent. The Overlay
Mixer cannot determine whether a particular subtype is supported until it
creates the DirectDraw surface. Therefore, the only way for an upstream
filter to determine whether a subtype is supported is to attempt a
connection with that subtype."

MEDIASUBTYPE_Overlay (pin 0 only)
DirectDraw YUV formats: MEDIASUBTYPE_YUVxx (pin 0 only)
DirectDraw Video Acceleration formats: MEDIASUBTYPE_DVAxxx (pin 0 only)
Microsoft® DirectDraw® RGB formats: MEDIASUBTYPE_RGBxx (all input pins)
Format Type: Format_VIDEOINFO, Format_VIDEOINFO2


--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
.



Relevant Pages

  • Re: How to force preview to use hardware overlay?
    ... The system that does not work as expected has a different capture ... if I can trust graphedt and its remote graph inspection ability). ... The OM input pin and Leadtek's capture filter support ... preview to take advantage of hardware overlay if present. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Hardware Overlay with Push Source
    ... The desktop capture filter does not support hardware overlays, ... >> via hardware overlay. ... >> bitmap source filter cannot create hardware overlays. ... I'm using the normal video renderer.. ...
    (microsoft.public.win32.programmer.directx.video)
  • How to force preview to use hardware overlay?
    ... I have a graph with a video capture filter. ... preview takes advantage of hardware overlay. ... automatically inserted when the preview pin is rendered. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: dynamically drawing on top of a video
    ... I had to create a new filter because I had a few constraints ... I had to output to both the renderer and a file at the same time. ... The overlay needed to be enabled independently for either channel. ... is spread across 4 sub-graphs - source, mixer, UI renderer, file ...
    (microsoft.public.win32.programmer.directx.video)

Loading