FFmpeg
Macros | Functions
vvc_intra_utils.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include "libavutil/avassert.h"
#include "libavutil/macros.h"
#include "libavutil/common.h"
#include "vvc_ctu.h"
#include "vvc_intra.h"
#include "vvc_ps.h"
#include "vvcdec.h"

Go to the source code of this file.

Macros

#define ROUND(f)   (int)(f < 0 ? -(-f + 0.5) : (f + 0.5))
 

Functions

int ff_vvc_get_mip_size_id (const int w, const int h)
 
int ff_vvc_nscale_derive (const int w, const int h, const int mode)
 
int ff_vvc_need_pdpc (const int w, const int h, const uint8_t bdpcm_flag, const int mode, const int ref_idx)
 
static const ReconstructedAreaget_reconstructed_area (const VVCLocalContext *lc, const int x, const int y, const int c_idx)
 
int ff_vvc_get_top_available (const VVCLocalContext *lc, const int x, const int y, int target_size, const int c_idx)
 
int ff_vvc_get_left_available (const VVCLocalContext *lc, const int x, const int y, int target_size, const int c_idx)
 
static int less (const void *a, const void *b)
 
int ff_vvc_ref_filter_flag_derive (const int mode)
 
int ff_vvc_intra_pred_angle_derive (const int pred_mode)
 
int ff_vvc_intra_inv_angle_derive (const int intra_pred_angle)
 
int ff_vvc_wide_angle_mode_mapping (const CodingUnit *cu, const int tb_width, const int tb_height, const int c_idx, int pred_mode_intra)
 

Macro Definition Documentation

◆ ROUND

#define ROUND (   f)    (int)(f < 0 ? -(-f + 0.5) : (f + 0.5))

Definition at line 187 of file vvc_intra_utils.c.

Function Documentation

◆ ff_vvc_get_mip_size_id()

int ff_vvc_get_mip_size_id ( const int  w,
const int  h 
)

Definition at line 33 of file vvc_intra_utils.c.

Referenced by pred_mip().

◆ ff_vvc_nscale_derive()

int ff_vvc_nscale_derive ( const int  w,
const int  h,
const int  mode 
)

Definition at line 42 of file vvc_intra_utils.c.

Referenced by ff_vvc_need_pdpc(), pred_angular_h(), and pred_angular_v().

◆ ff_vvc_need_pdpc()

int ff_vvc_need_pdpc ( const int  w,
const int  h,
const uint8_t  bdpcm_flag,
const int  mode,
const int  ref_idx 
)

Definition at line 61 of file vvc_intra_utils.c.

Referenced by intra_pred().

◆ get_reconstructed_area()

static const ReconstructedArea* get_reconstructed_area ( const VVCLocalContext lc,
const int  x,
const int  y,
const int  c_idx 
)
static

Definition at line 78 of file vvc_intra_utils.c.

Referenced by ff_vvc_get_left_available(), and ff_vvc_get_top_available().

◆ ff_vvc_get_top_available()

int ff_vvc_get_top_available ( const VVCLocalContext lc,
const int  x,
const int  y,
int  target_size,
const int  c_idx 
)

◆ ff_vvc_get_left_available()

int ff_vvc_get_left_available ( const VVCLocalContext lc,
const int  x,
const int  y,
int  target_size,
const int  c_idx 
)

◆ less()

static int less ( const void *  a,
const void *  b 
)
static

Definition at line 154 of file vvc_intra_utils.c.

Referenced by ff_vvc_ref_filter_flag_derive().

◆ ff_vvc_ref_filter_flag_derive()

int ff_vvc_ref_filter_flag_derive ( const int  mode)

Definition at line 159 of file vvc_intra_utils.c.

Referenced by prepare_intra_edge_params().

◆ ff_vvc_intra_pred_angle_derive()

int ff_vvc_intra_pred_angle_derive ( const int  pred_mode)

◆ ff_vvc_intra_inv_angle_derive()

int ff_vvc_intra_inv_angle_derive ( const int  intra_pred_angle)

◆ ff_vvc_wide_angle_mode_mapping()

int ff_vvc_wide_angle_mode_mapping ( const CodingUnit cu,
const int  tb_width,
const int  tb_height,
const int  c_idx,
int  pred_mode_intra 
)

Definition at line 197 of file vvc_intra_utils.c.

Referenced by derive_ilfnst_pred_mode_intra(), and intra_pred().