Add code to get replay gain information after audio recording
[platform/core/multimedia/libmm-camcorder.git] / src / include / mm_camcorder_attribute.h
index 231f73c..c28ada7 100644 (file)
@@ -54,8 +54,7 @@ extern "C" {
 /**
  * Enumerations for camcorder attribute ID.
  */
-typedef enum
-{
+typedef enum {
        MM_CAM_MODE,                                    /* 0 */
        MM_CAM_AUDIO_DEVICE,
        MM_CAM_CAMERA_DEVICE_COUNT,
@@ -156,7 +155,7 @@ typedef enum
        MM_CAM_CAMERA_FLIP,
        MM_CAM_CAMERA_HDR_CAPTURE,
        MM_CAM_DISPLAY_MODE,
-       MM_CAM_AUDIO_DISABLE,                   /* 100 */
+       MM_CAM_AUDIO_DISABLE,                           /* 100 */
        MM_CAM_RECOMMEND_CAMERA_WIDTH,
        MM_CAM_RECOMMEND_CAMERA_HEIGHT,
        MM_CAM_CAPTURED_EXIF_RAW_DATA,
@@ -166,15 +165,31 @@ typedef enum
        MM_CAM_DISPLAY_FLIP,
        MM_CAM_CAMERA_VIDEO_STABILIZATION,
        MM_CAM_TAG_VIDEO_ORIENTATION,
-       MM_CAM_VIDEO_WIDTH,                     /* 110 */
+       MM_CAM_CAMERA_PAN_MECHA,                        /* 110 */
+       MM_CAM_CAMERA_PAN_ELEC,
+       MM_CAM_CAMERA_TILT_MECHA,
+       MM_CAM_CAMERA_TILT_ELEC,
+       MM_CAM_CAMERA_PTZ_TYPE,
+       MM_CAM_VIDEO_WIDTH,
        MM_CAM_VIDEO_HEIGHT,
        MM_CAM_SUPPORT_ZSL_CAPTURE,
        MM_CAM_SUPPORT_ZERO_COPY_FORMAT,
        MM_CAM_SUPPORT_MEDIA_PACKET_PREVIEW_CB,
+       MM_CAM_ENCODED_PREVIEW_BITRATE,         /* 120 */
+       MM_CAM_ENCODED_PREVIEW_GOP_INTERVAL,
        MM_CAM_RECORDER_TAG_ENABLE,
-       MM_CAM_DISPLAY_SHM_SOCKET_PATH,
+       MM_CAM_DISPLAY_SOCKET_PATH,
+       MM_CAM_PID_FOR_SOUND_FOCUS,
+       MM_CAM_ROOT_DIRECTORY,
+       MM_CAM_SOUND_STREAM_INDEX,
+       MM_CAM_SOUND_STREAM_TYPE,
+       MM_CAM_DISPLAY_REUSE_HINT,
+       MM_CAM_DISPLAY_REUSE_ELEMENT,
+       MM_CAM_GDBUS_CONNECTION,                        /* 130 */
+       MM_CAM_AUDIO_REPLAY_GAIN_ENABLE,
+       MM_CAM_AUDIO_REPLAY_GAIN_REFERENCE_LEVEL,
        MM_CAM_ATTRIBUTE_NUM
-}MMCamcorderAttrsID;
+} MMCamcorderAttrsID;
 
 /*=======================================================================================
 | TYPE DEFINITIONS                                                                     |
@@ -186,7 +201,7 @@ typedef bool (*mmf_cam_commit_func_t)(MMHandleType handle, int attr_idx, const m
 ========================================================================================*/
 typedef struct {
        MMCamcorderAttrsID attrid;
-       const char *name;
+       char *name;
        int value_type;
        int flags;
        union {
@@ -332,12 +347,16 @@ bool _mmcamcorder_commit_capture_sound_enable(MMHandleType handle, int attr_idx,
 bool _mmcamcorder_commit_audio_volume(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_audio_input_route(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_audio_disable(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_camera_format(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_fps(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_recording_motion_rate(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_width(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_height(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_video_size(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_zoom(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_camera_ptz_type(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_camera_pan(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_camera_tilt(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_focus_mode(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_af_scan_range(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_af_touch_area(MMHandleType handle, int attr_idx, const mmf_value_t *value);
@@ -348,6 +367,8 @@ bool _mmcamcorder_commit_camera_video_stabilization(MMHandleType handle, int att
 bool _mmcamcorder_commit_camera_rotate(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_image_encoder_quality(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_target_filename(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_encoder_bitrate(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_recording_max_limit(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_filter(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_filter_scene_mode(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_filter_flip(MMHandleType handle, int attr_idx, const mmf_value_t *value);
@@ -364,6 +385,13 @@ bool _mmcamcorder_commit_strobe(MMHandleType handle, int attr_idx, const mmf_val
 bool _mmcamcorder_commit_detect(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_flip(MMHandleType handle, int attr_idx, const mmf_value_t *value);
 bool _mmcamcorder_commit_camera_hdr_capture(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_encoded_preview_bitrate(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_encoded_preview_gop_interval(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_pid_for_sound_focus(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_sound_stream_info(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_tag(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+bool _mmcamcorder_commit_audio_replay_gain(MMHandleType handle, int attr_idx, const mmf_value_t *value);
+
 
 /**
  * This function initialize effect setting.
@@ -372,6 +400,7 @@ bool _mmcamcorder_commit_camera_hdr_capture(MMHandleType handle, int attr_idx, c
  * @return     bool            Success on TRUE or return FALSE
  */
 bool _mmcamcorder_set_attribute_to_camsensor(MMHandleType handle);
+bool _mmcamcorder_set_attribute_to_camsensor2(MMHandleType handle);
 
 /**
  * This function removes writable flag from pre-defined attributes.