digiKam
contextmodel.h File Reference

Go to the source code of this file.

Classes

struct  context_model
 
class  context_model_table
 

Enumerations

enum  context_model_index {
  CONTEXT_MODEL_SAO_MERGE_FLAG = 0 , CONTEXT_MODEL_SAO_TYPE_IDX = CONTEXT_MODEL_SAO_MERGE_FLAG +1 , CONTEXT_MODEL_SPLIT_CU_FLAG = CONTEXT_MODEL_SAO_TYPE_IDX + 1 , CONTEXT_MODEL_CU_SKIP_FLAG = CONTEXT_MODEL_SPLIT_CU_FLAG + 3 ,
  CONTEXT_MODEL_PART_MODE = CONTEXT_MODEL_CU_SKIP_FLAG + 3 , CONTEXT_MODEL_PREV_INTRA_LUMA_PRED_FLAG = CONTEXT_MODEL_PART_MODE + 4 , CONTEXT_MODEL_INTRA_CHROMA_PRED_MODE = CONTEXT_MODEL_PREV_INTRA_LUMA_PRED_FLAG + 1 , CONTEXT_MODEL_CBF_LUMA = CONTEXT_MODEL_INTRA_CHROMA_PRED_MODE + 1 ,
  CONTEXT_MODEL_CBF_CHROMA = CONTEXT_MODEL_CBF_LUMA + 2 , CONTEXT_MODEL_SPLIT_TRANSFORM_FLAG = CONTEXT_MODEL_CBF_CHROMA + 4 , CONTEXT_MODEL_CU_CHROMA_QP_OFFSET_FLAG = CONTEXT_MODEL_SPLIT_TRANSFORM_FLAG + 3 , CONTEXT_MODEL_CU_CHROMA_QP_OFFSET_IDX = CONTEXT_MODEL_CU_CHROMA_QP_OFFSET_FLAG + 1 ,
  CONTEXT_MODEL_LAST_SIGNIFICANT_COEFFICIENT_X_PREFIX = CONTEXT_MODEL_CU_CHROMA_QP_OFFSET_IDX + 1 , CONTEXT_MODEL_LAST_SIGNIFICANT_COEFFICIENT_Y_PREFIX = CONTEXT_MODEL_LAST_SIGNIFICANT_COEFFICIENT_X_PREFIX + 18 , CONTEXT_MODEL_CODED_SUB_BLOCK_FLAG = CONTEXT_MODEL_LAST_SIGNIFICANT_COEFFICIENT_Y_PREFIX + 18 , CONTEXT_MODEL_SIGNIFICANT_COEFF_FLAG = CONTEXT_MODEL_CODED_SUB_BLOCK_FLAG + 4 ,
  CONTEXT_MODEL_COEFF_ABS_LEVEL_GREATER1_FLAG = CONTEXT_MODEL_SIGNIFICANT_COEFF_FLAG + 42+2 , CONTEXT_MODEL_COEFF_ABS_LEVEL_GREATER2_FLAG = CONTEXT_MODEL_COEFF_ABS_LEVEL_GREATER1_FLAG + 24 , CONTEXT_MODEL_CU_QP_DELTA_ABS = CONTEXT_MODEL_COEFF_ABS_LEVEL_GREATER2_FLAG + 6 , CONTEXT_MODEL_TRANSFORM_SKIP_FLAG = CONTEXT_MODEL_CU_QP_DELTA_ABS + 2 ,
  CONTEXT_MODEL_RDPCM_FLAG = CONTEXT_MODEL_TRANSFORM_SKIP_FLAG + 2 , CONTEXT_MODEL_RDPCM_DIR = CONTEXT_MODEL_RDPCM_FLAG + 2 , CONTEXT_MODEL_MERGE_FLAG = CONTEXT_MODEL_RDPCM_DIR + 2 , CONTEXT_MODEL_MERGE_IDX = CONTEXT_MODEL_MERGE_FLAG + 1 ,
  CONTEXT_MODEL_PRED_MODE_FLAG = CONTEXT_MODEL_MERGE_IDX + 1 , CONTEXT_MODEL_ABS_MVD_GREATER01_FLAG = CONTEXT_MODEL_PRED_MODE_FLAG + 1 , CONTEXT_MODEL_MVP_LX_FLAG = CONTEXT_MODEL_ABS_MVD_GREATER01_FLAG + 2 , CONTEXT_MODEL_RQT_ROOT_CBF = CONTEXT_MODEL_MVP_LX_FLAG + 1 ,
  CONTEXT_MODEL_REF_IDX_LX = CONTEXT_MODEL_RQT_ROOT_CBF + 1 , CONTEXT_MODEL_INTER_PRED_IDC = CONTEXT_MODEL_REF_IDX_LX + 2 , CONTEXT_MODEL_CU_TRANSQUANT_BYPASS_FLAG = CONTEXT_MODEL_INTER_PRED_IDC + 5 , CONTEXT_MODEL_LOG2_RES_SCALE_ABS_PLUS1 = CONTEXT_MODEL_CU_TRANSQUANT_BYPASS_FLAG + 1 ,
  CONTEXT_MODEL_RES_SCALE_SIGN_FLAG = CONTEXT_MODEL_LOG2_RES_SCALE_ABS_PLUS1 + 8 , CONTEXT_MODEL_TABLE_LENGTH = CONTEXT_MODEL_RES_SCALE_SIGN_FLAG + 2
}
 

