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

Go to the source code of this file.

Macros

#define randomize_buffers(buf, size)
 
#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_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(buf + j, rnd()); \
} while (0)

Definition at line 27 of file mpegvideoencdsp.c.

◆ NUM_LINES

#define NUM_LINES   4

Definition at line 79 of file mpegvideoencdsp.c.

◆ MAX_LINE_SIZE

#define MAX_LINE_SIZE   1920

Definition at line 80 of file mpegvideoencdsp.c.

◆ EDGE_WIDTH

#define EDGE_WIDTH   16

Definition at line 81 of file mpegvideoencdsp.c.

◆ LINESIZE

#define LINESIZE   (EDGE_WIDTH + MAX_LINE_SIZE + EDGE_WIDTH)

Definition at line 82 of file mpegvideoencdsp.c.

◆ BUFSIZE

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

Definition at line 83 of file mpegvideoencdsp.c.

Function Documentation

◆ check_pix_sum()

static void check_pix_sum ( MpegvideoEncDSPContext c)
static

Definition at line 33 of file mpegvideoencdsp.c.

Referenced by checkasm_check_mpegvideoencdsp().

◆ check_pix_norm1()

static void check_pix_norm1 ( MpegvideoEncDSPContext c)
static

Definition at line 56 of file mpegvideoencdsp.c.

Referenced by checkasm_check_mpegvideoencdsp().

◆ check_draw_edges()

static void check_draw_edges ( MpegvideoEncDSPContext c)
static

Definition at line 85 of file mpegvideoencdsp.c.

Referenced by checkasm_check_mpegvideoencdsp().

◆ checkasm_check_mpegvideoencdsp()

void checkasm_check_mpegvideoencdsp ( void  )

Definition at line 132 of file mpegvideoencdsp.c.

rnd
#define rnd()
Definition: checkasm.h:172
AV_WN32
#define AV_WN32(p, v)
Definition: intreadwrite.h:372
size
int size
Definition: twinvq_data.h:10344