Page 1 of 2
Video overlay programming ?
Posted: Mon Jul 19, 2004 1:03 am
by TIGER
Hi.
I ve asked this question a whil e ago but i didn get a proper answer.
I guess i do another try
Im curios about how to programm overlay
I mean the video overlay.
The secondary buffer for movies.
How can i view a simple image throw overlay ?
Anyone know any link wher can i get a doc where to start.
Thanks anyway

Re: Video overlay programming ?
Posted: Mon Jul 19, 2004 8:42 am
by tinman
You can use OpenWindowedScreen() from the Sprite & Screen library, which will give you a DirectX screen in a window. I'm not sure whether this is a true overlay, but it's certainly faster than using window drawing commands :) I don't know how you'd do it using the OS though.
Posted: Mon Jul 19, 2004 9:58 pm
by dmoc
Does your gfx card (and OS?) support overlay?
Posted: Mon Jul 19, 2004 11:23 pm
by TIGER
Yes it supports overlay.
Just please dont advise me how to view the image in DirectX screen
or using images or something like that.
My point is to learn how to use overlay.
Anyone please.

Posted: Tue Jul 27, 2004 12:50 am
by TIGER
Cmon giys

, does it really so hard

Posted: Sun Aug 29, 2004 2:42 pm
by TIGER
I guess it is

Posted: Sun Aug 29, 2004 3:53 pm
by thefool
what is overlay?
Posted: Sun Aug 29, 2004 4:20 pm
by dmoc
I think tiger is refering to the type of display where windows/ normal display driver leaves a windows client area alone (or blue-screens?) and hw such a tv card uses it for it's own purpose. I don't know the specifics but I suspect a window is declared an "overlay" type on creation and the window's handle is passed on to yet another driver/dll so it can determine where to superimpose the graphics *after* windows has finished rendering. The give-away is when the window is moved it's actual content may trail behind and window's which overlap the overlay window, ie, in front of it, are oblitorated. Point of my detailing this is because getting an overlay window is probably the easy part (assuming the gfx hw supports them). As to the actual mechanism to implement the crucial part... I have no idea but hopefully this post will help you locate the info elsewhere.
Posted: Sun Aug 29, 2004 5:16 pm
by TIGER
Thanks this is exactly what im looking for.
But still maybe it has a different name (not overlay)
Because all my attempts to find something in the net was uselles.
Im not asking for examples i can leran it by myselv.
I just need a document to study.
Thanks in advance.
P.S.My video card supports overlay.
Posted: Sun Aug 29, 2004 5:32 pm
by upnorth
Perhaps your just not searching for the right thing. What you need is called a "DirectDraw Overlay Surface". I don't know anything about the subject, but here's a couple of links that may help you get started on your search.
http://msdn.microsoft.com/archive/defau ... r_7uif.asp
http://www.fourcc.org/index.php?http%3A ... covrly.php
Posted: Sun Aug 29, 2004 6:39 pm
by TIGER
I think this is it........ THANKS

Posted: Sun Aug 29, 2004 8:48 pm
by PolyVector
It sounds like you're looking for:
Result = OpenWindowedScreen(WindowID, x, y, Width, Height, AutoStretch, RightOffset, BottomOffset)
Unless I'm misunderstanding something?
Posted: Mon Aug 30, 2004 4:21 pm
by dmoc
Keep us posted on your progress. One of my hope-to-do projects is using an old notebook as a remove video monitor, do-able (I think) via overlays since the CPU itself is a little slow for decoding.
Posted: Wed Sep 01, 2004 12:21 am
by TIGER
I will.
Posted: Fri Oct 08, 2004 5:34 am
by real
Do you have an Example for me? I'm interested in that topic...
Greets
René