X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Finclude%2Fmm_camcorder_attribute.h;h=2e8cbadc80c16c2725a54022853940b8a79b4ba0;hb=96c1782a7a90b6c6af42aabcfa08d71c475823f6;hp=43bf8524604b5fa7da8e60743d399678b1e7c0fa;hpb=b05d0e0f06df837839f74c040a5548203fb236ae;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git diff --git a/src/include/mm_camcorder_attribute.h b/src/include/mm_camcorder_attribute.h index 43bf852..2e8cbad 100644 --- a/src/include/mm_camcorder_attribute.h +++ b/src/include/mm_camcorder_attribute.h @@ -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,29 +165,45 @@ 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_PID_FOR_SOUND_FOCUS, + MM_CAM_DISPLAY_SOCKET_PATH, + MM_CAM_CLIENT_PID, 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_SUPPORT_USER_BUFFER, + MM_CAM_USER_BUFFER_FD, MM_CAM_ATTRIBUTE_NUM -}MMCamcorderAttrsID; +} MMCamcorderAttrsID; /*======================================================================================= | TYPE DEFINITIONS | ========================================================================================*/ -typedef bool (*mmf_cam_commit_func_t)(MMHandleType handle, int attr_idx, const mmf_value_t *value); +typedef bool (*mmf_cam_commit_func_t)(MMHandleType handle, int attr_idx, const MMAttrsValue *value); /*======================================================================================= | STRUCTURE DEFINITIONS | ========================================================================================*/ typedef struct { MMCamcorderAttrsID attrid; - const char *name; + char *name; int value_type; int flags; union { @@ -237,7 +252,7 @@ typedef struct { * @see _mmcamcorder_dealloc_attribute() * */ -MMHandleType _mmcamcorder_alloc_attribute(MMHandleType handle, MMCamPreset *info); +MMHandleType _mmcamcorder_alloc_attribute(MMHandleType handle); /** * This function release structure of attributes. @@ -309,7 +324,7 @@ int _mmcamcorder_get_attribute_info(MMHandleType handle, const char *attr_name, * @see * */ -bool _mmcamcorder_commit_camcorder_attrs(int attr_idx, const char *attr_name, const mmf_value_t *value, void *commit_param); +bool _mmcamcorder_commit_camcorder_attrs(int attr_idx, const char *attr_name, const MMAttrsValue *value, void *commit_param); /** * A commit function to set videosource attribute @@ -326,47 +341,58 @@ bool _mmcamcorder_commit_camcorder_attrs(int attr_idx, const char *attr_name, co * @see * */ -bool _mmcamcorder_commit_capture_width(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_capture_height(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_capture_break_cont_shot(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_capture_count(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_capture_sound_enable(MMHandleType handle, int attr_idx, const mmf_value_t *value); -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_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_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); -bool _mmcamcorder_commit_camera_capture_mode(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_camera_wdr(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_camera_anti_handshake(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_camera_video_stabilization(MMHandleType handle, int attr_idx, const mmf_value_t *value); -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_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); -bool _mmcamcorder_commit_display_handle(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_mode(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_rotation(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_flip(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_visible(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_geometry_method(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_rect(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_scale(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_display_evas_do_scaling(MMHandleType handle, int attr_idx, const mmf_value_t *value); -bool _mmcamcorder_commit_strobe(MMHandleType handle, int attr_idx, const mmf_value_t *value); -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_pid_for_sound_focus(MMHandleType handle, int attr_idx, const mmf_value_t *value); +bool _mmcamcorder_commit_capture_width(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_capture_height(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_capture_break_cont_shot(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_capture_count(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_capture_sound_enable(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_audio_volume(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_audio_input_route(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_audio_disable(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_format(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_fps(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_recording_motion_rate(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_width(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_height(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_video_size(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_zoom(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_ptz_type(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_pan(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_tilt(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_focus_mode(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_af_scan_range(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_af_touch_area(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_capture_mode(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_wdr(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_anti_handshake(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_video_stabilization(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_rotate(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_image_encoder_quality(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_target_filename(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_encoder_bitrate(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_recording_max_limit(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_filter(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_filter_scene_mode(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_filter_flip(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_handle(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_mode(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_rotation(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_flip(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_visible(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_geometry_method(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_rect(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_scale(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_display_evas_do_scaling(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_strobe(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_detect(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_flip(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_camera_hdr_capture(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_encoded_preview_bitrate(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_encoded_preview_gop_interval(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_sound_stream_info(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_tag(MMHandleType handle, int attr_idx, const MMAttrsValue *value); +bool _mmcamcorder_commit_audio_replay_gain(MMHandleType handle, int attr_idx, const MMAttrsValue *value); + /** * This function initialize effect setting. @@ -375,6 +401,7 @@ bool _mmcamcorder_commit_pid_for_sound_focus(MMHandleType handle, int attr_idx, * @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.