FFmpeg
Loading...
Searching...
No Matches
hevc_pred.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/hevc/pred.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 PRED_SIZE   128 /* Increased to 4 * MAX_TB_SIZE to accommodate C code reads */
 
#define randomize_ref_buffers()
 

Functions

static void check_pred_dc (HEVCPredContext *h, uint8_t *top, uint8_t *left, int bit_depth)
 
static void check_pred_planar (HEVCPredContext *h, uint8_t *top, uint8_t *left, int bit_depth)
 
static void check_pred_angular (HEVCPredContext *h, uint8_t *top, uint8_t *left, int bit_depth)
 
static void check_ref_filter_3tap (HEVCPredContext *h, uint8_t *top, uint8_t *left, int bit_depth)
 
static void check_ref_filter_strong (HEVCPredContext *h, uint8_t *top, uint8_t *left, int bit_depth)
 
void checkasm_check_hevc_pred (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 29 of file hevc_pred.c.

◆ PRED_SIZE

#define PRED_SIZE   128 /* Increased to 4 * MAX_TB_SIZE to accommodate C code reads */

◆ randomize_ref_buffers

#define randomize_ref_buffers ( )
Value:
do { \
uint32_t mask = pixel_mask[bit_depth - 8]; \
for (int i = -4; i < PRED_SIZE; i += 4) { \
uint32_t r = rnd() & mask; \
AV_WN32A(top + i, r); \
AV_WN32A(left + i, r); \
} \
} while (0)
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
Definition af_astats.c:246
static int BS_FUNC left(const BSCTX *bc)
Return the number of the bits left in a buffer.
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define rnd
Definition checkasm.h:136
#define PRED_SIZE
Definition hevc_pred.c:30
#define r
Definition input.c:42
static const uint16_t mask[17]
Definition lzw.c:38
static const uint32_t pixel_mask[5]
Definition h264dsp.c:31

Definition at line 32 of file hevc_pred.c.

Referenced by check_pred_angular(), check_pred_dc(), check_pred_planar(), check_ref_filter_3tap(), and check_ref_filter_strong().

Function Documentation

◆ check_pred_dc()

static void check_pred_dc ( HEVCPredContext * h,
uint8_t * top,
uint8_t * left,
int bit_depth )
static

Definition at line 42 of file hevc_pred.c.

Referenced by checkasm_check_hevc_pred().

◆ check_pred_planar()

static void check_pred_planar ( HEVCPredContext * h,
uint8_t * top,
uint8_t * left,
int bit_depth )
static

Definition at line 87 of file hevc_pred.c.

Referenced by checkasm_check_hevc_pred().

◆ check_pred_angular()

static void check_pred_angular ( HEVCPredContext * h,
uint8_t * top,
uint8_t * left,
int bit_depth )
static

Definition at line 132 of file hevc_pred.c.

Referenced by checkasm_check_hevc_pred().

◆ check_ref_filter_3tap()

static void check_ref_filter_3tap ( HEVCPredContext * h,
uint8_t * top,
uint8_t * left,
int bit_depth )
static

Definition at line 199 of file hevc_pred.c.

Referenced by checkasm_check_hevc_pred().

◆ check_ref_filter_strong()

static void check_ref_filter_strong ( HEVCPredContext * h,
uint8_t * top,
uint8_t * left,
int bit_depth )
static

Definition at line 254 of file hevc_pred.c.

Referenced by checkasm_check_hevc_pred().

◆ checkasm_check_hevc_pred()

void checkasm_check_hevc_pred ( void )

Definition at line 302 of file hevc_pred.c.

Variable Documentation

◆ pixel_mask

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

Definition at line 27 of file hevc_pred.c.