Issue with ApplyMask
|
12-25-2013, 08:54 PM
Post: #1
|
|||
|
|||
Issue with ApplyMask
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.. Code: if(DoingOverlay) { 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. |
|||
12-26-2013, 07:20 PM
Post: #2
|
|||
|
|||
RE: Issue with ApplyMask
Think I might have figured out the reason it barfs. I'm suspecting the process of applying the mask isn't synced with the incoming video. IF the mask is applied when the video frame is changing it barfs. This would account for the randomness of the problem. My solution is to stop the video capture, VLDSCapture->Enabled = false; apply the mask then re-enable the capture. So far I have not been able to get it to fail using this trick.
I really do not like the frame flashing black for the time it takes to load the mask. Would be nice if Video Lab would provide a way to sync the two controls but I don't know how to do it. Code: if(DoingOverlay) { |
|||
12-29-2013, 02:22 AM
Post: #3
|
|||
|
|||
RE: Issue with ApplyMask
Just an idea, haven't dealt with this myself.. what if you would change the mask from the VLGenericFilter OnProcessData event? This could also make it go really sick but worth a simple try perhaps.
Regards, Dave |
|||
12-30-2013, 01:36 AM
Post: #4
|
|||
|
|||
RE: Issue with ApplyMask
Didn't think of that, just may work.. Will play with the idea and see what happens..
Nope, same problem, not synced and scrambles. Not really a big deal enable/disable works and can live with the glitch when it's changing. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)