Apply tizen coding rule 49/60049/1 accepted/tizen/ivi/20160223.232322 accepted/tizen/mobile/20160223.232230 accepted/tizen/tv/20160223.232244 accepted/tizen/wearable/20160223.232302 submit/tizen/20160223.021211 submit/tizen/20160223.084322
authorJi Yong Min <jiyong.min@samsung.com>
Tue, 23 Feb 2016 01:02:02 +0000 (10:02 +0900)
committerJi Yong Min <jiyong.min@samsung.com>
Tue, 23 Feb 2016 01:03:42 +0000 (10:03 +0900)
Change-Id: I889dba475fa699c2d553f0567b143f02457e99ce
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
decode-test/image_util_decode_encode_testsuite.c
src/image_util.c

index 26fcede..c0dae25 100755 (executable)
@@ -203,7 +203,7 @@ int main(int argc, char *argv[])
                while ((dp = readdir(fd)) != NULL) {
                        if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
                                continue;               /* skip self and parent */
-                       if(!number_files) {
+                       if (!number_files) {
                                char *temp1 = strstr(dp->d_name, "-");
                                char *temp2 = strstr(dp->d_name, ".");
 
index 9e3a68d..92ac54b 100755 (executable)
@@ -1687,7 +1687,7 @@ int image_util_encode_set_resolution(image_util_encode_h handle, unsigned long w
                                return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
                        }
 
-                       if(_handle->image_count <= _handle->current_resolution_count) {
+                       if (_handle->image_count <= _handle->current_resolution_count) {
                                gif_data->frames = (mm_util_gif_frame_data **) realloc(gif_data->frames, (_handle->image_count + 1) * sizeof(mm_util_gif_frame_data *));
                                if (gif_data->frames == NULL) {
                                        image_util_error("Error - OUT_OF_MEMORY");
@@ -1839,7 +1839,7 @@ int image_util_encode_set_gif_frame_delay_time(image_util_encode_h handle, unsig
                image_util_error("Error allocating gif frames.");
                return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
        }
-       if(_handle->image_count <= _handle->current_delay_count) {
+       if (_handle->image_count <= _handle->current_delay_count) {
                gif_data->frames = (mm_util_gif_frame_data **) realloc(gif_data->frames, (_handle->image_count + 1) * sizeof(mm_util_gif_frame_data *));
                if (gif_data->frames == NULL) {
                        image_util_error("Error - OUT_OF_MEMORY");
@@ -1887,7 +1887,7 @@ int image_util_encode_set_input_buffer(image_util_encode_h handle, const unsigne
                        image_util_error("Error allocating gif frames.");
                        return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
                }
-               if(_handle->image_count <= _handle->current_buffer_count) {
+               if (_handle->image_count <= _handle->current_buffer_count) {
                        gif_data->frames = (mm_util_gif_frame_data **) realloc(gif_data->frames, (_handle->image_count + 1) * sizeof(mm_util_gif_frame_data *));
                        if (gif_data->frames == NULL) {
                                image_util_error("Error - OUT_OF_MEMORY");