camera_get_vf_property()
Retrieve one or more properties of the viewfinder
Synopsis:
#include <camera/camera_api.h>#define camera_get_vf_property(handle,
args...)Arguments:
- handle
- The handle returned by a call to the camera_open() function.
- args
- A series of comma-delimited property-value pairs where each value must be a pointer to a variable of the expected type.
Library:
libcamapiDescription:
For the
args argument, you can provide one or more property-value pairs using camera_imgprop_t for the property and int or double for the value. The function can use the following properties:- CAMERA_IMGPROP_WIN_GROUPID
- CAMERA_IMGPROP_WIN_ID
- CAMERA_IMGPROP_CREATEWINDOW
- CAMERA_IMGPROP_RENDERTOWINDOW
- CAMERA_IMGPROP_FORMAT
- CAMERA_IMGPROP_WIDTH
- CAMERA_IMGPROP_HEIGHT
- CAMERA_IMGPROP_FRAMERATE
- CAMERA_IMGPROP_ROTATION
- CAMERA_IMGPROP_HWOVERLAY
- CAMERA_IMGPROP_ZOOMFACTOR
- CAMERA_IMGPROP_NUMUSERBUFFERS
Note:
You can specify multiple property-value pairs by delimiting them with a comma as follows: The compiler performs no type-checking. Therefore, the value you provide for each property must match the expected data type. Mismatches can cause undefined behavior and application crashes.
camera_get_vf_property( camera_handle,
CAMERA_IMGPROP_WIDTH, &vf_width,
CAMERA_IMGPROP_HEIGHT, &vf_height,
CAMERA_IMGPROP_ROTATION, &vf_rotation,
CAMERA_IMGPROP_FRAMERATE, &framerate );
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason why the call failed.
Page updated:
