Because the letter is limited in size, I didn't list the code
completely.Before I use imgHandle,I did define it by imgHandle =
(ImageDescriptionHandle)NewHandle(0) or imgHandle =
(ImageDescriptionHandle)NewHandleClear(sizeOf(ImageDescription)); The
problem doesn't lie here.
Anyway, thank you all the same.
> -----Original Message-----
> From: Joe van Tunen [mailto:email@hidden]
> Sent: Saturday, September 09, 2006 1:55 AM
> To: email@hidden; wshvic
> Subject: RE: vdig capture directly: VDGetImageDescription() problem
>
> You must first create the imgHandle like this:
>
> imgHandle = (ImageDescriptionHandle)NewHandle(0);
>
> > ----------
> > From: wshvic
> > Sent: Thursday, September 7, 2006 11:57 PM
> >
> > 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!
> > email@hidden
> >
_______________________________________________
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