FFmpeg
Data Structures | Macros | Functions
idctdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/idctdsp.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Data Structures

struct  test
 

Macros

#define IDCTDSP_TEST(func)   { #func, offsetof(IDCTDSPContext, func) },
 
#define RANDOMIZE_BUFFER16(name, size)
 
#define RANDOMIZE_BUFFER8(name, size)
 

Functions

static void check_add_put_clamped (void)
 
void checkasm_check_idctdsp (void)
 

Macro Definition Documentation

◆ IDCTDSP_TEST

#define IDCTDSP_TEST (   func)    { #func, offsetof(IDCTDSPContext, func) },

Definition at line 33 of file idctdsp.c.

◆ RANDOMIZE_BUFFER16

#define RANDOMIZE_BUFFER16 (   name,
  size 
)
Value:
do { \
int i; \
for (i = 0; i < size; ++i) { \
uint16_t r = rnd() % 0x201 - 0x100; \
AV_WN16A(name##0 + i, r); \
AV_WN16A(name##1 + i, r); \
} \
} while (0)

Definition at line 40 of file idctdsp.c.

◆ RANDOMIZE_BUFFER8

#define RANDOMIZE_BUFFER8 (   name,
  size 
)
Value:
do { \
int i; \
for (i = 0; i < size; ++i) { \
uint8_t r = rnd(); \
name##0[i] = r; \
name##1[i] = r; \
} \
} while (0)

Definition at line 50 of file idctdsp.c.

Function Documentation

◆ check_add_put_clamped()

static void check_add_put_clamped ( void  )
static

Definition at line 60 of file idctdsp.c.

Referenced by checkasm_check_idctdsp().

◆ checkasm_check_idctdsp()

void checkasm_check_idctdsp ( void  )

Definition at line 95 of file idctdsp.c.

name
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 default minimum maximum flags name is the option name
Definition: writing_filters.txt:88
r
const char * r
Definition: vf_curves.c:127
rnd
#define rnd()
Definition: checkasm.h:172
size
int size
Definition: twinvq_data.h:10344
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256