Remove unused parameter, the size of the buffer 96/148796/1 accepted/tizen/unified/20170913.070611 submit/tizen/20170911.075345
authorJiyong Min <jiyong.min@samsung.com>
Mon, 11 Sep 2017 02:08:07 +0000 (11:08 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Mon, 11 Sep 2017 02:11:21 +0000 (11:11 +0900)
Change-Id: I87b6558f36c45250339996e064b1edd5e0b36810
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
gif/include/mm_util_gif.h
gif/include/mm_util_gif_private.h
gif/mm_util_gif.c
gif/test/mm_util_gif_testsuite.c
packaging/libmm-utility.spec

index e534215..7430e3b 100755 (executable)
@@ -251,14 +251,13 @@ int mm_util_gif_image_set_delay_time(mm_gif_image_h gif_image_h, const int delay
  *
  * @param gif_image_h  [in]            the handle of the single image.
  * @param image_data   [in]            the buffer which has image data.
- * @param size                 [in]            the length of the buffer.
  * @return                             This function returns zero on success, or negative value with error code.
  * @remark
  * @since                              R1, 2.0
  * @see                                        mm_util_gif_image_create
  * @pre                                        mm_util_gif_image_create
  */
-int mm_util_gif_image_set_image(mm_gif_image_h gif_image_h, const unsigned char *image_data, const unsigned long size);
+int mm_util_gif_image_set_image(mm_gif_image_h gif_image_h, const unsigned char *image_data);
 
 /**
  * This function destroys the handle of the single image(frame).
index d032df5..fc9d8cd 100755 (executable)
@@ -33,7 +33,6 @@ typedef struct {
        /* for giflib, Same as SavedImage */
        GifImageDesc image_desc;
        void *image_data;
-       unsigned long image_data_size;
        int ext_block_count;
        ExtensionBlock *ext_blocks;
 
index a25c529..d6f3ddc 100755 (executable)
@@ -1085,18 +1085,16 @@ int mm_util_gif_image_set_color_map(mm_gif_image_h gif_image_h, const int number
        return MM_UTIL_ERROR_NONE;
 }
 
-int mm_util_gif_image_set_image(mm_gif_image_h gif_image_h, const unsigned char *image_data, const unsigned long size)
+int mm_util_gif_image_set_image(mm_gif_image_h gif_image_h, const unsigned char *image_data)
 {
        gif_image_s *gif_image = (gif_image_s *)gif_image_h;
 
        mm_util_retvm_if(gif_image == NULL, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid parameter");
        mm_util_retvm_if(image_data == NULL, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid parameter");
-       mm_util_retvm_if(size == 0, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid parameter");
 
-       mm_util_info("ptr = %p, size = %lu", image_data, size);
+       mm_util_info("ptr = %p", image_data);
 
        gif_image->image_data = (void *)image_data;
-       gif_image->image_data_size = size;
 
        return MM_UTIL_ERROR_NONE;
 }
index 2ef3f76..9512e8a 100755 (executable)
@@ -182,7 +182,7 @@ int main(int argc, char *argv[])
                if (files[i].decoded.frames) {
                        ret = mm_util_gif_image_create(gif_file, &gif_image);
                        fprintf(stderr, "\t mm_util_gif_image_create [%d]\n", ret);
-                       ret = mm_util_gif_image_set_image(gif_image, files[i].decoded.frames[0]->data, files[i].decoded.size);
+                       ret = mm_util_gif_image_set_image(gif_image, files[i].decoded.frames[0]->data);
                        fprintf(stderr, "\t mm_util_gif_image_set_image [%d]\n", ret);
                        ret = mm_util_gif_image_set_delay_time(gif_image, 20);
                        fprintf(stderr, "\t mm_util_gif_image_set_delay_time [%d]\n", ret);
index a681c70..65cb041 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-utility
 Summary:    Multimedia Framework Utility Library
-Version:    0.39
+Version:    0.40
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0