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;
172 * Skip rows in the source gif image.
173 * @param gif Source image.
174 * @param dst Scratch output needed by gif library call. Must be >= width bytes.
179 static bool skip_src_rows(GifFileType* gif, uint8_t* dst, int width, int rowsToSkip) {
181 if (DGifGetLine(gif, dst, width) == GIF_ERROR) {
233 GifFileType* gif = DGifOpen(sk_stream, DecodeCallBackProc);
235 GifFileType* gif = DGifOpen(sk_stream, DecodeCallBackProc, NULL);
237 if (NULL == gif) {
241 SkAutoTCallIProc<GifFileType, DGifCloseFile> acp(gif);
255 int fillIndex = gif->SBackGroundColor;
258 if (DGifGetRecordType(gif, &recType) == GIF_ERROR) {
264 if (DGifGetImageDesc(gif) == GIF_ERROR) {
268 if (gif->ImageCount < 1) { // sanity check
272 width = gif->SWidth;
273 height = gif->SHeight;
275 SavedImage* image = &gif->SavedImages[gif->ImageCount-1];
334 const ColorMapObject* cmap = find_colormap(gif);
361 // gif->SBackGroundColor should be less than colorCount.
383 // GIF has an option to store the scanlines of an image, plus a larger background,
418 if (gif->Image.Interlace) {
423 if (DGifGetLine(gif, scanline, innerWidth) == GIF_ERROR) {
438 skip_src_rows(gif, scanline, innerWidth, sampler.srcY0());
440 if (DGifGetLine(gif, scanline, innerWidth) == GIF_ERROR) {
451 skip_src_rows(gif, scanline, innerWidth, sampler.srcDY() - 1);
457 skip_src_rows(gif, scanline, innerWidth, innerHeight - read);
465 if (DGifGetExtension(gif, &temp_save.Function,
468 if (DGifGetExtension(gif, &extFunction, &extData) == GIF_ERROR) {
479 if (GifAddExtensionBlock(&gif->ExtensionBlockCount,
480 &gif->ExtensionBlocks,
487 if (DGifGetExtensionNext(gif, &extData) == GIF_ERROR) {