Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Possible to use Core Video with QTCapture?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to use Core Video with QTCapture?





On Fri, Jan 30, 2009 at 6:50 PM, vade <email@hidden> wrote:
I puzzled over that a bit too, but you can get the a connection by asking for the current connections array from your  QTCaptureVideoPreviewOutput object since it is a subclass of a QTCaptureOutput, and getting the the last or first object in the connections array, because typically you will only have one connection. This is at least how it was in one of the QT Capture examples:

mCapturePreviewOutput is a QTCaptureVideoPreviewOutput :)

[mCapturePreviewOutput setVisualContext:textureContext forConnection:[[mCapturePreviewOutput connections] lastObject]];


Thanks. That was a big help.

Slightly more minor question, is there a way to find out what resolution the capture device uses? I can figure out the size in the Core Video callback with CVOpenGLTextureGetCleanTexCoords() which you told me about earlier today. But my test code still (badly) likes to preallocate things at startup rather than do it in the callback. So I was wondering if there was a way to get this value before I start.

I tried QTCaptureDevice deviceAttributes, but I'm getting an empty dictionary for the Logitech camera I currently have in front of me. (I don't have an iSight to test with at the moment.)

Thanks,
Eric


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Possible to use Core Video with QTCapture? (From: "E. Wing" <email@hidden>)
 >Re: Possible to use Core Video with QTCapture? (From: vade <email@hidden>)
 >Re: Possible to use Core Video with QTCapture? (From: "E. Wing" <email@hidden>)
 >Re: Possible to use Core Video with QTCapture? (From: vade <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.