FFmpeg
Loading...
Searching...
No Matches
pred.c File Reference
#include "hevcdec.h"
#include "pred.h"
#include "libavcodec/hevc/pred_template.c"

Go to the source code of this file.

Macros

#define BIT_DEPTH   8
 
#define BIT_DEPTH   9
 
#define BIT_DEPTH   10
 
#define BIT_DEPTH   12
 
#define FUNC(a, depth)
 
#define HEVC_PRED(depth)
 

Functions

void ff_hevc_pred_init (HEVCPredContext *hpc, int bit_depth)
 

Macro Definition Documentation

◆ BIT_DEPTH [1/4]

#define BIT_DEPTH   8

Definition at line 27 of file pred.c.

◆ BIT_DEPTH [2/4]

#define BIT_DEPTH   9

Definition at line 27 of file pred.c.

◆ BIT_DEPTH [3/4]

#define BIT_DEPTH   10

Definition at line 27 of file pred.c.

◆ BIT_DEPTH [4/4]

#define BIT_DEPTH   12

Definition at line 27 of file pred.c.

◆ FUNC

#define FUNC ( a,
depth )
Value:
a ## _ ## depth
#define _
int a

◆ HEVC_PRED

#define HEVC_PRED ( depth)
Value:
hpc->intra_pred[0] = FUNC(intra_pred_2, depth); \
hpc->intra_pred[1] = FUNC(intra_pred_3, depth); \
hpc->intra_pred[2] = FUNC(intra_pred_4, depth); \
hpc->intra_pred[3] = FUNC(intra_pred_5, depth); \
hpc->pred_planar[0] = FUNC(pred_planar_0, depth); \
hpc->pred_planar[1] = FUNC(pred_planar_1, depth); \
hpc->pred_planar[2] = FUNC(pred_planar_2, depth); \
hpc->pred_planar[3] = FUNC(pred_planar_3, depth); \
hpc->pred_dc = FUNC(pred_dc, depth); \
hpc->pred_angular[0] = FUNC(ff_hevc_pred_angular_0, depth); \
hpc->pred_angular[1] = FUNC(ff_hevc_pred_angular_1, depth); \
hpc->pred_angular[2] = FUNC(ff_hevc_pred_angular_2, depth); \
hpc->pred_angular[3] = FUNC(ff_hevc_pred_angular_3, depth); \
hpc->ref_filter_3tap[0] = FUNC(ref_filter_3tap, depth); \
hpc->ref_filter_3tap[1] = FUNC(ref_filter_3tap, depth); \
hpc->ref_filter_3tap[2] = FUNC(ref_filter_3tap, depth); \
hpc->ref_filter_strong = FUNC(ref_filter_strong, depth);
#define FUNC(a)
void FUNC ff_hevc_pred_angular_3(uint8_t *src, const uint8_t *top, const uint8_t *left, ptrdiff_t stride, int c_idx, int mode)
void FUNC ff_hevc_pred_angular_1(uint8_t *src, const uint8_t *top, const uint8_t *left, ptrdiff_t stride, int c_idx, int mode)
static void FUNC pred_dc(uint8_t *_src, const uint8_t *_top, const uint8_t *_left, ptrdiff_t stride, int log2_size, int c_idx)
static void FUNC ref_filter_strong(uint8_t *filtered_top, uint8_t *left, const uint8_t *top)
static void FUNC ref_filter_3tap(uint8_t *filtered_left, uint8_t *filtered_top, const uint8_t *left, const uint8_t *top, int size)
void FUNC ff_hevc_pred_angular_2(uint8_t *src, const uint8_t *top, const uint8_t *left, ptrdiff_t stride, int c_idx, int mode)
void FUNC ff_hevc_pred_angular_0(uint8_t *src, const uint8_t *top, const uint8_t *left, ptrdiff_t stride, int c_idx, int mode)

Referenced by ff_hevc_pred_init().

Function Documentation

◆ ff_hevc_pred_init()

void ff_hevc_pred_init ( HEVCPredContext * hpc,
int bit_depth )

Definition at line 43 of file pred.c.

Referenced by checkasm_check_hevc_pred(), and set_sps().