- The resolution of current frame is image_desc.
And the width, height of gif_image is the with & height of total image.
So the width, height can not be same with current frame.
Change-Id: I362cc07ab26298e6f502d66005f30ab7ac944eba
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
mm_util_retvm_if(gif_image == NULL, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid parameter");
- unsigned long num_of_pixels = gif_image->width * gif_image->height;
+ unsigned long num_of_pixels = gif_image->image_desc.Width* gif_image->image_desc.Height;
/* make colormap and quantization for the color table of gif */
ret = __gif_extract_rgb(gif_image, num_of_pixels, &red, &green, &blue);