Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » HDMI Window!? Am I mad!

Credits go to Thomas Fjellstrom for helping out!
This thread is locked; no one can reply to it. rss feed Print
HDMI Window!? Am I mad!
Dizzy Egg
Member #10,824
March 2009
avatar

Here's a question to which the answer is almost certainly no; would it be possible, in any way, for me to create an A5 Windows app that could within it display the HDMI input from a PCI card?

Or have I smoked too much.

(It's a serious question though!)

----------------------------------------------------
Please check out my songs:
https://soundcloud.com/dont-rob-the-machina

Thomas Fjellstrom
Member #476
June 2000
avatar

If you can figure out which windows API to use to capture frames from the hdmi input, you can fire those at the A5 display no problem.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Dizzy Egg
Member #10,824
March 2009
avatar

Really!?! I don't suppose you'd like to point me in the direction of some material that could get me started on displaying a windows frame in an A5 display!?

[EDIT]

(I mean just to get me started on how to display a normal windows frame within an ALLEGRO_DISPLAY, I'll work out the rest myself/with more questions!!)

----------------------------------------------------
Please check out my songs:
https://soundcloud.com/dont-rob-the-machina

Thomas Fjellstrom
Member #476
June 2000
avatar

Um, I suppose if you wanted to actually put a windows window inside the a5 display, you can get your hands on the HWND (see: al_get_win_window_handle)...

I'm not sure I'd do it that way, depends on the API you have to use.

The two most likely ways I'd try are:

1. Find the windows api that gives you raw frame data from the hdmi input, and then upload that to the a5 display (al_lock_bitmap... etc)

2. Find the windows api that lets you give it a HWND for it to display to, and hand it the a5 HWND.

The third alternative would be if the API you get only gives you a HWND for some reason, then you can make it a child of the a5 HWND.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Dizzy Egg
Member #10,824
March 2009
avatar

Option 1 I think is going to be best, thanks Thomas I thought this was too 'out there' to do, but I'm an old school sprites & dirty rectangles A4 guy so don't ever mess with stuff. I'll let you know how I get on!

----------------------------------------------------
Please check out my songs:
https://soundcloud.com/dont-rob-the-machina

jmasterx
Member #11,410
October 2009

Don't know if it's worth a mention, but I remember when using OpenCV that I could display my graphics card IN with it:

http://opencv.willowgarage.com/wiki/

Dizzy Egg
Member #10,824
March 2009
avatar

That may provide a starting point so thanks for that; I have to stick with A5 because the passage of time definitely increases with age (I'm sure I used to spend a LOT more time experimenting, even whilst working FT!?!?) but a starting point is all I need for this, nice one jmaster.

----------------------------------------------------
Please check out my songs:
https://soundcloud.com/dont-rob-the-machina

Go to: