- mm_util_gif_private.h has been removed.
- mm_util_gif_disposal has been replaced to defined value of giflib.
Change-Id: I79ab50593681010900bbb66b21c9fa3981990601
This part describes the APIs with repect to multimedia image library.
*/
-/**
- * Disposal mode for gif encoding
- */
-typedef enum {
- MM_UTIL_GIF_DISPOSAL_UNSPECIFIED = 0, /**< No disposal specified. */
- MM_UTIL_GIF_DISPOSAL_DO_NOT = 1, /**< Leave image in place. */
- MM_UTIL_GIF_DISPOSAL_BACKGROUND = 2, /**< Set area too background color. */
- MM_UTIL_GIF_DISPOSAL_PREVIOUS = 3, /**< Restore to previous content. */
-} mm_util_gif_disposal;
-
typedef void* mm_gif_file_h;
int mm_util_decode_from_gif_file(const char *file_path, mm_util_image_h *decoded);
+++ /dev/null
-/*
- * libmm-utility
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Vineeth T M <vineeth.tm@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __MM_UTIL_GIF_PRIVATE_H__
-#define __MM_UTIL_GIF_PRIVATE_H__
-
-#include <glib.h>
-#include <gif_lib.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- void *buf;
- size_t buf_size;
- size_t pos;
-} gif_io_buf_s;
-
-typedef struct {
- GifFileType *GifFile; /**< GifFile opened */
- char *filename;
- void **enc_buffer; /**< Encoded output data attached to callback */
- size_t *enc_buffer_size;
- gif_io_buf_s io_buf;
-} gif_file_s;
-
-#ifdef __cplusplus
-}
-#endif
-#endif /*__MM_UTIL_GIF_PRIVATE_H__*/
#include <gif_lib.h>
#include "mm_util_gif.h"
-#include "mm_util_gif_private.h"
#include "mm_util_private.h"
#include <limits.h>
#define GRAPHIC_EXT_BLOCK_SIZE 4
+typedef struct {
+ void *buf;
+ size_t buf_size;
+ size_t pos;
+} gif_io_buf_s;
+
+typedef struct {
+ GifFileType *GifFile; /**< GifFile opened */
+ char *filename;
+ void **enc_buffer; /**< Encoded output data attached to callback */
+ size_t *enc_buffer_size;
+ gif_io_buf_s io_buf;
+} gif_file_s;
+
static int __convert_gif_to_rgba(void **data, ColorMapObject *color_map, GifRowType *screen_buffer, unsigned int width, unsigned int height)
{
unsigned long i, j;
mm_util_retvm_if(ret != MM_UTIL_ERROR_NONE, ret, "_gif_image_alloc_ext_block failed");
/* use fixed graphics control */
- graphic_control_block.DisposalMode = MM_UTIL_GIF_DISPOSAL_UNSPECIFIED;
+ graphic_control_block.DisposalMode = DISPOSAL_UNSPECIFIED;
graphic_control_block.UserInputFlag = FALSE;
graphic_control_block.TransparentColor = NO_TRANSPARENT_COLOR;
graphic_control_block.DelayTime = delay_time;