Interact with video card
I have an old Performa 630 that has a TV/Cable Tuner. I'm trying find out the memory address range of the video cards video buffer memory (so I can read data from it in FutureBasic). But I can't figure out at what address it starts and ends at.
The video pass-through dosen't work like that. To see how it works, just do a screen dump (Command Shift 3) while watching the input. The pict will contain a blank square of colour that is used by the hardware to overlay a picture on. There is no way the TV card could copybits fast enough to put pixels into the window at 30fps on a LC 630.
So to interact with the video you need to use the proper "Sequence Grabber" calls provided by Apple (SGdoSomething, etc). The easiest way would be:
myCompInst& = FN OpenDefaultComponent(_"barg",0) CompError& = FN SGInilize(myCompInst&) CompError& = FN SGGrabPict(myCompInst&,PictureHandle&,myRect,0,= grabPictFlags&) osErr% = FN CloseComponent(myCompInst&).. Well now you have a pict, you can do anything...