[capi-media-recorder] video camera orientation tag added accepted/tizen/ivi/genivi tizen_2.1 tizen_ivi_genivi 2.1b_release accepted/tizen/20130520.100821 accepted/tizen/20130912.190116 accepted/tizen/20130912.194300 accepted/tizen/20130913.024549 accepted/tizen/ivi/genivi/20140131.061703 accepted/tizen_2.1/20130425.035642 ivi_oct_m2 submit/tizen/20130517.044713 submit/tizen/20130912.080334 submit/tizen/20130912.090636 submit/tizen_2.1/20130424.230535 submit/tizen_ivi_genivi/20140131.060725
authorht1211.kim <ht1211.kim@samsung.com>
Thu, 11 Apr 2013 08:00:02 +0000 (17:00 +0900)
committerht1211.kim <ht1211.kim@samsung.com>
Thu, 11 Apr 2013 08:00:13 +0000 (17:00 +0900)
Change-Id: I897b4291a4323872918f3fcffb022f717c733055

include/recorder.h [changed mode: 0755->0644]
packaging/capi-media-recorder.spec
src/recorder.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index a260a45..7b74595
@@ -1223,6 +1223,32 @@ int recorder_attr_set_recording_flip(recorder_h recorder, recorder_flip_e flip);
 int recorder_attr_get_recording_flip(recorder_h recorder, recorder_flip_e *flip);
 
 /**
+ * @brief Sets the camera orientation in video metadata tag.
+ *
+ * @param[in]  camera  The handle to the camera
+ * @param[in]  orientation The information of the video orientation
+ * @return      0 on success, otherwise a negative error value.
+ * @retval      #CAMERA_ERROR_NONE Successful
+ * @retval      #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see        recorder_attr_get_orientation_tag()
+ */
+int recorder_attr_set_orientation_tag(recorder_h recorder,  recorder_rotation_e orientation);
+
+/**
+ * @brief Gets the camera orientation in video metadata tag.
+ *
+ * @param[in]  camera  The handle to the camera
+ * @param[out]  orientation The information of the video orientation
+ * @return      0 on success, otherwise a negative error value.
+ * @retval      #CAMERA_ERROR_NONE Successful
+ * @retval      #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see        recorder_attr_set_orientation_tag()
+ */
+int recorder_attr_get_orientation_tag(recorder_h recorder, recorder_rotation_e *orientation);
+
+/**
  * @}
  */
 
index 9704ed4..075297d 100644 (file)
@@ -1,7 +1,7 @@
 Name:       capi-media-recorder
 Summary:    A Recorder library in Tizen C API
 Version:    0.1.1
-Release:    2
+Release:    3
 Group:      libdevel
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
old mode 100755 (executable)
new mode 100644 (file)
index 41703be..49d9169
@@ -1235,3 +1235,18 @@ int recorder_attr_get_recording_flip(recorder_h recorder, recorder_flip_e *flip)
        int ret = mm_camcorder_get_attributes(handle->mm_handle ,NULL, "camcorder-flip" , flip, NULL);
        return  __convert_recorder_error_code(__func__, ret);
 }
+
+int recorder_attr_set_orientation_tag(recorder_h recorder,  recorder_rotation_e orientation){
+       if( recorder == NULL ) return __convert_recorder_error_code(__func__, RECORDER_ERROR_INVALID_PARAMETER);
+       if((orientation < RECORDER_ROTATION_NONE) || ( orientation > RECORDER_ROTATION_270)) return __convert_recorder_error_code(__func__, RECORDER_ERROR_INVALID_PARAMETER);
+       recorder_s * handle = (recorder_s*)recorder;
+       int ret = mm_camcorder_set_attributes(handle->mm_handle ,NULL, MMCAM_TAG_VIDEO_ORIENTATION  , orientation, NULL);
+       return __convert_recorder_error_code(__func__, ret);
+}
+
+int  recorder_attr_get_orientation_tag(recorder_h recorder, recorder_rotation_e *orientation){
+       if( recorder == NULL || orientation == NULL ) return __convert_recorder_error_code(__func__, RECORDER_ERROR_INVALID_PARAMETER);
+       recorder_s * handle = (recorder_s*)recorder;
+       int ret = mm_camcorder_get_attributes(handle->mm_handle ,NULL, MMCAM_TAG_VIDEO_ORIENTATION  , orientation, NULL);
+       return __convert_recorder_error_code(__func__, ret);
+}