diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/h264dec/lcommon/inc/memcache.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/h264dec/lcommon/inc/memcache.h')
-rw-r--r-- | Src/h264dec/lcommon/inc/memcache.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Src/h264dec/lcommon/inc/memcache.h b/Src/h264dec/lcommon/inc/memcache.h new file mode 100644 index 00000000..26131827 --- /dev/null +++ b/Src/h264dec/lcommon/inc/memcache.h @@ -0,0 +1,24 @@ +#pragma once +typedef struct image_cache +{ + int size_x, size_y; + struct video_image *head; +} ImageCache; + +void image_cache_set_dimensions(ImageCache *cache, int width, int height); +int image_cache_dimensions_match(ImageCache *cache, int width, int height); +void image_cache_add(ImageCache *cache, struct video_image *image); +struct video_image *image_cache_get(ImageCache *cache); +void image_cache_flush(ImageCache *cache); + +typedef struct motion_cache +{ + int size_x, size_y; + struct pic_motion **head; +} MotionCache; + +void motion_cache_set_dimensions(MotionCache *cache, int width, int height); +int motion_cache_dimensions_match(MotionCache *cache, int width, int height); +void motion_cache_add(MotionCache *cache, struct pic_motion **image); +struct pic_motion **motion_cache_get(MotionCache *cache); +void motion_cache_flush(MotionCache *cache);
\ No newline at end of file |