diff options
author | wm4 <wm4@nowhere> | 2013-03-09 20:21:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-13 23:51:30 +0100 |
commit | 71b09be04056d9a505f32c71375ebc327d842ae4 (patch) | |
tree | e3751ded26018df86d8d76f172b77a7e0286cdb1 /video/mp_image.h | |
parent | dfe7b3898da2e6f9036de0c5c13dccf4a8ca45f7 (diff) | |
download | mpv-71b09be04056d9a505f32c71375ebc327d842ae4.tar.bz2 mpv-71b09be04056d9a505f32c71375ebc327d842ae4.tar.xz |
video: prepare for libavcodec refcounting
Some minor refactoring and moving code around.
There should be no functional changes.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/video/mp_image.h b/video/mp_image.h index 6ba9393671..3fe2429445 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -117,7 +117,8 @@ struct mp_image *mp_image_new_custom_ref(struct mp_image *img, void *arg, struct mp_image *mp_image_new_external_ref(struct mp_image *img, void *arg, void (*ref)(void *arg), void (*unref)(void *arg), - bool (*is_unique)(void *arg)); + bool (*is_unique)(void *arg), + void (*free)(void *arg)); enum mp_csp mp_image_csp(struct mp_image *img); enum mp_csp_levels mp_image_levels(struct mp_image *img); @@ -126,6 +127,10 @@ struct mp_csp_details; void mp_image_set_colorspace_details(struct mp_image *image, struct mp_csp_details *csp); +struct AVFrame; +void mp_image_copy_fields_from_av_frame(struct mp_image *dst, + struct AVFrame *src); + // align must be a power of two (align >= 1), v >= 0 #define MP_ALIGN_UP(v, align) FFALIGN(v, align) #define MP_ALIGN_DOWN(v, align) ((v) & ~((align) - 1)) |