1
0

memcache.h 845 B

123456789101112131415161718192021222324
  1. #pragma once
  2. typedef struct image_cache
  3. {
  4. int size_x, size_y;
  5. struct video_image *head;
  6. } ImageCache;
  7. void image_cache_set_dimensions(ImageCache *cache, int width, int height);
  8. int image_cache_dimensions_match(ImageCache *cache, int width, int height);
  9. void image_cache_add(ImageCache *cache, struct video_image *image);
  10. struct video_image *image_cache_get(ImageCache *cache);
  11. void image_cache_flush(ImageCache *cache);
  12. typedef struct motion_cache
  13. {
  14. int size_x, size_y;
  15. struct pic_motion **head;
  16. } MotionCache;
  17. void motion_cache_set_dimensions(MotionCache *cache, int width, int height);
  18. int motion_cache_dimensions_match(MotionCache *cache, int width, int height);
  19. void motion_cache_add(MotionCache *cache, struct pic_motion **image);
  20. struct pic_motion **motion_cache_get(MotionCache *cache);
  21. void motion_cache_flush(MotionCache *cache);