Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vdig capture directly: VDGetImageDescription() problem



Hi  everyone

   If  get vdig from SGGetVideoDigitizerComponent(), I can call VDGetImageDescription() to  get image desc correctly.(NOTE: I must call SGPrepare() ,otherWise VDGetImageDescription() function won't work.  I don't know why, this is QUESTION 1.).
If I open vdig component directly, VDGetImageDescription() function won't work. My code is posted below:
1. open
FindNextComponent(), OpenComponent();
2. configure vdig
VDSetInput(vdigComponent,3); // selected input index is 3.
VDSetInputStandard(vdigComponent,ntscIn); 
VDGetMaxSrcRect(vdigComponent,3,&maxSrcRect); 
VDSetDigitizerRect(vdigComponent,&maxSrcRect);
VDSetTimeBase(vdigComponent,NewTimeBase()); 
VDSetCompressionOnOff(vdigComponent,FALSE);
VDGetImageDescription(vdigComponent,imgHandle);  // PROBLEM!!!!
//  when the code runs here, it is hung up, GDB Debugger is lauched. It appears that VDGetImageDescription() function can not return.  MY Question is that Is the order that I configure the vdig  incorrect or I miss some necessary settings. This is QUESTION 2.
BTW: I don't use seqGrab component and its video channel ,  I want to get video device list directly without SGGetChannelDeviceList() , is this possible?  This is QUESTION3.

any help would  be appreciated!  Thank you very much!



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.