This enumerated type specifies the image properties list
#include <camera/camera_api.h>
typedef enum { CAMERA_IMGPROP_FORMAT = 0, CAMERA_IMGPROP_WIDTH, CAMERA_IMGPROP_HEIGHT, CAMERA_IMGPROP_FRAMERATE, CAMERA_IMGPROP_ROTATION, CAMERA_IMGPROP_STABILIZATION, CAMERA_IMGPROP_ZOOMFACTOR, CAMERA_IMGPROP_HWOVERLAY, CAMERA_IMGPROP_WIN_GROUPID, CAMERA_IMGPROP_WIN_ID, CAMERA_IMGPROP_ISEMBEDDED, CAMERA_IMGPROP_CREATEWINDOW, CAMERA_IMGPROP_MAXFOV, CAMERA_IMGPROP_VIDEOCODEC, CAMERA_IMGPROP_AUDIOCODEC, CAMERA_IMGPROP_RENDERTOWINDOW, CAMERA_IMGPROP_NUMUSERBUFFERS } camera_imgprop_t;
When #CAMERA_IMGPROP_VARIABLEFRAMERATE is set to a value of 1, CAMERA_IMGPROP_FRAMERATE indicates the maximum frame rate to use for the image sequence.
Rotation angles are measured in the clockwise direction.
The value is specified as an int value. A value of 0 indicates that stabilization is off and a value of 1 indicates that stabilization is on. To enable stabilization for video, CAMERA_FEATURE_VIDEOSTABILIZATION must be available on the camera. Note that CAMERA_IMGPROP_MAXFOV must be set to 0 when starting the viewfinder before video stabilization can be enabled.
The zoom factor is a value supported by the camera hardware and represents digital zoom or optical zoom. Optical zoom is only supported if the camera supports it. Most digital cameras support digital zoom.
To use this feature, the hardware acceleration for the blitting feature must be available (CAMERA_FEATURE_VFHWOVERLAY). Use the camera_can_feature() function to determine whether the camera supports the feature. To use blitting, specify as an int value where 0 indicates not to use blitting and 1 indicates to use blitting.
Blitting is a hardware acceleration feature used for efficiently transferring image buffers to the video display. For more information, see SCREEN_USAGE_OVERLAY used in the screen_set_window_property_iv() function in the Screen Library Reference of the Screen Developer's Guide. When you use this value, the viewfinder window uses SCREEN_USAGE_OVERLAY window property where possible.
For more information, see the QNX Screen Graphics Subsystem.
window-types). If the viewfinder is being created as a child of an existing child window, then this flag must be set using an int. Use a value of 1 to create an embedded window and 0 otherwise.
This flag accepts int values. Setting the value to 1 causes a viewfinder window to be created (see the Screen Graphics Subsystem for information on managing windows). Setting the value to 0 suppresses the creation of a viewfinder window.
To create a viewfinder window, the feature CAMERA_FEATURE_VFWINDOW must be available on the camera.
On some platforms not all frametypes are supported. Call camera_is_create_window_supported() to check if the frametype you are using allows CAMERA_IMGPROP_CREATEWINDOW to be true.
This parameter must be set using an int value. A value of 0 indicates that the viewfinder may be started with cropping applied in order to support use of the CAMERA_IMGPROP_STABILIZATION property. A value of 1 indicates that the viewfinder will provide the widest possible field of view at startup and will disallow attempts to use the CAMERA_IMGPROP_STABILIZATION property.
The video codec value is of type camera_videocodec_t.
The audio codec value is of type camera_audiocodec_t.
Rendering is suspended if the value is set to 0. The parameter must be an int value, and can be used to mask undesirable visual artifacts when exposure bracketing is active.
This property indicates how many additional buffers are allocated for the user. While it's always possible to read this property, it is only writable before starting the viewfinder and for cameras that support the feature CAMERA_FEATURE_NUMVFUSERBUFFERS. The parameter is a uint32_t value.
Each key is associated with a value of the indicated type.