Remove unused parmeter, the size of the buffer 52/148952/3 accepted/tizen/4.0/unified/20170913.002806 submit/tizen_4.0/20170912.050213
authorJiyong Min <jiyong.min@samsung.com>
Mon, 11 Sep 2017 02:08:07 +0000 (11:08 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Tue, 12 Sep 2017 03:37:34 +0000 (12:37 +0900)
Change-Id: I87b6558f36c45250339996e064b1edd5e0b36810
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
(cherry picked from commit 90cc494de1495597c735a98ecbdcdd82ecd19935)

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 e534215faf1819fb595ac5a511a3c5b9a55e0a69..7430e3b36cd6edff2642bf9ec43ad05fcb01ad65 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 d032df5c56900b4c6ac379d8d68bcf08d8f81752..fc9d8cd60fcab5c12ff34ba092955cfd419c3029 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 a25c529c0bc1b288abfe2c9f382808d9ac3a2dd2..d6f3ddc75545168bb8081a3b1b75ccfa6c482f27 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 2ef3f76cca6afde3f4e53c95d9d38de21a7e3058..9512e8a17d09a052a12f8f3fb4170f06ae2e8752 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 a681c7002a9e776cbd108ed554c4a51eb8a8c33b..65cb04186dd3be0f4aef8eb6a6d1ce013e8a73e4 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