Video overlay programming ?

Windows specific forum
TIGER
User
User
Posts: 81
Joined: Mon Feb 23, 2004 8:33 pm

Video overlay programming ?

Post 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 :wink:
PIII450 128RAM TNT2
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Re: Video overlay programming ?

Post 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.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Does your gfx card (and OS?) support overlay?
TIGER
User
User
Posts: 81
Joined: Mon Feb 23, 2004 8:33 pm

Post 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. :cry:
PIII450 128RAM TNT2
TIGER
User
User
Posts: 81
Joined: Mon Feb 23, 2004 8:33 pm

Post by TIGER »

Cmon giys :( , does it really so hard :?: :cry:
PIII450 128RAM TNT2
TIGER
User
User
Posts: 81
Joined: Mon Feb 23, 2004 8:33 pm

Post by TIGER »

I guess it is :(
PIII450 128RAM TNT2
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

what is overlay?
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post 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.
TIGER
User
User
Posts: 81
Joined: Mon Feb 23, 2004 8:33 pm

Post 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.
PIII450 128RAM TNT2
upnorth
User
User
Posts: 18
Joined: Wed Jul 21, 2004 8:54 pm
Location: California, USA

Post 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
TIGER
User
User
Posts: 81
Joined: Mon Feb 23, 2004 8:33 pm

Post by TIGER »

I think this is it........ THANKS :P
PIII450 128RAM TNT2
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

It sounds like you're looking for:

Result = OpenWindowedScreen(WindowID, x, y, Width, Height, AutoStretch, RightOffset, BottomOffset)

Unless I'm misunderstanding something?
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post 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.
TIGER
User
User
Posts: 81
Joined: Mon Feb 23, 2004 8:33 pm

Post by TIGER »

I will.
PIII450 128RAM TNT2
real
User
User
Posts: 49
Joined: Fri Oct 08, 2004 5:17 am

Post by real »

Do you have an Example for me? I'm interested in that topic...

Greets
René
Post Reply