FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
videodsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/videodsp.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define randomize_buffers(w, h)
 
#define iter_1d(type, fix, fix_val, var, var_start, var_end)
 
#define check_emu_edge_size(type, src_w, src_h, dst_w, dst_h)
 
#define check_emu_edge(type)
 

Functions

void checkasm_check_videodsp (void)
 

Macro Definition Documentation

#define randomize_buffers (   w,
  h 
)
Value:
do { \
int i; \
for (i = 0; i < w * h * sizeof(*src0); i += 4) \
AV_WN32A(((uint8_t *) src0) + i, rnd()); \
} while (0)
#define AV_WN32A(p, v)
Definition: intreadwrite.h:538
uint8_t
#define rnd()
Definition: checkasm.h:66
for(j=16;j >0;--j)

Definition at line 27 of file videodsp.c.

#define iter_1d (   type,
  fix,
  fix_val,
  var,
  var_start,
  var_end 
)
Value:
for (fix = fix_val, var = var_start; var <= var_end; var++) { \
call_ref((type *) dst0, (const type *) (src0 + y * pw + x), \
bw * sizeof(type), pw * sizeof(type), \
bw, bh, x, y, pw, ph); \
call_new((type *) dst1, (const type *) (src1 + y * pw + x), \
bw * sizeof(type), pw * sizeof(type), \
bw, bh, x, y, pw, ph); \
if (memcmp(dst0, dst1, bw * bh * sizeof(type))) \
fail(); \
bench_new((type *) dst1, (const type *) (src1 + y * pw + x),\
bw * sizeof(type), pw * sizeof(type), \
bw, bh, x, y, pw, ph); \
}
#define fail()
Definition: checkasm.h:81
#define call_ref(...)
Definition: checkasm.h:87
#define src1
Definition: h264pred.c:139
GLint GLenum type
Definition: opengl_enc.c:105
#define src0
Definition: h264pred.c:138
if(ret< 0)
Definition: vf_mcdeint.c:282
#define bench_new(...)
Definition: checkasm.h:173
#define call_new(...)
Definition: checkasm.h:142

Definition at line 34 of file videodsp.c.

#define check_emu_edge_size (   type,
  src_w,
  src_h,
  dst_w,
  dst_h 
)
Value:
do { \
LOCAL_ALIGNED_16(type, src0, [src_w * src_h]); \
LOCAL_ALIGNED_16(type, src1, [src_w * src_h]); \
int bw = dst_w, bh = dst_h; \
int pw = src_w, ph = src_h; \
int y, x; \
randomize_buffers(src_w, src_h); \
memcpy(src1, src0, pw * ph * sizeof(type)); \
iter_1d(type, y, 0 - src_h, x, 0 - src_w, src_w - 0); \
iter_1d(type, x, src_w - 0, y, 0 - src_h, src_h - 0); \
iter_1d(type, y, src_h - 0, x, 0 - src_w, src_w - 0); \
iter_1d(type, x, 0 - src_w, y, 0 - src_h, src_h - 0); \
} while (0)
#define randomize_buffers(w, h)
Definition: videodsp.c:27
#define iter_1d(type, fix, fix_val, var, var_start, var_end)
Definition: videodsp.c:34
#define src1
Definition: h264pred.c:139
GLint GLenum type
Definition: opengl_enc.c:105
#define src0
Definition: h264pred.c:138
#define LOCAL_ALIGNED_16(t, v,...)
Definition: internal.h:121

Definition at line 49 of file videodsp.c.

#define check_emu_edge (   type)
Value:
do { \
LOCAL_ALIGNED_16(type, dst0, [64 * 64]); \
LOCAL_ALIGNED_16(type, dst1, [64 * 64]); \
void, type *dst, const type *src, \
ptrdiff_t dst_linesize, \
ptrdiff_t src_linesize, \
int block_w, int block_h, \
int src_x, int src_y, \
int src_w, int src_h); \
check_emu_edge_size(type, 16, 1, 64, 64); \
check_emu_edge_size(type, 16, 16, 64, 64); \
check_emu_edge_size(type, 64, 64, 64, 64); \
} while (0)
#define AV_CPU_FLAG_MMXEXT
SSE integer functions or AMD MMX ext.
Definition: cpu.h:30
#define src
Definition: vp9dsp.c:530
#define declare_func_emms(cpu_flags, ret,...)
Definition: checkasm.h:78
#define check_emu_edge_size(type, src_w, src_h, dst_w, dst_h)
Definition: videodsp.c:49
#define AV_CPU_FLAG_MMX
standard MMX
Definition: cpu.h:29
GLint GLenum type
Definition: opengl_enc.c:105
#define LOCAL_ALIGNED_16(t, v,...)
Definition: internal.h:121

Definition at line 64 of file videodsp.c.

Referenced by checkasm_check_videodsp().

Function Documentation

void checkasm_check_videodsp ( void  )

Definition at line 80 of file videodsp.c.