summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h4
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 */