Updated: October 28, 2024 |
Configure one or more settings of the viewfinder
#include <camera/camera_api.h>
#define camera_set_vf_property(handle, args...)
There is no type-checking performed by the compiler. Therefore, you must ensure that the value you provide for each property-value pair matches the expected data type. Data type mismatches can result in undefined behavior and cause your application to crash.
camera_set_vf_property( camera_handle, CAMERA_IMGPROP_WIN_GROUPID, "mygroup", CAMERA_IMGPROP_WIN_ID, "vfwindow", CAMERA_IMGPROP_WIDTH, 720, CAMERA_IMGPROP_HEIGHT, 1280, CAMERA_IMGPROP_ROTATION, 270, CAMERA_IMGPROP_FRAMERATE, (double)15.0 );
While the viewfinder is running, the CAMERA_IMGPROP_WIN_GROUPID can be changed only if the current value is an empty string.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.