diff options
author | wm4 <wm4@nowhere> | 2012-12-26 21:22:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:12 +0100 |
commit | f282d0b290afbb8c4043316d36ea0085f427779e (patch) | |
tree | 437509526f4227c78e150ed7c06cb6eaf61ae937 /video/mp_image.h | |
parent | 926c6631ff35925c002d1e267abcbded38777d05 (diff) | |
download | mpv-f282d0b290afbb8c4043316d36ea0085f427779e.tar.bz2 mpv-f282d0b290afbb8c4043316d36ea0085f427779e.tar.xz |
vf_crop: make it work with more image formats
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |