Commit 8bbb487e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  doc/platform: Fix 10l typo
  dsputil: Move STRIDE_ALIGN macro to the only place it is used

Conflicts:
	libavcodec/dsputil.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 9f16cb9e 130cefc9
...@@ -404,10 +404,4 @@ void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx); ...@@ -404,10 +404,4 @@ void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
void ff_dsputil_init_dwt(DSPContext *c); void ff_dsputil_init_dwt(DSPContext *c);
#if (ARCH_ARM && HAVE_NEON) || ARCH_PPC || HAVE_MMX
# define STRIDE_ALIGN 16
#else
# define STRIDE_ALIGN 8
#endif
#endif /* AVCODEC_DSPUTIL_H */ #endif /* AVCODEC_DSPUTIL_H */
...@@ -47,7 +47,7 @@ static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, ...@@ -47,7 +47,7 @@ static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride,
w *= size; w *= size;
stride *= size; stride *= size;
av_assert2((((long)vp)&(FFMIN(w, STRIDE_ALIGN)-1)) == 0); av_assert2((((long)vp)&(FFMIN(w, 8<<(HAVE_NEON|ARCH_PPC|HAVE_MMX))-1)) == 0);
av_assert2((stride&(w-1))==0); av_assert2((stride&(w-1))==0);
if(w==2){ if(w==2){
const uint16_t v= size==4 ? val : val*0x0101; const uint16_t v= size==4 ? val : val*0x0101;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
* utils. * utils.
*/ */
#include "config.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/bprint.h" #include "libavutil/bprint.h"
...@@ -177,6 +178,12 @@ void avcodec_set_dimensions(AVCodecContext *s, int width, int height) ...@@ -177,6 +178,12 @@ void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
#define INTERNAL_BUFFER_SIZE (32 + 1) #define INTERNAL_BUFFER_SIZE (32 + 1)
#if (ARCH_ARM && 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