summaryrefslogtreecommitdiff
path: root/src/recorder.c
diff options
context:
space:
mode:
authorht1211.kim <ht1211.kim@samsung.com>2013-04-11 17:00:02 +0900
committerht1211.kim <ht1211.kim@samsung.com>2013-04-11 17:00:13 +0900
commit63ec1223bd30d0158ae4af93d113586e85244fe0 (patch)
treeb5e15ee8c533c5e2896c29101ff022a49e4407dc /src/recorder.c
parent23f93c7718cd63f3a56caf01435809c19450b2aa (diff)
downloadrecorder-63ec1223bd30d0158ae4af93d113586e85244fe0.tar.gz
recorder-63ec1223bd30d0158ae4af93d113586e85244fe0.tar.bz2
recorder-63ec1223bd30d0158ae4af93d113586e85244fe0.zip
Change-Id: I897b4291a4323872918f3fcffb022f717c733055
Diffstat (limited to 'src/recorder.c')
-rw-r--r--[-rwxr-xr-x]src/recorder.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/recorder.c b/src/recorder.c
index 41703be..49d9169 100755..100644
--- a/src/recorder.c
+++ b/src/recorder.c
@@ -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);
+}