FFmpeg
Macros | Enumerations | Functions
mpeg4videodsp.c File Reference
#include <assert.h>
#include "checkasm.h"
#include "libavcodec/mpeg4videodsp.h"
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Macros

#define randomize_buffer(buf)
 

Enumerations

enum  {
  MAX_WIDTH = 1024, MAX_HEIGHT = 64, MAX_STRIDE = MAX_WIDTH, MAX_BLOCK_HEIGHT = 16,
  W = 8
}
 

Functions

static int get_signed_rnd (int nb_bits)
 
static int get_mv_delta (int shift, int is_diag)
 
static int modify_fpel (int coordinate, int size, int block_size, int type)
 
static void checkasm_check_gmc (const Mpeg4VideoDSPContext *const mdsp)
 
void checkasm_check_mpeg4videodsp (void)
 

Macro Definition Documentation

◆ randomize_buffer

#define randomize_buffer (   buf)
Value:
do { \
static_assert(!(sizeof(buf) % 4), "Tail handling needed"); \
for (size_t k = 0; k < sizeof(buf); k += 4) { \
uint32_t r = rnd(); \
AV_WN32A(buf + k, r); \
} \
} while (0)

Definition at line 37 of file mpeg4videodsp.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_WIDTH 
MAX_HEIGHT 
MAX_STRIDE 
MAX_BLOCK_HEIGHT 

Definition at line 27 of file mpeg4videodsp.c.

Function Documentation

◆ get_signed_rnd()

static int get_signed_rnd ( int  nb_bits)
static

Definition at line 46 of file mpeg4videodsp.c.

◆ get_mv_delta()

static int get_mv_delta ( int  shift,
int  is_diag 
)
static

Definition at line 52 of file mpeg4videodsp.c.

◆ modify_fpel()

static int modify_fpel ( int  coordinate,
int  size,
int  block_size,
int  type 
)
static

Definition at line 63 of file mpeg4videodsp.c.

◆ checkasm_check_gmc()

static void checkasm_check_gmc ( const Mpeg4VideoDSPContext *const  mdsp)
static

Definition at line 76 of file mpeg4videodsp.c.

◆ checkasm_check_mpeg4videodsp()

void checkasm_check_mpeg4videodsp ( void  )

Definition at line 146 of file mpeg4videodsp.c.

r
const char * r
Definition: vf_curves.c:127
rnd
#define rnd()
Definition: checkasm.h:204