Home | History | Annotate | Download | only in images

Lines Matching defs:gif

39 /*  Implement the GIF interlace algorithm in an iterator.
111 static const ColorMapObject* find_colormap(const GifFileType* gif) {
112 const ColorMapObject* cmap = gif->Image.ColorMap;
114 cmap = gif->SColorMap;
148 static bool error_return(GifFileType* gif, const SkBitmap& bm,
159 GifFileType* gif = DGifOpen(sk_stream, DecodeCallBackProc);
161 GifFileType* gif = DGifOpen(sk_stream, DecodeCallBackProc, NULL);
163 if (NULL == gif) {
164 return error_return(gif, *bm, "DGifOpen");
167 SkAutoTCallIProc<GifFileType, DGifCloseFile> acp(gif);
183 if (DGifGetRecordType(gif, &recType) == GIF_ERROR) {
184 return error_return(gif, *bm, "DGifGetRecordType");
189 if (DGifGetImageDesc(gif) == GIF_ERROR) {
190 return error_return(gif, *bm, "IMAGE_DESC_RECORD_TYPE");
193 if (gif->ImageCount < 1) { // sanity check
194 return error_return(gif, *bm, "ImageCount < 1");
197 width = gif->SWidth;
198 height = gif->SHeight;
202 return error_return(gif, *bm, "chooseFromOneChoice");
210 SavedImage* image = &gif->SavedImages[gif->ImageCount-1];
217 return error_return(gif, *bm, "TopLeft");
223 const ColorMapObject* cmap = find_colormap(gif);
225 return error_return(gif, *bm, "null cmap");
246 return error_return(gif, *bm, "allocPixelRef");
261 return error_return(gif, *bm, "non-pos inner width/height");
272 fill = gif->SBackGroundColor;
285 if (gif->Image.Interlace)
291 if (DGifGetLine(gif, row, innerWidth) == GIF_ERROR) {
292 return error_return(gif, *bm, "interlace DGifGetLine");
301 if (DGifGetLine(gif, scanline, innerWidth) == GIF_ERROR) {
302 return error_return(gif, *bm, "DGifGetLine");
312 if (DGifGetExtension(gif, &temp_save.Function,
315 if (DGifGetExtension(gif, &extFunction, &extData) == GIF_ERROR) {
317 return error_return(gif, *bm, "DGifGetExtension");
326 if (GifAddExtensionBlock(&gif->ExtensionBlockCount,
327 &gif->ExtensionBlocks,
332 return error_return(gif, *bm, "AddExtensionBlock");
334 if (DGifGetExtensionNext(gif, &extData) == GIF_ERROR) {
335 return error_return(gif, *bm, "DGifGetExtensionNext");