FFmpeg
Macros | Functions | Variables
h264qpel.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/h264qpel.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define SIZEOF_PIXEL   ((bit_depth + 7) / 8)
 
#define BUF_SIZE   (2 * 16 * (16 + 3 + 4))
 
#define randomize_buffers()
 
#define src0   (buf0 + 3 * 2 * 16) /* h264qpel functions read data from negative src pointer offsets */
 
#define src1   (buf1 + 3 * 2 * 16)
 

Functions

void checkasm_check_h264qpel (void)
 

Variables

static const uint32_t pixel_mask [3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff }
 

Macro Definition Documentation

◆ SIZEOF_PIXEL

#define SIZEOF_PIXEL   ((bit_depth + 7) / 8)

Definition at line 30 of file h264qpel.c.

◆ BUF_SIZE

#define BUF_SIZE   (2 * 16 * (16 + 3 + 4))

Definition at line 31 of file h264qpel.c.

◆ randomize_buffers

#define randomize_buffers ( )
Value:
do { \
uint32_t mask = pixel_mask[bit_depth - 8]; \
int k; \
for (k = 0; k < BUF_SIZE; k += 4) { \
uint32_t r = rnd() & mask; \
AV_WN32A(buf0 + k, r); \
AV_WN32A(buf1 + k, r); \
r = rnd(); \
AV_WN32A(dst0 + k, r); \
AV_WN32A(dst1 + k, r); \
} \
} while (0)

Definition at line 33 of file h264qpel.c.

◆ src0

#define src0   (buf0 + 3 * 2 * 16) /* h264qpel functions read data from negative src pointer offsets */

Definition at line 47 of file h264qpel.c.

◆ src1

#define src1   (buf1 + 3 * 2 * 16)

Definition at line 48 of file h264qpel.c.

Function Documentation

◆ checkasm_check_h264qpel()

void checkasm_check_h264qpel ( void  )

Definition at line 50 of file h264qpel.c.

Variable Documentation

◆ pixel_mask

const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff }
static

Definition at line 28 of file h264qpel.c.

bit_depth
static void bit_depth(AudioStatsContext *s, uint64_t mask, uint64_t imask, AVRational *depth)
Definition: af_astats.c:254
r
const char * r
Definition: vf_curves.c:114
pixel_mask
static const uint32_t pixel_mask[3]
Definition: h264qpel.c:28
BUF_SIZE
#define BUF_SIZE
Definition: h264qpel.c:31
rnd
#define rnd()
Definition: checkasm.h:107
mask
static const uint16_t mask[17]
Definition: lzw.c:38