Which version of FxPlug SDK are you using? I am not using the last one. As I experienced a lot of trouble making the former version (1.2.4.) to work under snow leopard, I've been delaying the upgrade. Could you explain under which conditions have you been experiencing problems with FxTemporalAPI?
I will try to sketch here how I get FxRenderInfo values and how I retrieve frames using the temporal API in my filter implementation.
(BOOL)renderOutput:(FxImage *)outputImage
withInput:(FxImage *)inputImage
withInfo:(FxRenderInfo)renderInfo
{
.....
timingApi= [_apiManager apiForProtocol:@protocol(FxTimingAPI)];
temporalImageAPI= [_apiManager apiForProtocol:@protocol(FxTemporalImageAPI)];
FxBitmap *myBitmap=nil;
FxRenderInfo myRenderInfo=renderInfo;
myRenderInfo.sharedContext=NULL;//I do software only rendering
double dbg_Duration = [timingApi durationOfInputToFilter:self];
unsigned int numberFrames=(unsigned int)dbg_Duration;
for(time=0;time<numberFrames;time++)
{
myRenderInfo.frame=double(time);
BOOL inputBitmapSuccesfull=[temporalImageAPI getInputBitmap:&myBitmap withInfo:myRenderInfo atTime:time];
unsigned char* Data="" style="color: rgb(187, 43, 159); ">NULL;
Data = "" style="color: rgb(187, 43, 159); ">unsigned char*)[myBitmap dataPtr];//I do not get any data here for DV-PAL
doSomething(Data);
}
[myBitmap release];
}
Taking a look to the FxRenderInfo structure
typedef struct {
double frame;
FxQuality qualityLevel;
FxFieldOrder fieldOrder;
double scaleX;
double scaleY;
CGLContextObj sharedContext;
FxDepth depth;
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden