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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 4727ed6f8d..0eed3eb43c 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -28,6 +28,12 @@
#include "csputils.h"
#include "video/img_format.h"
+// Assumed minimum align needed for image allocation. It's notable that FFmpeg's
+// libraries except libavcodec don't really know what alignment they want.
+// Things will randomly crash or get slower if the alignment is not satisfied.
+// Whatever. This value should be pretty safe with current CPU architectures.
+#define MP_IMAGE_BYTE_ALIGN 64
+
#define MP_IMGFIELD_TOP_FIRST 0x02
#define MP_IMGFIELD_REPEAT_FIRST 0x04
#define MP_IMGFIELD_INTERLACED 0x20