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

Go to the source code of this file.

Macros

#define WIDTH   240
 
#define HEIGHT   120
 
#define WIDTH_PADDED   (WIDTH + 16) /* padded to 32 */
 
#define BUFFER_SIZE   (WIDTH_PADDED * HEIGHT)
 
#define randomize_plane(buf, type)
 
#define cmp_plane(buf0, buf1, s)
 
#define CHECK_RESTORE(type)
 

Functions

static void check_restore_rgb_planes (void)
 
static void check_restore_rgb_planes10 (void)
 
void checkasm_check_utvideodsp (void)
 

Macro Definition Documentation

#define WIDTH   240

Definition at line 28 of file utvideodsp.c.

#define HEIGHT   120

Definition at line 29 of file utvideodsp.c.

#define WIDTH_PADDED   (WIDTH + 16) /* padded to 32 */

Definition at line 30 of file utvideodsp.c.

#define BUFFER_SIZE   (WIDTH_PADDED * HEIGHT)

Definition at line 31 of file utvideodsp.c.

#define randomize_plane (   buf,
  type 
)
Value:
do { \
int w, h; \
type * tmp = buf; \
for (h = 0; h < HEIGHT; h++) { \
for (w = 0; w < WIDTH; w++) \
tmp[w] = rnd() & 0xFF; \
} \
} while (0)
GLint GLenum type
Definition: opengl_enc.c:104
uint8_t w
Definition: llviddspenc.c:38
#define WIDTH_PADDED
Definition: utvideodsp.c:30
#define HEIGHT
Definition: utvideodsp.c:29
#define WIDTH
Definition: utvideodsp.c:28
void * buf
Definition: avisynth_c.h:766
int
#define rnd()
Definition: checkasm.h:106
for(j=16;j >0;--j)
static uint8_t tmp[11]
Definition: aes_ctr.c:26

Definition at line 34 of file utvideodsp.c.

#define cmp_plane (   buf0,
  buf1,
  s 
)
Value:
do { \
for (h = 0; h < HEIGHT; h++) { \
if (memcmp(buf0 + h*WIDTH_PADDED, \
buf1 + h*WIDTH_PADDED, WIDTH *s)) \
fail();\
} \
} while (0)
#define fail()
Definition: checkasm.h:122
#define WIDTH_PADDED
Definition: utvideodsp.c:30
#define HEIGHT
Definition: utvideodsp.c:29
#define s(width, name)
Definition: cbs_vp9.c:257
#define WIDTH
Definition: utvideodsp.c:28
if(ret)
int
for(j=16;j >0;--j)

Definition at line 45 of file utvideodsp.c.

#define CHECK_RESTORE (   type)
Value:
declare_func(void, type *src_r, type *src_g, type *src_b, \
ptrdiff_t linesize_r, ptrdiff_t linesize_g, \
ptrdiff_t linesize_b, int width, int height); \
memset(src_r0, 0, BUFFER_SIZE * sizeof(type)); \
memset(src_g0, 0, BUFFER_SIZE * sizeof(type)); \
memset(src_b0, 0, BUFFER_SIZE * sizeof(type)); \
randomize_plane(src_b0, type); \
memcpy(src_r1, src_r0, BUFFER_SIZE * sizeof(type)); \
memcpy(src_g1, src_g0, BUFFER_SIZE * sizeof(type)); \
memcpy(src_b1, src_b0, BUFFER_SIZE * sizeof(type)); \
cmp_plane(src_r0, src_r1, sizeof(type)); \
cmp_plane(src_g0, src_g1, sizeof(type)); \
cmp_plane(src_b0, src_b1, sizeof(type)); \
#define BUFFER_SIZE
Definition: utvideodsp.c:31
GLint GLenum type
Definition: opengl_enc.c:104
#define height
#define declare_func(ret,...)
Definition: checkasm.h:117
#define width
#define WIDTH_PADDED
Definition: utvideodsp.c:30
#define cmp_plane(buf0, buf1, s)
Definition: utvideodsp.c:45
#define HEIGHT
Definition: utvideodsp.c:29
#define WIDTH
Definition: utvideodsp.c:28
#define call_ref(...)
Definition: checkasm.h:128
#define randomize_plane(buf, type)
Definition: utvideodsp.c:34
#define LOCAL_ALIGNED_32(t, v,...)
Definition: internal.h:137
#define bench_new(...)
Definition: checkasm.h:255
#define call_new(...)
Definition: checkasm.h:195

Definition at line 56 of file utvideodsp.c.

Referenced by check_restore_rgb_planes(), and check_restore_rgb_planes10().

Function Documentation

static void check_restore_rgb_planes ( void  )
static

Definition at line 82 of file utvideodsp.c.

Referenced by checkasm_check_utvideodsp().

static void check_restore_rgb_planes10 ( void  )
static

Definition at line 86 of file utvideodsp.c.

Referenced by checkasm_check_utvideodsp().

void checkasm_check_utvideodsp ( void  )

Definition at line 90 of file utvideodsp.c.