#include "global.h"
#include "mbuffer.h"
#include "mb_access.h"
#include "macroblock.h"
#include "errdo.h"
#include "block.h"
#include "errdo_mc_prediction.h"
Go to the source code of this file.
Functions | |
static void | mc_prediction (imgpel **mb_pred, int ver_block_size, int hor_block_size, int ioff, imgpel block[MB_BLOCK_SIZE][MB_BLOCK_SIZE]) |
static void | weighted_mc_prediction (imgpel **mb_pred, int ver_block_size, int hor_block_size, int ioff, imgpel block[MB_BLOCK_SIZE][MB_BLOCK_SIZE], int wp_scale, int wp_offset, int weight_denom, int color_clip) |
static void | bi_prediction (imgpel **mb_pred, imgpel block_l0[MB_BLOCK_SIZE][MB_BLOCK_SIZE], imgpel block_l1[MB_BLOCK_SIZE][MB_BLOCK_SIZE], int ver_block_size, int hor_block_size, int ioff) |
static void | weighted_bi_prediction (imgpel **mb_pred, imgpel block_l0[MB_BLOCK_SIZE][MB_BLOCK_SIZE], imgpel block_l1[MB_BLOCK_SIZE][MB_BLOCK_SIZE], int ver_block_size, int hor_block_size, int ioff, int wp_scale_l0, int wp_scale_l1, int wp_offset, int weight_denom, int color_clip) |
void | get_block_luma (Macroblock *currMB, int decoder, ColorPlane pl, StorablePicture *dec_picture, StorablePicture *curr_ref, int x_pos, int y_pos, int hor_block_size, int ver_block_size, imgpel block[MB_BLOCK_SIZE][MB_BLOCK_SIZE]) |
void | get_block_chroma (Macroblock *currMB, int decoder, int uv, StorablePicture *dec_picture, StorablePicture *curr_ref, int x_pos, int y_pos, int hor_block_size, int ver_block_size, imgpel block[MB_BLOCK_SIZE][MB_BLOCK_SIZE]) |
void | perform_mc (Macroblock *currMB, int decoder, ColorPlane pl, StorablePicture *dec_picture, int pred_dir, int l0_mode, int l1_mode, char ***ref_idx_buf, int i, int j, int block_size_x, int block_size_y, short bipred_me) |
void | perform_mc_concealment (Macroblock *currMB, int decoder, ColorPlane pl, StorablePicture *dec_picture, int pred_dir, int l0_mode, int l1_mode, char ***ref_idx_buf, int i, int j, int block_size_x, int block_size_y) |
Variables | |
static const int | COEF [6] = { 1, -5, 20, 20, -5, 1 } |
Definition in file errdo_mc_prediction.c.
static void bi_prediction | ( | imgpel ** | mb_pred, | |
imgpel | block_l0[MB_BLOCK_SIZE][MB_BLOCK_SIZE], | |||
imgpel | block_l1[MB_BLOCK_SIZE][MB_BLOCK_SIZE], | |||
int | ver_block_size, | |||
int | hor_block_size, | |||
int | ioff | |||
) | [inline, static] |
block biprediction
Definition at line 87 of file errdo_mc_prediction.c.
Referenced by perform_mc(), and perform_mc_concealment().
static void mc_prediction | ( | imgpel ** | mb_pred, | |
int | ver_block_size, | |||
int | hor_block_size, | |||
int | ioff, | |||
imgpel | block[MB_BLOCK_SIZE][MB_BLOCK_SIZE] | |||
) | [inline, static] |
block single list prediction
Definition at line 31 of file errdo_mc_prediction.c.
Referenced by perform_mc(), and perform_mc_concealment().
void perform_mc | ( | Macroblock * | currMB, | |
int | decoder, | |||
ColorPlane | pl, | |||
StorablePicture * | dec_picture, | |||
int | pred_dir, | |||
int | l0_mode, | |||
int | l1_mode, | |||
char *** | ref_idx_buf, | |||
int | i, | |||
int | j, | |||
int | block_size_x, | |||
int | block_size_y, | |||
short | bipred_me | |||
) |
< l0 prediction
< l1 prediction
Definition at line 1069 of file errdo_mc_prediction.c.
References slice::all_mv, bi_prediction(), slice::bipred_mv, macroblock::block_x, macroblock::block_y, img_par::currentSlice, decoders::dec_mb_pred, img_par::max_pel_value_comp, slice::mb_pred, mc_prediction(), macroblock::p_Img, macroblock::p_slice, slice::slice_type, slice::wbp_weight, weighted_bi_prediction(), weighted_mc_prediction(), slice::wp_offset, slice::wp_weight, YUV400, and YUV444.
Referenced by decode_one_b8block(), and get_predicted_mb().
void perform_mc_concealment | ( | Macroblock * | currMB, | |
int | decoder, | |||
ColorPlane | pl, | |||
StorablePicture * | dec_picture, | |||
int | pred_dir, | |||
int | l0_mode, | |||
int | l1_mode, | |||
char *** | ref_idx_buf, | |||
int | i, | |||
int | j, | |||
int | block_size_x, | |||
int | block_size_y | |||
) |
< l0 prediction
< l1 prediction
Definition at line 1232 of file errdo_mc_prediction.c.
References bi_prediction(), macroblock::block_x, macroblock::block_y, img_par::currentSlice, decoders::dec_mb_pred, img_par::max_pel_value_comp, mc_prediction(), storable_picture::motion, pic_motion_params::mv, macroblock::p_Img, macroblock::p_slice, slice::slice_type, slice::wbp_weight, weighted_bi_prediction(), weighted_mc_prediction(), slice::wp_offset, and slice::wp_weight.
Referenced by get_predicted_concealment_mb().
static void weighted_bi_prediction | ( | imgpel ** | mb_pred, | |
imgpel | block_l0[MB_BLOCK_SIZE][MB_BLOCK_SIZE], | |||
imgpel | block_l1[MB_BLOCK_SIZE][MB_BLOCK_SIZE], | |||
int | ver_block_size, | |||
int | hor_block_size, | |||
int | ioff, | |||
int | wp_scale_l0, | |||
int | wp_scale_l1, | |||
int | wp_offset, | |||
int | weight_denom, | |||
int | color_clip | |||
) | [inline, static] |
block weighted biprediction
Definition at line 113 of file errdo_mc_prediction.c.
Referenced by perform_mc(), and perform_mc_concealment().
static void weighted_mc_prediction | ( | imgpel ** | mb_pred, | |
int | ver_block_size, | |||
int | hor_block_size, | |||
int | ioff, | |||
imgpel | block[MB_BLOCK_SIZE][MB_BLOCK_SIZE], | |||
int | wp_scale, | |||
int | wp_offset, | |||
int | weight_denom, | |||
int | color_clip | |||
) | [inline, static] |
block single list weighted prediction
Definition at line 58 of file errdo_mc_prediction.c.
Referenced by perform_mc(), and perform_mc_concealment().