TUT HEVC Encoder
Data Structures | Functions
inter.h File Reference

Inter prediction. More...

#include "cu.h"
#include "encoderstate.h"
#include "global.h"
#include "image.h"
#include "kvazaar.h"
Include dependency graph for inter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  inter_merge_cand_t
 

Functions

void kvz_inter_recon_cu (const encoder_state_t *const state, lcu_t *lcu, int32_t x, int32_t y, int32_t width, bool predict_luma, bool predict_chroma)
 Reconstruct a single CU. More...
 
void kvz_inter_pred_pu (const encoder_state_t *const state, lcu_t *lcu, int32_t x, int32_t y, int32_t width, bool predict_luma, bool predict_chroma, int i_pu)
 Predict a single PU. More...
 
void kvz_inter_recon_bipred (const encoder_state_t *const state, const kvz_picture *ref1, const kvz_picture *ref2, int32_t xpos, int32_t ypos, int32_t width, int32_t height, int16_t mv_param[2][2], lcu_t *lcu, bool predict_luma, bool predict_chroma)
 Reconstruct bi-pred inter PU. More...
 
void kvz_inter_get_mv_cand (const encoder_state_t *const state, int32_t x, int32_t y, int32_t width, int32_t height, int16_t mv_cand[2][2], const cu_info_t *cur_cu, lcu_t *lcu, int8_t reflist)
 Get MV prediction for current block. More...
 
void kvz_inter_get_mv_cand_cua (const encoder_state_t *const state, int32_t x, int32_t y, int32_t width, int32_t height, int16_t mv_cand[2][2], const cu_info_t *cur_cu, int8_t reflist)
 Get MV prediction for current block using state->tile->frame->cu_array. More...
 
uint8_t kvz_inter_get_merge_cand (const encoder_state_t *const state, int32_t x, int32_t y, int32_t width, int32_t height, bool use_a1, bool use_b1, inter_merge_cand_t mv_cand[5], lcu_t *lcu)
 Get merge predictions for current block. More...
 

Function Documentation

◆ kvz_inter_get_merge_cand()

uint8_t kvz_inter_get_merge_cand ( const encoder_state_t *const  state,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
bool  use_a1,
bool  use_b1,
inter_merge_cand_t  mv_cand[5],
lcu_t lcu 
)
Parameters
statethe encoder state
xblock x position in SCU
yblock y position in SCU
widthblock width
heightblock height
use_a1true, if candidate a1 can be used
use_b1true, if candidate b1 can be used
mv_candReturns the merge candidates.
lculcu containing the block
Returns
number of merge candidates
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_inter_get_mv_cand()

void kvz_inter_get_mv_cand ( const encoder_state_t *const  state,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
int16_t  mv_cand[2][2],
const cu_info_t *const  cur_cu,
lcu_t lcu,
int8_t  reflist 
)
Parameters
stateencoder state
xblock x position in pixels
yblock y position in pixels
widthblock width in pixels
heightblock height in pixels
mv_candReturn the motion vector candidates.
cur_cucurrent CU
lcucurrent LCU
reflistreflist index (either 0 or 1)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_inter_get_mv_cand_cua()

void kvz_inter_get_mv_cand_cua ( const encoder_state_t *const  state,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
int16_t  mv_cand[2][2],
const cu_info_t cur_cu,
int8_t  reflist 
)
Parameters
stateencoder state
xblock x position in pixels
yblock y position in pixels
widthblock width in pixels
heightblock height in pixels
mv_candReturn the motion vector candidates.
cur_cucurrent CU
reflistreflist index (either 0 or 1)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_inter_pred_pu()

void kvz_inter_pred_pu ( const encoder_state_t *const  state,
lcu_t lcu,
int32_t  x,
int32_t  y,
int32_t  width,
bool  predict_luma,
bool  predict_chroma,
int  i_pu 
)

The PU may use either uniprediction or biprediction.

Parameters
stateencoder state
lcucontaining LCU
xx-coordinate of the CU in pixels
yy-coordinate of the CU in pixels
widthCU width
predict_lumaEnable or disable luma prediction for this call.
predict_chromaEnable or disable chroma prediction for this call.
i_puIndex of the PU. Always zero for 2Nx2N. Used for SMP+AMP.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_inter_recon_bipred()

void kvz_inter_recon_bipred ( const encoder_state_t *const  state,
const kvz_picture ref1,
const kvz_picture ref2,
int32_t  pu_x,
int32_t  pu_y,
int32_t  pu_w,
int32_t  pu_h,
int16_t  mv_param[2][2],
lcu_t lcu,
bool  predict_luma,
bool  predict_chroma 
)
Parameters
stateencoder state
ref1reference picture to copy the data from
ref2other reference picture to copy the data from
pu_xPU x position
pu_yPU y position
widthPU width
heightPU height
mv_parammotion vectors
lcudestination lcu
predict_lumaEnable or disable luma prediction for this call.
predict_chromaEnable or disable chroma prediction for this call.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_inter_recon_cu()

void kvz_inter_recon_cu ( const encoder_state_t *const  state,
lcu_t lcu,
int32_t  x,
int32_t  y,
int32_t  width,
bool  predict_luma,
bool  predict_chroma 
)

The CU may consist of multiple PUs, each of which can use either uniprediction or biprediction.

Parameters
stateencoder state
lcucontaining LCU
xx-coordinate of the CU in pixels
yy-coordinate of the CU in pixels
widthCU width
predict_lumaEnable or disable luma prediction for this call.
predict_chromaEnable or disable chroma prediction for this call.
Here is the call graph for this function:
Here is the caller graph for this function: