equal
deleted
inserted
replaced
75 * @return one of pt_cache_status; <0 on error, 0 if fresh, >0 otherwise |
75 * @return one of pt_cache_status; <0 on error, 0 if fresh, >0 otherwise |
76 */ |
76 */ |
77 int pt_cache_status (struct pt_cache *cache, const char *img_path); |
77 int pt_cache_status (struct pt_cache *cache, const char *img_path); |
78 |
78 |
79 /** |
79 /** |
|
80 * Get info for the cached image, open it if not already open. |
|
81 */ |
|
82 int pt_cache_info (struct pt_cache *cache, struct pt_image_info *info); |
|
83 |
|
84 /** |
80 * Update the cache data from the given PNG image. |
85 * Update the cache data from the given PNG image. |
81 */ |
86 */ |
82 int pt_cache_update_png (struct pt_cache *cache, png_structp png, png_infop info); |
87 int pt_cache_update_png (struct pt_cache *cache, png_structp png, png_infop info); |
83 |
88 |
84 /** |
89 /** |
85 * Actually open the existing .cache for use |
90 * Open the existing .cache for use. If already opened, does nothing. |
86 */ |
91 */ |
87 int pt_cache_open (struct pt_cache *cache); |
92 int pt_cache_open (struct pt_cache *cache); |
88 |
93 |
89 /** |
94 /** |
90 * Render out a PNG tile as given, into the established png object, up to (but not including) the png_write_end. |
95 * Render out a PNG tile as given, into the established png object, up to (but not including) the png_write_end. |