Updated: October 28, 2024 |
Retrieve the current output properties for video
#include <camera/camera_api.h>
#define camera_get_video_property(handle, args...)
There is no type-checking performed by the compiler. Therefore, you must ensure that the value you provide for each property matches the expected data type. Data type mismatches can result in undefined behavior and cause your application to crash.
camera_get_video_property( camera_handle, CAMERA_IMGPROP_WIDTH, &vid_width, CAMERA_IMGPROP_HEIGHT, &vid_height, CAMERA_IMGPROP_ROTATION, &vid_rotation, CAMERA_IMGPROP_FRAMERATE, &vid_framerate );
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.