Page 1 of 1

Unsynchronization in GetFrameGroup()

Posted: Wed Dec 08, 2010 1:16 am
by Ushikubo Tomohiro
Hi.

I use software named FrameSynchronization that exists in samples of Camera SDK.

In the sample program, It is showed "unsynchronized" when the software is used with S250e by using the FrameGroup.GetFrameGroup() command. Moreover, when the frame number is displayed, a different value is displayed.

Would you tell me this behavior is right or not. Or do I have to do something before using this samples?

Re: Unsynchronization in GetFrameGroup()

Posted: Wed Dec 08, 2010 2:47 pm
by beckdo
I'll take a look. You shouldn't have to do anything prior to running the sample.

Re: Unsynchronization in GetFrameGroup()

Posted: Wed Dec 08, 2010 3:56 pm
by beckdo
Found a problem with that sample. The LastFrameGroupMode() function returns of type FrameGroup::Modes, but the sample compares it against the type cModuleSync::RunningModes. For some reason the compiler doesn't complain--probably because they are both enumerations that distill down to integers. I'll get this fixed in the next version of the SDK, in the meantime, simply update the comparison to this:

Code: Select all

               

 if(sync->LastFrameGroupMode()==FrameGroup::Hardware)