mirror of https://git.ffmpeg.org/ffmpeg.git
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: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
8bbb487e44
|
@ -404,10 +404,4 @@ void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
|
|||
|
||||
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 */
|
||||
|
|
|
@ -47,7 +47,7 @@ static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride,
|
|||
w *= 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);
|
||||
if(w==2){
|
||||
const uint16_t v= size==4 ? val : val*0x0101;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
* utils.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/avstring.h"
|
||||
#include "libavutil/bprint.h"
|
||||
|
@ -177,6 +178,12 @@ void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
|
|||
|
||||
#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,
|
||||
int linesize_align[AV_NUM_DATA_POINTERS])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue