Код: Выделить всё
EdsUInt32 device;
if (err == EDS_ERR_OK)
{
// Get the current output device.
err = EdsGetPropertyData(camera, kEdsPropID_Evf_OutputDevice, 0, sizeof(device), &device);
}
if (err == EDS_ERR_OK)
{
// Set the PC as the current output device.
device |= kEdsEvfOutputDevice_PC;
// Set to the camera.
err = EdsSetPropertyData(camera, kEdsPropID_Evf_OutputDevice, 0, sizeof(device), &device);
}
Код: Выделить всё
if (err == EDS_ERR_OK)
{
EdsUInt32 ImageQuality;
switch (GLOBAL->getCameraImageQuality())
{
case 0:
ImageQuality = EdsImageQuality_SJF;
break;
case 1:
ImageQuality = EdsImageQuality_MJF;
break;
case 2:
ImageQuality = EdsImageQuality_LJF;
break;
default:
break;
}
err = EdsSetPropertyData(camera, kEdsPropID_ImageQuality, 0, sizeof(ImageQuality), &ImageQuality);
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... y-property
Мобильная версия