diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/camera.h | 5 | ||||
-rw-r--r-- | include/camera_private.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/camera.h b/include/camera.h index 1b5dc7c..63c1739 100644 --- a/include/camera.h +++ b/include/camera.h @@ -120,7 +120,8 @@ typedef enum { CAMERA_PIXEL_FORMAT_ARGB, /**< ARGB pixel format */ CAMERA_PIXEL_FORMAT_JPEG, /**< Encoded pixel format */ CAMERA_PIXEL_FORMAT_H264 = 15, /**< Encoded pixel format : H264 (Since 3.0) */ - CAMERA_PIXEL_FORMAT_INVZ /**< Depth pixel format : INVZ (Since 5.0) */ + CAMERA_PIXEL_FORMAT_INVZ, /**< Depth pixel format : INVZ (Since 5.0) */ + CAMERA_PIXEL_FORMAT_MJPEG /**< Encoded pixel format : Motion JPEG for preview (Since 6.0) */ } camera_pixel_format_e; /** @@ -257,6 +258,7 @@ typedef struct { struct { unsigned char *data; /**< The encoded data pointer */ unsigned int size; /**< The size of encoded data */ + bool is_delta_frame; /**< The flag indicating whether it's delta frame or not (Since 6.0) */ } encoded_plane; /**< Encoded plane frame data */ struct { @@ -609,6 +611,7 @@ typedef void (*camera_focus_changed_cb)(camera_focus_state_e state, void *user_d * * @remarks This function is issued in the context of internal framework so the UI update code should not be directly invoked.\n * If the camera is used as a recorder then this callback function won't be called. + * @remarks The @a frame should not be released and it's available until the callback returns. * * @param[in] frame The reference pointer to preview stream data * @param[in] user_data The user data passed from the callback registration function diff --git a/include/camera_private.h b/include/camera_private.h index 2a74fa5..0ce8ed9 100644 --- a/include/camera_private.h +++ b/include/camera_private.h @@ -87,6 +87,7 @@ typedef struct _camera_stream_data_s { struct { unsigned char *data; unsigned int length_data; + int is_delta_frame; } encoded, depth, rgb; } data; /**< pointer of captured stream */ int data_type; /**< data type */ |