Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Fun With PCI Cards and TV/Video...

Fun With PCI Cards and TV/Video...
Thread Tools
Mac Enthusiast
Join Date: Feb 2001
Status: Offline
Reply With Quote
Oct 16, 2001, 10:03 AM
 
I've been looking at one of the darwin open source projects (AppleBt8xx) that will allow OS X to make use of a PCI tuner card. It's pretty basic right now but with some help it could be made to work with most PCI TV Tuner cards on the market and since you can get a PCI TV Tuner card on ebay for about $19 (or less) these days playing with this code comes pretty cheep.

Okay... to my question/problem...

The way things work at present: The software turns 'ON' the tuner card and the video is drawn directly on (more to the point OVER) the desktop and anything else that happens to be in the way starting at the upper left/top of the monitor or 0,0. I've found the place where is does the drawing and if I change the 'top' and 'left' variables from the default '0' to 50 the tuner display that is drawn does infact move 'down and to the right by 50 pixels' .

So it would seem that the AppleBt8xx.kext (PCI Tuner Card Kernel Extension) is by pushing the data from the TV Tuner directly to video ram (best as I can tell) and I wanted to know how hard it would be to re-direct that data (video) to a buffer so that I can have it displayed inside a real OS X window.

In short, does anyone have any places where I might find some sample code or other folks that do this sorta thing?

Thanks In Advance...

DaveG

P.S. Thread about the project: http://newforums.macnn.com/cgi-bin/u...3&t=002953

[ 10-16-2001: Message edited by: DaveGee ]
     
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Oct 17, 2001, 07:44 PM
 
I know that you can use NSImageRep sub-classes to convert a an array of bytes into various images and then draw them in an NSImageView so I bet you could do the same thing here as long as you can get the data into an array of unsigned integers that is in some relevant layout (or can be translated into one).

The best way would be to convert this array into actual QT or MPEG and then display the new movie directly into an NSMovieView. You could kludge the same effect by using an NSImageRep for the conversion of every frame to a bitmap (or something) and then drawing that but it would be sickeningly processor and memory intensive. My suggestion would be to look into some Core Graphics methods that might be used by these classes to do it more directly.

I guess it all is based on how the data is represented in memory, etc.

Good luck with it,
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
Dedicated MacNNer
Join Date: Jan 2001
Status: Offline
Reply With Quote
Oct 18, 2001, 10:44 PM
 
Why don't you use BTV???

is has been carbonized and it will work if you have the drivers installed!

look for it on versiontracker.

could you do me a favor??? could you post the .ktext of the drivers on your idisk???

I don't want to go over the whole process of compilling the whole stuff..

will it work?
...happiness is not a fish that you can catch.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Oct 19, 2001, 12:59 PM
 
You could do it how the DVD player does it: using a "mask" colour and blitting the video in on top of that directly into the VRAM. I think it does something like that, but I don't know how complicated it is.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2