Lines Matching refs:gif
118 static const ColorMapObject* find_colormap(const GifFileType* gif) { in find_colormap() argument
119 const ColorMapObject* cmap = gif->Image.ColorMap; in find_colormap()
121 cmap = gif->SColorMap; in find_colormap()
180 static bool skip_src_rows(GifFileType* gif, uint8_t* dst, int width, int rowsToSkip) { in skip_src_rows() argument
182 if (DGifGetLine(gif, dst, width) == GIF_ERROR) { in skip_src_rows()
234 int close_gif(GifFileType* gif) { in close_gif() argument
236 return DGifCloseFile(gif); in close_gif()
238 return DGifCloseFile(gif, nullptr); in close_gif()
245 GifFileType* gif = DGifOpen(sk_stream, DecodeCallBackProc); local
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);
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) {