Lines Matching refs:gif
125 void SkGifCodec::CloseGif(GifFileType* gif) { in CloseGif() argument
127 DGifCloseFile(gif); in CloseGif()
129 DGifCloseFile(gif, nullptr); in CloseGif()
170 SkAutoTCallVProc<GifFileType, CloseGif> gif(open_gif(stream)); in ReadHeader() local
172 if (nullptr == gif) { in ReadHeader()
180 SkCodec::Result result = ReadUpToFirstImage(gif, &transIndex); in ReadHeader()
186 if (GIF_ERROR == DGifGetImageDesc(gif)) { in ReadHeader()
191 SkASSERT(gif->ImageCount >= 1); in ReadHeader()
196 if (!GetDimensions(gif, &size, &frameRect)) { in ReadHeader()
219 *codecOut = new SkGifCodec(imageInfo, streamDeleter.detach(), gif.detach(), transIndex, in ReadHeader()
224 *gifOut = gif.detach(); in ReadHeader()
242 SkGifCodec::SkGifCodec(const SkImageInfo& srcInfo, SkStream* stream, GifFileType* gif, in SkGifCodec() argument
245 , fGif(gif) in SkGifCodec()
271 SkCodec::Result SkGifCodec::ReadUpToFirstImage(GifFileType* gif, uint32_t* transIndex) { argument
287 if (GIF_ERROR == DGifGetRecordType(gif, &recordType)) {
321 if (GIF_ERROR == DGifGetExtension(gif, &extFunction, &extData)) {
340 if (GIF_ERROR == DGifGetExtensionNext(gif, &extData)) {
362 bool SkGifCodec::GetDimensions(GifFileType* gif, SkISize* size, SkIRect* frameRect) { argument
364 SavedImage* image = &gif->SavedImages[gif->ImageCount - 1];
370 int width = gif->SWidth;
371 int height = gif->SHeight;