BReeves
12-25-2013, 08:54 PM
This may be frutle but thought I would try. Having a random problem with loading a bitmap into VLApplyMask and displaying it using VLDSImageDisplay. My configuration is as follows.
VLDSCapture->VLMirror->VLApplyMask->VLGenericFilter->VLDraw->VLDSImageDisplay
I am changing the mask image then capturing a bitmap with VLGenericFilter. Fairly straight forward code..
The attached image shows what happens and it's random, sometimes it works great but mostly it barfs. I had the issue with VideoLab 4.5 and upgrading to 5.0.1 didn't fix it. Hoping looking at the image will give you a hint as what is going on and if I can do anything to fix it. I know it's old but I'm stuck with it and have to make it work.
[attachment=29]
[attachment=30]
VLDSCapture->VLMirror->VLApplyMask->VLGenericFilter->VLDraw->VLDSImageDisplay
I am changing the mask image then capturing a bitmap with VLGenericFilter. Fairly straight forward code..
Code:
if(DoingOverlay) {
sprintf(backfile, "%s%02d%d.bmp", GrabForm->BorderPath, GrabForm->BorderNumber,ShotCount);
VLApplyMask1->Picture->LoadFromFile(backfile); // this is where it barfs
}
//Have Delay here as I am using a timer to cycle through 4 shots
VLGenericFilter1->Enabled = true; // Grab the frame
The attached image shows what happens and it's random, sometimes it works great but mostly it barfs. I had the issue with VideoLab 4.5 and upgrading to 5.0.1 didn't fix it. Hoping looking at the image will give you a hint as what is going on and if I can do anything to fix it. I know it's old but I'm stuck with it and have to make it work.
[attachment=29]
[attachment=30]