Re: VideoConference.framework question
Re: VideoConference.framework question
- Subject: Re: VideoConference.framework question
- From: Nicko van Someren <email@hidden>
- Date: Fri, 28 Jan 2005 17:03:36 +0000
On 28 Jan 2005, at 16:29, James Stanton wrote:
I'm working on a video conferencing application, and I'd like to use
Apple's private "VideoConference.framework", since it has quite a bit
of the functionality that i need. I understand that these frameworks
are subject to change, and development using them is not recommended.
The framework seems straightforward enough to initialize and access
the camera, the problem comes in when I'm trying to display the Camera
to the screen. If I want to start a preview, it wants to write it to
a (char *) buffer. I can't figure out what graphics library would
accept a char * for display on the screen. it doesn't appear to be a
quicktime "Movie" class, nor will it draw if I pass the QuickDraw
pointer to it. the (char *) buffer appears to be some kind of two
dimensional buffer, as the max size for it is a struct with height and
width. there are two functions, get_seqg and get_ch_video, which
seemed promising, but I was unable to cast them to be a
SeqGrabComponent and SGChannel respectively.
I'm guessing but you might want to look at the QuickDraw
GetPixBaseAddr() function for the PixMap type. This gives you a
pointer to a buffer containing the actual pixels of the image.
There is some sample code for capturing from cameras and displaying it
on screen at:
http://developer.apple.com/samplecode/Cocoa_-_SGDataProc/Cocoa_-
_SGDataProc.html
This code uses QuickDraw PixMap objects to render the captured video
onto the screen.
Cheers,
Nicko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden