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"
#include "libavutil/mem_internal.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 31 of file h264qpel.c.

◆ BUF_SIZE

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

Definition at line 32 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 34 of file h264qpel.c.

◆ src0

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

Definition at line 48 of file h264qpel.c.

◆ src1

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

Definition at line 49 of file h264qpel.c.

Function Documentation

◆ checkasm_check_h264qpel()

void checkasm_check_h264qpel ( void  )

Definition at line 51 of file h264qpel.c.

Variable Documentation

◆ pixel_mask

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

Definition at line 29 of file h264qpel.c.

r
const char * r
Definition: vf_curves.c:127
pixel_mask
static const uint32_t pixel_mask[3]
Definition: h264qpel.c:29
mask
int mask
Definition: mediacodecdec_common.c:154
BUF_SIZE
#define BUF_SIZE
Definition: h264qpel.c:32
bit_depth
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
Definition: af_astats.c:246
rnd
#define rnd()
Definition: checkasm.h:173