Commit da895720 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec: Move STRIDE_ALIGN to internal.h

The next commit/bugfix will need it
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 847d8af5
...@@ -35,6 +35,12 @@ ...@@ -35,6 +35,12 @@
#define FF_SANE_NB_CHANNELS 63U #define FF_SANE_NB_CHANNELS 63U
#if HAVE_NEON || ARCH_PPC || HAVE_MMX
# define STRIDE_ALIGN 16
#else
# define STRIDE_ALIGN 8
#endif
typedef struct FramePool { typedef struct FramePool {
/** /**
* Pools for each data plane. For audio all the planes have the same size, * Pools for each data plane. For audio all the planes have the same size,
......
...@@ -274,12 +274,6 @@ int ff_side_data_update_matrix_encoding(AVFrame *frame, ...@@ -274,12 +274,6 @@ int ff_side_data_update_matrix_encoding(AVFrame *frame,
return 0; return 0;
} }
#if HAVE_NEON || ARCH_PPC || HAVE_MMX
# define STRIDE_ALIGN 16
#else
# define STRIDE_ALIGN 8
#endif
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
int linesize_align[AV_NUM_DATA_POINTERS]) int linesize_align[AV_NUM_DATA_POINTERS])
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment