Name: libmm-camcorder
Summary: Camera and recorder library
-Version: 0.7.10
+Version: 0.7.11
Release: 0
Group: libs
License: Apache-2.0
<td>Orientation of captured image</td>
</tr>
<tr>
+ <td>#MMCAM_TAG_VIDEO_ORIENTATION</td>
+ <td>Orientation of encoded video</td>
+ </tr>
+ <tr>
<td>#MMCAM_TAG_SOFTWARE</td>
<td>software name and version</td>
</tr>
#define MMCAM_TAG_ORIENTATION "tag-orientation"
/**
+ * Orientation of captured video
+ * @see MMCamcorderTagVideoOrientation
+ */
+#define MMCAM_TAG_VIDEO_ORIENTATION "tag-video-orientation"
+
+/**
* software name and version
*/
#define MMCAM_TAG_SOFTWARE "tag-software"
MM_CAMCORDER_TAG_ORT_0R_VL_0C_VB, /**< The 0th row is the visual left-hand side of the image, and the 0th column is the visual bottom.*/
};
+/**
+ * An enumeration for captured video orientation values of tag .
+ */
+enum MMCamcorderTagVideoOrientation {
+ MM_CAMCORDER_TAG_VIDEO_ORT_NONE =0, /**< No Orientation.*/
+ MM_CAMCORDER_TAG_VIDEO_ORT_90, /**< 90 degree */
+ MM_CAMCORDER_TAG_VIDEO_ORT_180, /**< 180 degree */
+ MM_CAMCORDER_TAG_VIDEO_ORT_270, /**< 270 degree */
+};
+
+
/**
* An enumeration for Strobe mode.
MM_CAM_CAMERA_FACING_DIRECTION,
MM_CAM_DISPLAY_FLIP,
MM_CAM_CAMERA_VIDEO_STABILIZATION,
+ MM_CAM_TAG_VIDEO_ORIENTATION,
MM_CAM_NUM
}MMCamcorderAttrsID;
0,
0,
_mmcamcorder_commit_camera_video_stabilization,
+ },
+ //118
+ {
+ MM_CAM_TAG_VIDEO_ORIENTATION,
+ "tag-video-orientation",
+ MMF_VALUE_TYPE_INT,
+ MM_ATTRS_FLAG_RW,
+ {(void*)MM_CAMCORDER_TAG_VIDEO_ORT_NONE},
+ MM_ATTRS_VALID_TYPE_INT_RANGE,
+ MM_CAMCORDER_TAG_VIDEO_ORT_NONE,
+ MM_CAMCORDER_TAG_VIDEO_ORT_270,
+ NULL,
}
};
guint32 d = 0x00010000;
switch (orientation) {
- case MM_CAMCORDER_TAG_ORT_0R_VR_0C_VT:/* 90 degree */
+ case MM_CAMCORDER_TAG_VIDEO_ORT_90:/* 90 degree */
a = 0;
b = 0x00010000;
c = 0xffff0000;
d = 0;
break;
- case MM_CAMCORDER_TAG_ORT_0R_VB_0C_VR:/* 180 degree */
+ case MM_CAMCORDER_TAG_VIDEO_ORT_180:/* 180 degree */
a = 0xffff0000;
d = 0xffff0000;
break;
- case MM_CAMCORDER_TAG_ORT_0R_VL_0C_VB:/* 270 degree */
+ case MM_CAMCORDER_TAG_VIDEO_ORT_270:/* 270 degree */
a = 0;
b = 0xffff0000;
c = 0x00010000;
d = 0;
break;
- case MM_CAMCORDER_TAG_ORT_0R_VT_0C_VL:/* 0 degree */
+ case MM_CAMCORDER_TAG_VIDEO_ORT_NONE:/* 0 degree */
default:
break;
}
MMCAM_TAG_LATITUDE, &latitude,
MMCAM_TAG_LONGITUDE, &longitude,
MMCAM_TAG_ALTITUDE, &altitude,
- MMCAM_TAG_ORIENTATION, &orientation,
+ MMCAM_TAG_VIDEO_ORIENTATION, &orientation,
NULL);
if (err_name) {
_mmcam_dbg_warn("Get tag attrs fail. (%s:%x)", err_name, err);