comparison src/thumb.c @ 844:efed9a1520d6

implemented generic FileData cache use it for caching decoded exif data
author nadvornik
date Wed, 18 Jun 2008 22:26:52 +0000
parents 94048d7843ba
children 06929cbcd796
comparison
equal deleted inserted replaced
843:add46f9c895c 844:efed9a1520d6
170 170
171 if (exif && exif_get_integer(exif, "Exif.Image.Orientation", &orientation)) 171 if (exif && exif_get_integer(exif, "Exif.Image.Orientation", &orientation))
172 tl->fd->exif_orientation = orientation; 172 tl->fd->exif_orientation = orientation;
173 else 173 else
174 tl->fd->exif_orientation = EXIF_ORIENTATION_TOP_LEFT; 174 tl->fd->exif_orientation = EXIF_ORIENTATION_TOP_LEFT;
175 exif_free(exif); 175 exif_free_fd(tl->fd, exif);
176 } 176 }
177 177
178 if (tl->fd->exif_orientation != EXIF_ORIENTATION_TOP_LEFT) 178 if (tl->fd->exif_orientation != EXIF_ORIENTATION_TOP_LEFT)
179 { 179 {
180 rotated = pixbuf_apply_orientation(pixbuf, tl->fd->exif_orientation); 180 rotated = pixbuf_apply_orientation(pixbuf, tl->fd->exif_orientation);