FFmpeg
Macros | Functions
bswapdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/bswapdsp.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define BUF_SIZE   512
 
#define randomize_buffers()
 
#define check_bswap(type)
 

Functions

void checkasm_check_bswapdsp (void)
 

Macro Definition Documentation

#define BUF_SIZE   512

Definition at line 28 of file bswapdsp.c.

Referenced by checkasm_check_bswapdsp().

#define randomize_buffers ( )
Value:
do { \
for (i = 0; i < BUF_SIZE; i += 4) { \
uint32_t r = rnd(); \
AV_WN32A(src0 + i, r); \
AV_WN32A(src1 + i, r); \
r = rnd(); \
AV_WN32A(dst0 + i, r); \
AV_WN32A(dst1 + i, r); \
} \
} while (0)
#define BUF_SIZE
Definition: bswapdsp.c:28
#define AV_WN32A(p, v)
Definition: intreadwrite.h:538
const char * r
Definition: vf_curves.c:114
#define src1
Definition: h264pred.c:139
#define src0
Definition: h264pred.c:138
int
#define rnd()
Definition: checkasm.h:107
for(j=16;j >0;--j)
int i
Definition: input.c:407

Definition at line 30 of file bswapdsp.c.

#define check_bswap (   type)
Value:
do { \
declare_func(void, type *dst, const type *src, int w); \
for (w = 0; w < BUF_SIZE / sizeof(type); w++) { \
int offset = (BUF_SIZE / sizeof(type) - w) & 15; /* Test various alignments */ \
call_ref((type *)dst0 + offset, (type *)src0 + offset, w); \
call_new((type *)dst1 + offset, (type *)src1 + offset, w); \
if (memcmp(src0, src1, BUF_SIZE) || memcmp(dst0, dst1, BUF_SIZE)) \
fail(); \
bench_new((type *)dst1 + offset, (type *)src1 + offset, w); \
} \
} while (0)
#define randomize_buffers()
Definition: bswapdsp.c:30
#define BUF_SIZE
Definition: bswapdsp.c:28
GLint GLenum type
Definition: opengl_enc.c:104
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
#define src
Definition: vp8dsp.c:254
#define declare_func(ret,...)
Definition: checkasm.h:118
#define fail()
Definition: checkasm.h:123
uint8_t w
Definition: llviddspenc.c:38
if(ret)
#define call_ref(...)
Definition: checkasm.h:129
#define src1
Definition: h264pred.c:139
#define src0
Definition: h264pred.c:138
int
#define bench_new(...)
Definition: checkasm.h:261
#define call_new(...)
Definition: checkasm.h:201
for(j=16;j >0;--j)

Definition at line 43 of file bswapdsp.c.

Referenced by checkasm_check_bswapdsp().

Function Documentation

void checkasm_check_bswapdsp ( void  )

Definition at line 59 of file bswapdsp.c.