GetOption NP_OPTION_FRAME_RATE

Post Reply
txemi
Posts: 7
Joined: Fri Jun 29, 2007 11:46 am

GetOption NP_OPTION_FRAME_RATE

Post by txemi »

Hi.

I have several OptiTrack cameras model C:120. I need to obtain the Frame Rate that currently has the camera. In order to obtain this value, I use the function GetOption with the parameter NP_OPTION_FRAME_RATE. The result of the function GetOption is NP_E_DEVICE_NOT_SUPPORTED instead of S_OK.

Code: Select all

CComVariant ComVarOption;
HRESULT hResult = camera->GetOption(NP_OPTION_FRAME_RATE, &ComVarOption);

What I am doing wrong?


Thanks.
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: GetOption NP_OPTION_FRAME_RATE

Post by Birch »

Your implementation looks ok.

I checked and found a problem when using GetOption + NP_OPTION_FRAME_RATE with C120 cameras. It erroneously returns an error condition and invalid value most of the time. The issue is now fixed and the correction will be included in the next release.

In the mean time you may wish to locally cache the FRAME_RATE value when using SetOption and use your cached value to determine what the cameras are set at instead.
Post Reply