FFmpeg
Macros | Functions
mpegvideoencdsp.c File Reference
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/mathops.h"
#include "libavcodec/mpegvideoencdsp.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf, size)
 
#define randomize_buffer_clipped(buf, min, max)
 
#define NUM_LINES   4
 
#define MAX_LINE_SIZE   1920
 
#define EDGE_WIDTH   16
 
#define LINESIZE   (EDGE_WIDTH + MAX_LINE_SIZE + EDGE_WIDTH)
 
#define BUFSIZE   ((EDGE_WIDTH + NUM_LINES + EDGE_WIDTH) * LINESIZE)
 

Functions

static void check_add_8x8basis (MpegvideoEncDSPContext *c)
 
static void check_pix_sum (MpegvideoEncDSPContext *c)
 
static void check_pix_norm1 (MpegvideoEncDSPContext *c)
 
static void check_draw_edges (MpegvideoEncDSPContext *c)
 
void checkasm_check_mpegvideoencdsp (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers (   buf,
  size 
)
Value:
do { \
for (int j = 0; j < size; j += 4) \
AV_WN32((char*)buf + j, rnd()); \
} while (0)

Definition at line 28 of file mpegvideoencdsp.c.

◆ randomize_buffer_clipped

#define randomize_buffer_clipped (   buf,
  min,
  max 
)
Value:
do { \
for (size_t j = 0; j < FF_ARRAY_ELEMS(buf); ++j) \
buf[j] = rnd() % (max - min + 1) + min; \
} while (0)

Definition at line 34 of file mpegvideoencdsp.c.

◆ NUM_LINES

#define NUM_LINES   4

Definition at line 107 of file mpegvideoencdsp.c.

◆ MAX_LINE_SIZE

#define MAX_LINE_SIZE   1920

Definition at line 108 of file mpegvideoencdsp.c.

◆ EDGE_WIDTH

#define EDGE_WIDTH   16

Definition at line 109 of file mpegvideoencdsp.c.

◆ LINESIZE

#define LINESIZE   (EDGE_WIDTH + MAX_LINE_SIZE + EDGE_WIDTH)

Definition at line 110 of file mpegvideoencdsp.c.

◆ BUFSIZE

#define BUFSIZE   ((EDGE_WIDTH + NUM_LINES + EDGE_WIDTH) * LINESIZE)

Definition at line 111 of file mpegvideoencdsp.c.

Function Documentation

◆ check_add_8x8basis()

static void check_add_8x8basis ( MpegvideoEncDSPContext c)
static

Definition at line 40 of file mpegvideoencdsp.c.

Referenced by checkasm_check_mpegvideoencdsp().

◆ check_pix_sum()

static void check_pix_sum ( MpegvideoEncDSPContext c)
static

Definition at line 61 of file mpegvideoencdsp.c.

Referenced by checkasm_check_mpegvideoencdsp().

◆ check_pix_norm1()

static void check_pix_norm1 ( MpegvideoEncDSPContext c)
static

Definition at line 84 of file mpegvideoencdsp.c.

Referenced by checkasm_check_mpegvideoencdsp().

◆ check_draw_edges()

static void check_draw_edges ( MpegvideoEncDSPContext c)
static

Definition at line 113 of file mpegvideoencdsp.c.

Referenced by checkasm_check_mpegvideoencdsp().

◆ checkasm_check_mpegvideoencdsp()

void checkasm_check_mpegvideoencdsp ( void  )

Definition at line 160 of file mpegvideoencdsp.c.

max
#define max(a, b)
Definition: cuda_runtime.h:33
rnd
#define rnd()
Definition: checkasm.h:190
FF_ARRAY_ELEMS
#define FF_ARRAY_ELEMS(a)
Definition: sinewin_tablegen.c:29
AV_WN32
#define AV_WN32(p, v)
Definition: intreadwrite.h:372
size
int size
Definition: twinvq_data.h:10344
min
float min
Definition: vorbis_enc_data.h:429