unsigned char blue;
} mm_util_gif_color_s;
-typedef struct gif_image_s* mm_gif_image_h;
+typedef void* mm_gif_image_h;
-typedef struct gif_file_s* mm_gif_file_h;
+typedef void* mm_gif_file_h;
#endif
typedef struct {
* @see mm_util_gif_image_create
* @pre mm_util_gif_image_create
*/
-int mm_util_gif_image_set_position(mm_gif_image_h gif_image_h, int left, int top, int width, int height);
+int mm_util_gif_image_set_position(mm_gif_image_h gif_image_h, const int left, const int top, const int width, const int height);
/**
* This function sets the disposal mode(graphic control) of the single image(frame).
* @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, unsigned char *image_data, unsigned long size);
+int mm_util_gif_image_set_image(mm_gif_image_h gif_image_h, const unsigned char *image_data, const unsigned long size);
/**
* This function destroys the handle of the single image(frame).
* @see mm_util_gif_encode_create
* @pre mm_util_gif_encode_create
*/
-int mm_util_gif_encode_set_repeat(mm_gif_file_h gif_file_h, gboolean repeat_mode, unsigned short repeat_count);
+int mm_util_gif_encode_set_repeat(mm_gif_file_h gif_file_h, gboolean repeat_mode, const unsigned short repeat_count);
/**
* This function starts encoding image.
* @see mm_util_gif_encode_create
* @pre mm_util_gif_encode_add_image
*/
-int mm_util_gif_enocde_get_image_handle(mm_gif_file_h gif_file_h, int index, mm_gif_image_h *gif_image_h);
+int mm_util_gif_enocde_get_image_handle(mm_gif_file_h gif_file_h, const int index, mm_gif_image_h *gif_image_h);
/**
* This function encodes gif image with images set into gif handle.
return MM_UTIL_ERROR_NONE;
}
-int mm_util_gif_image_set_position(mm_gif_image_h gif_image_h, int left, int top, int width, int height)
+int mm_util_gif_image_set_position(mm_gif_image_h gif_image_h, const int left, const int top, const int width, const int height)
{
gif_image_s *gif_image = (gif_image_s *)gif_image_h;
return MM_UTIL_ERROR_NONE;
}
-int mm_util_gif_image_set_color_map(mm_gif_image_h gif_image_h, int number_of_colors, mm_util_gif_color_s *colors)
+int mm_util_gif_image_set_color_map(mm_gif_image_h gif_image_h, const int number_of_colors, mm_util_gif_color_s *colors)
{
gif_image_s *gif_image = (gif_image_s *)gif_image_h;
return MM_UTIL_ERROR_NONE;
}
-int mm_util_gif_image_set_image(mm_gif_image_h gif_image_h, unsigned char *image_data, unsigned long size)
+int mm_util_gif_image_set_image(mm_gif_image_h gif_image_h, const unsigned char *image_data, const unsigned long size)
{
gif_image_s *gif_image = (gif_image_s *)gif_image_h;
mm_util_info("%s ptr = %p, size = %lu", __func__, image_data, size);
- gif_image->image_data = image_data;
+ gif_image->image_data = (void *)image_data;
gif_image->image_data_size = size;
return MM_UTIL_ERROR_NONE;
}
#endif
-int mm_util_gif_encode_set_repeat(mm_gif_file_h gif_file_h, gboolean repeat_mode, unsigned short repeat_count)
+int mm_util_gif_encode_set_repeat(mm_gif_file_h gif_file_h, gboolean repeat_mode, const unsigned short repeat_count)
{
gif_file_s *gif_file = (gif_file_s *)gif_file_h;
return MM_UTIL_ERROR_NONE;
}
-int mm_util_gif_enocde_get_image_handle(mm_gif_file_h gif_file_h, int index, mm_gif_image_h *gif_image_h)
+int mm_util_gif_enocde_get_image_handle(mm_gif_file_h gif_file_h, const int index, mm_gif_image_h *gif_image_h)
{
gif_file_s *gif_file = (gif_file_s *)gif_file_h;