Apply tizen coding rule 80/64380/1 accepted/tizen/common/20160405.132310 accepted/tizen/ivi/20160405.081648 accepted/tizen/mobile/20160405.081531 accepted/tizen/tv/20160405.081555 accepted/tizen/wearable/20160405.081628 submit/tizen/20160405.001445
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 1 Apr 2016 01:44:52 +0000 (10:44 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 1 Apr 2016 01:45:21 +0000 (10:45 +0900)
Change-Id: I937b6dc8f9ab6dd1929af00d123cb37d7dc77e53
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/image_util_private.h
include/image_util_type.h

index ea42eb4..1fbc9cd 100755 (executable)
@@ -46,14 +46,14 @@ extern "C"
        } while (0)
 
 #define image_util_retm_if(expr, fmt, arg...) do { \
-               if(expr) { \
+               if (expr) { \
                        LOGE(FONT_COLOR_RED""fmt"", ##arg);     \
                        return; \
                } \
        } while (0)
 
 #define image_util_retvm_if(expr, val, fmt, arg...) do { \
-               if(expr) { \
+               if (expr) { \
                        LOGE(FONT_COLOR_RED""fmt"", ##arg);     \
                        return (val); \
                } \
@@ -61,7 +61,7 @@ extern "C"
 
 #define IMGCV_FUNC_NAME "mm_util_cv_extract_representative_color"
 #define PATH_MMUTIL_IMGCV_LIB "/usr/lib/libmmutil_imgcv.so"
-typedef gboolean (*ModuleFunc) (void *, int, int, unsigned char *, unsigned char *, unsigned char *);
+typedef gboolean (*ModuleFunc)(void *, int, int, unsigned char *, unsigned char *, unsigned char *);
 
 typedef struct {
        void *user_data;
@@ -111,7 +111,7 @@ typedef struct {
        unsigned long width;
        unsigned long height;
        bool is_decode;
-        int quality;
+       int quality;
        unsigned int image_count;
        unsigned int current_buffer_count;
        unsigned int current_resolution_count;
index b744e12..780a19e 100755 (executable)
@@ -25,7 +25,7 @@ extern "C"
 {
 #endif
 
-#define IMAGE_UTIL_ERROR_CLASS          TIZEN_ERROR_IMAGE_UTIL
+#define IMAGE_UTIL_ERROR_CLASS           TIZEN_ERROR_IMAGE_UTIL
 
 /**
  * @file image_util_type.h
@@ -41,42 +41,40 @@ extern "C"
  * @brief Enumeration for error.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       IMAGE_UTIL_ERROR_NONE =              TIZEN_ERROR_NONE,                /**< Successful */
-       IMAGE_UTIL_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER,   /**< Invalid parameter */
-       IMAGE_UTIL_ERROR_OUT_OF_MEMORY =     TIZEN_ERROR_OUT_OF_MEMORY,       /**< Out of memory */
-       IMAGE_UTIL_ERROR_NO_SUCH_FILE  = TIZEN_ERROR_NO_SUCH_FILE,            /**< No such file */
-       IMAGE_UTIL_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION,   /**< Internal error */
+typedef enum {
+       IMAGE_UTIL_ERROR_NONE =                         TIZEN_ERROR_NONE,                /**< Successful */
+       IMAGE_UTIL_ERROR_INVALID_PARAMETER =    TIZEN_ERROR_INVALID_PARAMETER,   /**< Invalid parameter */
+       IMAGE_UTIL_ERROR_OUT_OF_MEMORY =        TIZEN_ERROR_OUT_OF_MEMORY,       /**< Out of memory */
+       IMAGE_UTIL_ERROR_NO_SUCH_FILE  =                TIZEN_ERROR_NO_SUCH_FILE,            /**< No such file */
+       IMAGE_UTIL_ERROR_INVALID_OPERATION =    TIZEN_ERROR_INVALID_OPERATION,   /**< Internal error */
        IMAGE_UTIL_ERROR_NOT_SUPPORTED_FORMAT = TIZEN_ERROR_IMAGE_UTIL | 0x01,   /**< Not supported format */
-       IMAGE_UTIL_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED,   /**< Permission denied  */
-       IMAGE_UTIL_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED          /**< Not supported */
-}
-image_util_error_e;
+       IMAGE_UTIL_ERROR_PERMISSION_DENIED =    TIZEN_ERROR_PERMISSION_DENIED,   /**< Permission denied  */
+       IMAGE_UTIL_ERROR_NOT_SUPPORTED =                TIZEN_ERROR_NOT_SUPPORTED          /**< Not supported */
+} image_util_error_e;
 
 /**
  * @brief Enumeration for colorspace.
  * @since_tizen 2.3
  */
 typedef enum {
-    IMAGE_UTIL_COLORSPACE_YV12,     /**< YV12 - YCrCb planar format */
-    IMAGE_UTIL_COLORSPACE_YUV422,   /**< YUV422 - planar */
-    IMAGE_UTIL_COLORSPACE_I420,     /**< YUV420 - planar */
-    IMAGE_UTIL_COLORSPACE_NV12,     /**< NV12- planar */
-
-    IMAGE_UTIL_COLORSPACE_UYVY,     /**< UYVY - packed */
-    IMAGE_UTIL_COLORSPACE_YUYV,     /**< YUYV - packed */
-
-    IMAGE_UTIL_COLORSPACE_RGB565,   /**< RGB565, high-byte is Blue */
-    IMAGE_UTIL_COLORSPACE_RGB888,   /**< RGB888, high-byte is Blue */
-    IMAGE_UTIL_COLORSPACE_ARGB8888, /**< ARGB8888, high-byte is Blue */
-
-    IMAGE_UTIL_COLORSPACE_BGRA8888, /**< BGRA8888, high-byte is Alpha */
-    IMAGE_UTIL_COLORSPACE_RGBA8888, /**< RGBA8888, high-byte is Alpha */
-    IMAGE_UTIL_COLORSPACE_BGRX8888, /**< BGRX8888, high-byte is X */
-    IMAGE_UTIL_COLORSPACE_NV21,     /**< NV12- planar */
-    IMAGE_UTIL_COLORSPACE_NV16,     /**< NV16- planar */
-    IMAGE_UTIL_COLORSPACE_NV61,     /**< NV61- planar */
+       IMAGE_UTIL_COLORSPACE_YV12,      /**< YV12 - YCrCb planar format */
+       IMAGE_UTIL_COLORSPACE_YUV422,   /**< YUV422 - planar */
+       IMAGE_UTIL_COLORSPACE_I420,      /**< YUV420 - planar */
+       IMAGE_UTIL_COLORSPACE_NV12,      /**< NV12- planar */
+
+       IMAGE_UTIL_COLORSPACE_UYVY,      /**< UYVY - packed */
+       IMAGE_UTIL_COLORSPACE_YUYV,      /**< YUYV - packed */
+
+       IMAGE_UTIL_COLORSPACE_RGB565,   /**< RGB565, high-byte is Blue */
+       IMAGE_UTIL_COLORSPACE_RGB888,   /**< RGB888, high-byte is Blue */
+       IMAGE_UTIL_COLORSPACE_ARGB8888, /**< ARGB8888, high-byte is Blue */
+
+       IMAGE_UTIL_COLORSPACE_BGRA8888, /**< BGRA8888, high-byte is Alpha */
+       IMAGE_UTIL_COLORSPACE_RGBA8888, /**< RGBA8888, high-byte is Alpha */
+       IMAGE_UTIL_COLORSPACE_BGRX8888, /**< BGRX8888, high-byte is X */
+       IMAGE_UTIL_COLORSPACE_NV21,      /**< NV12- planar */
+       IMAGE_UTIL_COLORSPACE_NV16,      /**< NV16- planar */
+       IMAGE_UTIL_COLORSPACE_NV61,      /**< NV61- planar */
 } image_util_colorspace_e;
 
 /**
@@ -93,12 +91,12 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-    IMAGE_UTIL_ROTATION_NONE = 0,      /**< None */
-    IMAGE_UTIL_ROTATION_90,                    /**< Rotation 90 degree */
-    IMAGE_UTIL_ROTATION_180,                   /**< Rotation 180 degree */
-    IMAGE_UTIL_ROTATION_270,                   /**< Rotation 270 degree */
-    IMAGE_UTIL_ROTATION_FLIP_HORZ,     /**< Flip horizontal */
-    IMAGE_UTIL_ROTATION_FLIP_VERT,     /**< Flip vertical */
+       IMAGE_UTIL_ROTATION_NONE = 0,   /**< None */
+       IMAGE_UTIL_ROTATION_90,                 /**< Rotation 90 degree */
+       IMAGE_UTIL_ROTATION_180,                        /**< Rotation 180 degree */
+       IMAGE_UTIL_ROTATION_270,                        /**< Rotation 270 degree */
+       IMAGE_UTIL_ROTATION_FLIP_HORZ,  /**< Flip horizontal */
+       IMAGE_UTIL_ROTATION_FLIP_VERT,  /**< Flip vertical */
 } image_util_rotation_e;
 
 /**
@@ -147,10 +145,10 @@ typedef enum {
  * @since_tizen 2.4
  */
 typedef enum {
-    IMAGE_UTIL_DOWNSCALE_1_1, /**< 1/1 downscale */
-    IMAGE_UTIL_DOWNSCALE_1_2,  /**< 1/2 downscale */
-    IMAGE_UTIL_DOWNSCALE_1_4,  /**< 1/4 downscale */
-    IMAGE_UTIL_DOWNSCALE_1_8,  /**< 1/8 downscale */
+       IMAGE_UTIL_DOWNSCALE_1_1, /**< 1/1 downscale */
+       IMAGE_UTIL_DOWNSCALE_1_2,       /**< 1/2 downscale */
+       IMAGE_UTIL_DOWNSCALE_1_4,       /**< 1/4 downscale */
+       IMAGE_UTIL_DOWNSCALE_1_8,       /**< 1/8 downscale */
 } image_util_scale_e;
 
 /**