Using the canon edsdk
, I'm trying to detect what the camera image settings are because our application does work if the camera is set to RAW. I have no idea what to do with units gathered from getproperty
and have no idea at all what getpropertydesc
is any use for it looks like gibberish
Here's how I'm currently attemping this:
EdsdkWrapper.EdsPropertyDesc desc;
error = EdsdkWrapper.EdsGetPropertyDesc(camera, EdsdkWrapper.PropID_ImageQuality, out desc);
if (error != EdsdkWrapper.EDS_ERR_OK)
{
throw new Exception("Failed to get prop desc for image quality: " + GetErrorMessage(error));
}
uint data;
error = EdsdkWrapper.EdsGetPropertyData(camera, EdsdkWrapper.PropID_ImageQuality,0, out data);
string propertyName = GetPropertyName(data);
error = EdsdkWrapper.EdsSetPropertyData(camera, EdsdkWrapper.PropID_ImageQuality,0,4, EdsdkWrapper.ImageSize_Small);
if (error != EdsdkWrapper.EDS_ERR_OK)
{
throw new Exception("Failed to get prop desc for image quality: " + GetErrorMessage(error));
}
I know im not using desc but i would like to understand it as well. im getting camera busy error message 129 on the set property method thanks alot it driving me mental.