Functions

void initialize_CABAC_models (context_model context_model_table[CONTEXT_MODEL_TABLE_LENGTH], int initType, int QPY)
 

Enumeration Type Documentation

◆ context_model_index

Enumerator
CONTEXT_MODEL_SAO_MERGE_FLAG 
CONTEXT_MODEL_SAO_TYPE_IDX 
CONTEXT_MODEL_SPLIT_CU_FLAG 
CONTEXT_MODEL_CU_SKIP_FLAG 
CONTEXT_MODEL_PART_MODE 
CONTEXT_MODEL_PREV_INTRA_LUMA_PRED_FLAG 
CONTEXT_MODEL_INTRA_CHROMA_PRED_MODE 
CONTEXT_MODEL_CBF_LUMA 
CONTEXT_MODEL_CBF_CHROMA 
CONTEXT_MODEL_SPLIT_TRANSFORM_FLAG 
CONTEXT_MODEL_CU_CHROMA_QP_OFFSET_FLAG 
CONTEXT_MODEL_CU_CHROMA_QP_OFFSET_IDX 
CONTEXT_MODEL_LAST_SIGNIFICANT_COEFFICIENT_X_PREFIX 
CONTEXT_MODEL_LAST_SIGNIFICANT_COEFFICIENT_Y_PREFIX 
CONTEXT_MODEL_CODED_SUB_BLOCK_FLAG 
CONTEXT_MODEL_SIGNIFICANT_COEFF_FLAG 
CONTEXT_MODEL_COEFF_ABS_LEVEL_GREATER1_FLAG 
CONTEXT_MODEL_COEFF_ABS_LEVEL_GREATER2_FLAG 
CONTEXT_MODEL_CU_QP_DELTA_ABS 
CONTEXT_MODEL_TRANSFORM_SKIP_FLAG 
CONTEXT_MODEL_RDPCM_FLAG 
CONTEXT_MODEL_RDPCM_DIR 
CONTEXT_MODEL_MERGE_FLAG 
CONTEXT_MODEL_MERGE_IDX 
CONTEXT_MODEL_PRED_MODE_FLAG 
CONTEXT_MODEL_ABS_MVD_GREATER01_FLAG 
CONTEXT_MODEL_MVP_LX_FLAG 
CONTEXT_MODEL_RQT_ROOT_CBF 
CONTEXT_MODEL_REF_IDX_LX 
CONTEXT_MODEL_INTER_PRED_IDC 
CONTEXT_MODEL_CU_TRANSQUANT_BYPASS_FLAG 
CONTEXT_MODEL_LOG2_RES_SCALE_ABS_PLUS1 
CONTEXT_MODEL_RES_SCALE_SIGN_FLAG 
CONTEXT_MODEL_TABLE_LENGTH 

Function Documentation

◆ initialize_CABAC_models()

void initialize_CABAC_models ( context_model  context_model_table[CONTEXT_MODEL_TABLE_LENGTH],
int  initType,
int  QPY 
)