Fix typos 33/246833/3
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 4 Nov 2020 10:51:48 +0000 (19:51 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 5 Nov 2020 03:11:02 +0000 (12:11 +0900)
[Version] 0.10.225
[Issue Type] Revise

Change-Id: Ibe301ecc3b1738d92e0dd9edf9de9c044a7d652f

packaging/libmm-camcorder.spec
src/include/mm_camcorder.h
src/include/mm_camcorder_internal.h
src/include/mm_camcorder_stillshot.h
src/include/mm_camcorder_util.h

index 2489b66..1863d5b 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.224
+Version:    0.10.225
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index dc30893..388f2f7 100644 (file)
@@ -24,7 +24,7 @@
        @{
 
        @par
-       This part describes the APIs with repect to Multimedia Camcorder.
+       This part describes the APIs with respect to Multimedia Camcorder.
        Camcorder is for recording audio and video from audio and video input devices, capturing
        still image from video input device, and audio recording from audio input
        device.
@@ -44,7 +44,7 @@
        @par
        Recording state and paused state exists when the mode of camcorder is
        video-capture or audio-capture mode. In case of image-capture mode, CAPTURING state will
-       exsit.
+       exist.
 
        @par
 <div>
        </tr>
        <tr>
                <td>#MMCAM_TAG_LATITUDE</td>
-               <td>Latitude of captured postion (GPS information)</td>
+               <td>Latitude of captured position (GPS information)</td>
        </tr>
        <tr>
                <td>#MMCAM_TAG_LONGITUDE</td>
-               <td>Longitude of captured postion (GPS information)</td>
+               <td>Longitude of captured position (GPS information)</td>
        </tr>
        <tr>
                <td>#MMCAM_TAG_ALTITUDE</td>
-               <td>Altitude of captured postion (GPS information)</td>
+               <td>Altitude of captured position (GPS information)</td>
        </tr>
        <tr>
                <td>#MMCAM_STROBE_CONTROL</td>
@@ -943,7 +943,7 @@ extern "C" {
 #define MMCAM_CAPTURE_HEIGHT                    "capture-height"
 
 /**
- * Total count of capturing. If you set this, it will caputre multiple time.
+ * Total count of capturing. If you set this, it will capture multiple time.
  */
 #define MMCAM_CAPTURE_COUNT                     "capture-count"
 
@@ -1130,17 +1130,17 @@ extern "C" {
 #define MMCAM_TAG_GPS_ENABLE                    "tag-gps-enable"
 
 /**
- * Latitude of captured postion. GPS information.
+ * Latitude of captured position. GPS information.
  */
 #define MMCAM_TAG_LATITUDE                      "tag-latitude"
 
 /**
- * Longitude of captured postion. GPS information.
+ * Longitude of captured position. GPS information.
  */
 #define MMCAM_TAG_LONGITUDE                     "tag-longitude"
 
 /**
- * Altitude of captured postion. GPS information.
+ * Altitude of captured position. GPS information.
  */
 #define MMCAM_TAG_ALTITUDE                      "tag-altitude"
 
@@ -1288,7 +1288,7 @@ extern "C" {
 #define MMCAM_CAMERA_TILT_ELEC                  "camera-tilt-elec"
 
 /**
- * The type of PTZ(Pan Tilt Zoom). Mechanical or Electonic PTZ.
+ * The type of PTZ(Pan Tilt Zoom). Mechanical or Electronic PTZ.
  */
 #define MMCAM_CAMERA_PTZ_TYPE                   "camera-ptz-type"
 
@@ -1305,7 +1305,7 @@ extern "C" {
 #define MMCAM_DISPLAY_REUSE_ELEMENT             "display-reuse-element"
 
 /**
- * The GBbus connection from outside
+ * The GDBus connection from outside
  */
 #define MMCAM_GDBUS_CONNECTION                  "gdbus-connection"
 
@@ -1483,12 +1483,12 @@ enum MMCamcorderAutoFocusType {
 
 /**
  * An enumeration for focus state.
- * When 'MM_MESSAGE_CAMCORDER_FOCUS_CHANGED' is delievered through 'MMMessageCallback',
+ * When 'MM_MESSAGE_CAMCORDER_FOCUS_CHANGED' is delivered through 'MMMessageCallback',
  * this enumeration will be set to 'code' of MMMessageParamType.
  */
 enum MMCamcorderFocusStateType {
        MM_CAMCORDER_FOCUS_STATE_RELEASED = 0,  /**< Focus released.*/
-       MM_CAMCORDER_FOCUS_STATE_ONGOING,       /**< Focus in pregress*/
+       MM_CAMCORDER_FOCUS_STATE_ONGOING,       /**< Focus in progress*/
        MM_CAMCORDER_FOCUS_STATE_FOCUSED,       /**< Focus success*/
        MM_CAMCORDER_FOCUS_STATE_FAILED,        /**< Focus failed*/
 };
@@ -1575,7 +1575,7 @@ enum MMCamcorderGeometryMethod {
        MM_CAMCORDER_FULL,                      /**< full-screen*/
        MM_CAMCORDER_CROPPED_FULL,              /**< Cropped full-screen*/
        MM_CAMCORDER_ORIGIN_OR_LETTER,          /**< Origin size or Letter box*/
-       MM_CAMCORDER_CUSTOM_ROI,                /**< Explicitely described destination ROI*/
+       MM_CAMCORDER_CUSTOM_ROI,                /**< Explicitly described destination ROI*/
 };
 
 
@@ -1879,7 +1879,7 @@ typedef struct {
 
 
 /**
- * Face detect defailed information
+ * Face detect detailed information
  */
 typedef struct _MMCamFaceInfo {
        int id;                                 /**< id of each face */
@@ -1986,7 +1986,7 @@ typedef gboolean (*mm_camcorder_video_encode_decision_callback)(MMCamcorderVideo
  *  This function creates handle structure and initialize mutex, attributes, gstreamer.
  *  When this function success, it will return  a handle of newly created object.
  *  A user have to put the handle when he calls every function of mm_camcorder. \n
- *  Second argument of this function is the field to decribe pre-setting information of mm_camcorder such as which camera device it will use.
+ *  Second argument of this function is the field to describe pre-setting information of mm_camcorder such as which camera device it will use.
  *  Normally, MM_VIDEO_DEVICE_CAMERA0 is for Main camera(or Mega camera, Back camera),
  *  and MM_VIDEO_DEVICE_CAMERA1 is for VGA camera (or Front camera). If you want audio recording,
  *  please set MM_VIDEO_DEVICE_NONE. (No camera device is needed.)
@@ -2076,7 +2076,7 @@ int mm_camcorder_destroy(MMHandleType camcorder);
  *    mm_camcorder_realize:\n
  *  Allocate resources for camcorder and initialize it.
  *  This also creates streamer pipeline. So you have to set attributes that are pivotal to create
- *  the pipeline before calling this function. This function also takes a roll to manage confliction
+ *  the pipeline before calling this function. This function also takes a roll to manage conflict
  *  between different applications which use camcorder. For example, if you try to use camcorder when
  *  other application that is more important such as call application, this function will return
  *  'MM_ERROR_POLICY_BLOCKED'. On the contrary, if your application that uses camcorder starts to launch
@@ -2620,7 +2620,7 @@ int mm_camcorder_capture_start(MMHandleType camcorder);
  *    mm_camcorder_capture_stop:\n
  *  Stop capturing of still images. (Image mode only)
  *  This function notifies the end of capturing and launch preview again.
- *  Just as mm_camcorder_capture_start(), this funciton stops still image stream and set preview information such as
+ *  Just as mm_camcorder_capture_start(), this function stops still image stream and set preview information such as
  *  resolution, pixel format, and framerate to camera driver. Then it command to start preview.
  *  If you don't call this, preview will not be displayed even though capturing was finished.
  *
@@ -2894,7 +2894,7 @@ int mm_camcorder_set_message_callback(MMHandleType camcorder, MMMessageCallback
  *    mm_camcorder_set_video_stream_callback:\n
  *  Set callback for user defined video stream callback function.
  *  Users can retrieve video frame using registered callback.
- *  The callback function holds the same buffer that will be drawed on the display device.
+ *  The callback function holds the same buffer that will be drawn on the display device.
  *  So if an user change the buffer, it will be displayed on the device.
  *
  *     @param[in]      camcorder       A handle of camcorder.
@@ -2926,9 +2926,9 @@ int mm_camcorder_set_video_stream_callback(MMHandleType camcorder, mm_camcorder_
 /**
  *    mm_camcorder_set_video_capture_callback:\n
  *  Set callback for user defined video capture callback function.  (Image mode only)
- *  mm_camcorder deliever captured image through the callback.\n
- *  Normally, this function provides main captured image and thumnail image. But depending on the environment,
- *  thumnail would not be available. Information related with main captured image and thumnail image is also included
+ *  mm_camcorder deliver captured image through the callback.\n
+ *  Normally, this function provides main captured image and thumbnail image. But depending on the environment,
+ *  thumbnail would not be available. Information related with main captured image and thumbnail image is also included
  *  in the argument of the callback function.
  *  For more detail information of callback, please refer 'mm_camcorder_video_capture_callback'.
  *
@@ -3046,7 +3046,7 @@ int mm_camcorder_set_video_encode_decision_callback(MMHandleType camcorder, mm_c
  *    mm_camcorder_get_state:\n
  *  Get the current state of camcorder.
  *  mm_camcorder is working on the base of its state. An user should check the state of mm_camcorder before calling its functions.
- *  If the handle is avaiable, user can retrieve the value.
+ *  If the handle is available, user can retrieve the value.
  *
  *     @param[in]      camcorder       A handle of camcorder.
  *     @param[out]     state           On return, it contains current state of camcorder.
@@ -3278,7 +3278,7 @@ int mm_camcorder_get_fps_list_by_resolution(MMHandleType camcorder, int width, i
  *    mm_camcorder_init_focusing:\n
  *  Initialize focusing. \n
  *  This function stops focusing action and adjust the camera lens to initial position.
- *  Some camera applciation requires to initialize its lens position after releasing half shutter. In that case,
+ *  Some camera application requires to initialize its lens position after releasing half shutter. In that case,
  *  this should be a good choice. Comparing with mm_camcorder_stop_focusing, this function not only stops focusing,
  *  but also initialize the lens. Preview image might be out-focused after calling this function.
  *     @param[in]      camcorder  A handle of camcorder.
@@ -3331,12 +3331,12 @@ int mm_camcorder_init_focusing(MMHandleType camcorder);
 /**
  *    mm_camcorder_start_focusing:\n
  *  Start focusing. \n
- *  This function command to start focusing opeartion. Because focusing operation depends on mechanic or electric module,
+ *  This function command to start focusing operation. Because focusing operation depends on mechanic or electric module,
  *  it may take small amount of time. (For ex, 500ms ~ 3sec). \n
  *  This function works asynchronously. When an user call this function,  it will return immediately.
  *  However, focusing operation will continue until it gets results.
  *  After finishing operation, you can get 'MM_MESSAGE_CAMCORDER_FOCUS_CHANGED' message.
- *  'param.code' of the message structure describes the fucusing was success or not.
+ *  'param.code' of the message structure describes the focusing was success or not.
  *
  *     @param[in]      camcorder       A handle of camcorder.
  *     @return         This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
@@ -3421,7 +3421,7 @@ int mm_camcorder_stop_focusing(MMHandleType camcorder);
 void mm_camcorder_emit_signal(MMHandleType camcorder, const char *object_name,
        const char *interface_name, const char *signal_name, int value);
 
-/* check compatability between codec and file format */
+/* check compatibility between codec and file format */
 int mm_camcorder_check_codec_fileformat_compatibility(const char *codec_type, int codec, int file_format);
 
 /* external storage state management */
index 0216bd1..429968d 100755 (executable)
@@ -625,7 +625,7 @@ typedef enum {
  * MMCamcorder Gstreamer Element
  */
 typedef struct {
-       unsigned int id;                /**< Gstreamer piplinem element name */
+       unsigned int id;                /**< Gstreamer pipeline element id */
        GstElement *gst;                /**< Gstreamer element */
 } _MMCamcorderGstElement;
 
@@ -816,8 +816,8 @@ typedef struct mmf_camcorder {
 
        /* gdbus */
        GDBusConnection *gdbus_conn;                            /**< gdbus connection */
-       _MMCamcorderGDbusCbInfo gdbus_info_sound;               /**< Informations for the gbus cb of sound play */
-       _MMCamcorderGDbusCbInfo gdbus_info_solo_sound;          /**< Informations for the gbus cb of solo sound play */
+       _MMCamcorderGDbusCbInfo gdbus_info_sound;               /**< Information for the gdbus cb of sound play */
+       _MMCamcorderGDbusCbInfo gdbus_info_solo_sound;          /**< Information for the gdbus cb of solo sound play */
 
        /* DPM(device policy manager) */
        device_policy_manager_h dpm_handle;                     /**< DPM handle */
@@ -995,7 +995,7 @@ int _mmcamcorder_commit(MMHandleType hcamcorder);
 int _mmcamcorder_cancel(MMHandleType hcamcorder);
 
 /**
- *     This function calls after commiting action finished asynchronously.
+ *     This function calls after committing action finished asynchronously.
  *     In this function, remaining process , such as state change, happens.
  *
  *     @param[in]      hcamcorder      Specifies the camcorder  handle
@@ -1013,7 +1013,7 @@ int _mmcamcorder_commit_async_end(MMHandleType hcamcorder);
  *
  *     @param[in]      hcamcorder      Specifies the camcorder  handle
  *     @param[in]      callback        Specifies the function pointer of callback function
- *     @param[in]      user_data       Specifies the user poiner for passing to callback function
+ *     @param[in]      user_data       Specifies the user pointer for passing to callback function
  *
  *     @return         This function returns zero on success, or negative value with error code.
  *     @remarks        typedef bool (*mm_message_callback) (int msg, mm_messageType *param, void *user_param);@n
@@ -1050,7 +1050,7 @@ int _mmcamcorder_set_message_callback(MMHandleType hcamcorder,
  *
  *     @param[in]      hcamcorder      Specifies the camcorder  handle
  *     @param[in]      callback        Specifies the function pointer of callback function
- *     @param[in]      user_data       Specifies the user poiner for passing to callback function
+ *     @param[in]      user_data       Specifies the user pointer for passing to callback function
  *
  *     @return         This function returns zero on success, or negative value with error code.
  *     @see            mmcamcorder_error_type
@@ -1064,7 +1064,7 @@ int _mmcamcorder_set_video_stream_callback(MMHandleType hcamcorder,
  *
  *     @param[in]      hcamcorder      Specifies the camcorder handle
  *     @param[in]      callback        Specifies the function pointer of callback function
- *     @param[in]      user_data       Specifies the user poiner for passing to callback function
+ *     @param[in]      user_data       Specifies the user pointer for passing to callback function
  *
  *     @return         This function returns zero on success, or negative value with error code.
  *     @see            mmcamcorder_error_type
@@ -1078,7 +1078,7 @@ int _mmcamcorder_set_audio_stream_callback(MMHandleType handle,
  *
  *     @param[in]      hcamcorder      Specifies the camcorder handle
  *     @param[in]      callback        Specifies the function pointer of callback function
- *     @param[in]      user_data       Specifies the user poiner for passing to callback function
+ *     @param[in]      user_data       Specifies the user pointer for passing to callback function
  *
  *     @return         This function returns zero on success, or negative value with error code.
  *     @see            mmcamcorder_error_type
@@ -1092,7 +1092,7 @@ int _mmcamcorder_set_muxed_stream_callback(MMHandleType handle,
  *
  *     @param[in]      hcamcorder      Specifies the camcorder  handle
  *     @param[in]      callback        Specifies the function pointer of callback function
- *     @param[in]      user_data       Specifies the user poiner for passing to callback function
+ *     @param[in]      user_data       Specifies the user pointer for passing to callback function
  *
  *     @return         This function returns zero on success, or negative value with error code.
  *     @see            mmcamcorder_error_type
@@ -1106,7 +1106,7 @@ int _mmcamcorder_set_video_capture_callback(MMHandleType hcamcorder,
  *
  *     @param[in]      hcamcorder      Specifies the camcorder  handle
  *     @param[in]      callback        Specifies the function pointer of callback function
- *     @param[in]      user_data       Specifies the user poiner for passing to callback function
+ *     @param[in]      user_data       Specifies the user pointer for passing to callback function
  *
  *     @return         This function returns zero on success, or negative value with error code.
  */
@@ -1212,7 +1212,7 @@ int _mmcamcorder_set_functions(MMHandleType handle, int type);
 /**
  * This function is callback function of main pipeline.
  * Once this function is registered with certain pipeline using gst_bus_add_watch(),
- * this callback will be called every time when there is upcomming message from pipeline.
+ * this callback will be called every time when there is upcoming message from pipeline.
  * Basically, this function is used as error handling function, now.
  *
  * @param[in]  bus             pointer of buf that called this function.
@@ -1228,7 +1228,7 @@ gboolean _mmcamcorder_pipeline_cb_message(GstBus *bus, GstMessage *message, gpoi
 /**
  * This function is callback function of main pipeline.
  * Once this function is registered with certain pipeline using gst_bus_set_sync_handler(),
- * this callback will be called every time when there is upcomming message from pipeline.
+ * this callback will be called every time when there is upcoming message from pipeline.
  * Basically, this function is used as sync error handling function, now.
  *
  * @param[in]  bus             pointer of buf that called this function.
@@ -1244,7 +1244,7 @@ GstBusSyncReply _mmcamcorder_pipeline_bus_sync_callback(GstBus *bus, GstMessage
 /**
  * This function is callback function of encode pipeline.
  * Once this function is registered with certain pipeline using gst_bus_set_sync_handler(),
- * this callback will be called every time when there is upcomming message from pipeline.
+ * this callback will be called every time when there is upcoming message from pipeline.
  * Basically, this function is used for EOS and error handling now.
  *
  * @param[in]  bus             pointer of buf that called this function.
index 7398afd..6de5688 100644 (file)
@@ -93,7 +93,7 @@ typedef struct {
 /**
  * This function add still shot bin to main pipeline.
  * When application creates initial pipeline, there are only bins for preview.
- * If application wants to add stil shot function, bins for stillshot should be added.
+ * If application wants to add still shot function, bins for stillshot should be added.
  *
  * @param[in]  handle          Handle of camcorder context.
  * @return     This function returns MM_ERROR_NONE on success, or the other values on error.
index f2c641e..655ce9a 100644 (file)
@@ -271,7 +271,6 @@ typedef struct {
 ========================================================================================*/
 #define G_DBUS_TIMEOUT                          3000
 #define FAT32_FILE_SYSTEM_MAX_SIZE              (4294967295UL)     /* 4 GigaByte - 1 byte */
-#define NANO_SEC_PER_MILI_SEC                   1000000
 #define _MMCAMCORDER_HANDLER_CATEGORY_ALL \
        (_MMCAMCORDER_HANDLER_PREVIEW | _MMCAMCORDER_HANDLER_VIDEOREC |_MMCAMCORDER_HANDLER_STILLSHOT | _MMCAMCORDER_HANDLER_AUDIOREC)