From f282d0b290afbb8c4043316d36ea0085f427779e Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 26 Dec 2012 21:22:44 +0100 Subject: vf_crop: make it work with more image formats --- video/mp_image.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/mp_image.h') diff --git a/video/mp_image.h b/video/mp_image.h index efbb7551b3..f5f246021a 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -126,4 +126,8 @@ struct mp_csp_details; void mp_image_set_colorspace_details(struct mp_image *image, struct mp_csp_details *csp); +// 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)) + #endif /* MPLAYER_MP_IMAGE_H */ -- cgit v1.2.3