FFmpeg
Loading...
Searching...
No Matches
mpeg4videodsp.c File Reference
#include <assert.h>
#include <string.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)
#define rnd
Definition checkasm.h:136
#define r
Definition input.c:42

Definition at line 38 of file mpeg4videodsp.c.

Referenced by checkasm_check_gmc().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_WIDTH 
MAX_HEIGHT 
MAX_STRIDE 
MAX_BLOCK_HEIGHT 

Definition at line 28 of file mpeg4videodsp.c.

Function Documentation

◆ get_signed_rnd()

static int get_signed_rnd ( int nb_bits)
static

Definition at line 47 of file mpeg4videodsp.c.

Referenced by get_mv_delta().

◆ get_mv_delta()

static int get_mv_delta ( int shift,
int is_diag )
static

Definition at line 53 of file mpeg4videodsp.c.

Referenced by checkasm_check_gmc().

◆ modify_fpel()

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

Definition at line 64 of file mpeg4videodsp.c.

Referenced by checkasm_check_gmc().

◆ checkasm_check_gmc()

static void checkasm_check_gmc ( const Mpeg4VideoDSPContext *const mdsp)
static

Definition at line 77 of file mpeg4videodsp.c.

Referenced by checkasm_check_mpeg4videodsp().

◆ checkasm_check_mpeg4videodsp()

void checkasm_check_mpeg4videodsp ( void )

Definition at line 147 of file mpeg4videodsp.c.