Home | History | Annotate | Download | only in images

Lines Matching refs:gif

41                 "images.gif.suppressDecoderWarnings", true,
42 "Suppress GIF warnings and errors when calling image decode "
46 /* Implement the GIF interlace algorithm in an iterator.
118 static const ColorMapObject* find_colormap(const GifFileType* gif) {
119 const ColorMapObject* cmap = gif->Image.ColorMap;
121 cmap = gif->SColorMap;
173 * Skip rows in the source gif image.
174 * @param gif Source image.
175 * @param dst Scratch output needed by gif library call. Must be >= width bytes.
180 static bool skip_src_rows(GifFileType* gif, uint8_t* dst, int width, int rowsToSkip) {
182 if (DGifGetLine(gif, dst, width) == GIF_ERROR) {
234 int close_gif(GifFileType* gif) {
236 return DGifCloseFile(gif);
238 return DGifCloseFile(gif, nullptr);
245 GifFileType* gif = DGifOpen(sk_stream, DecodeCallBackProc);
247 GifFileType* gif = DGifOpen(sk_stream, DecodeCallBackProc, nullptr);
249 if (nullptr == gif) {
253 SkAutoTCallIProc<GifFileType, close_gif> acp(gif);
267 int fillIndex = gif->SBackGroundColor;
270 if (DGifGetRecordType(gif, &recType) == GIF_ERROR) {
276 if (DGifGetImageDesc(gif) == GIF_ERROR) {
280 if (gif->ImageCount < 1) { // sanity check
284 width = gif->SWidth;
285 height = gif->SHeight;
287 SavedImage* image = &gif->SavedImages[gif->ImageCount-1];
339 const ColorMapObject* cmap = find_colormap(gif);
364 // gif->SBackGroundColor should be less than colorCount.
384 // GIF has an option to store the scanlines of an image, plus a larger background,
419 if (gif->Image.Interlace) {
424 if (DGifGetLine(gif, scanline, innerWidth) == GIF_ERROR) {
439 skip_src_rows(gif, scanline, innerWidth, sampler.srcY0());
441 if (DGifGetLine(gif, scanline, innerWidth) == GIF_ERROR) {
452 skip_src_rows(gif, scanline, innerWidth, sampler.srcDY() - 1);
458 skip_src_rows(gif, scanline, innerWidth, innerHeight - read);
466 if (DGifGetExtension(gif, &temp_save.Function,
469 if (DGifGetExtension(gif, &extFunction, &extData) == GIF_ERROR) {
488 if (DGifGetExtensionNext(gif, &extData) == GIF_ERROR) {