#include "global.h"
#include "block.h"
#include "mc_prediction.h"
#include "mbuffer.h"
#include "mb_access.h"
#include "macroblock.h"
#include "memalloc.h"
Go to the source code of this file.
Functions | |
int | allocate_pred_mem (Slice *currSlice) |
void | free_pred_mem (Slice *currSlice) |
static void | mc_prediction (imgpel **mb_pred, int ver_block_size, int hor_block_size, int ioff, imgpel **block) |
static void | weighted_mc_prediction (imgpel **mb_pred, int ver_block_size, int hor_block_size, int ioff, imgpel **block, int wp_scale, int wp_offset, int weight_denom, int color_clip) |
static void | bi_prediction (imgpel **mb_pred, imgpel **block_l0, imgpel **block_l1, int ver_block_size, int hor_block_size, int ioff) |
static void | weighted_bi_prediction (imgpel **mb_pred, imgpel **block_l0, imgpel **block_l1, 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, ColorPlane pl, StorablePicture *curr_ref, int x_pos, int y_pos, int hor_block_size, int ver_block_size, imgpel **block) |
void | get_block_chroma (Macroblock *currMB, int uv, StorablePicture *curr_ref, int x_pos, int y_pos, int hor_block_size, int ver_block_size, imgpel **block) |
void | intra_cr_decoding (Macroblock *currMB, int yuv, int smb) |
void | prepare_direct_params (Macroblock *currMB, StorablePicture *dec_picture, short pmvl0[2], short pmvl1[2], char *l0_rFrame, char *l1_rFrame) |
void | check_motion_vector_range (ImageParameters *p_Img, short mv_x, short mv_y) |
void | perform_mc (Macroblock *currMB, ColorPlane pl, StorablePicture *dec_picture, int pred_dir, int i, int j, int list_offset, int block_size_x, int block_size_y, int curr_mb_field) |
Variables | |
static const int | COEF [6] = { 1, -5, 20, 20, -5, 1 } |
Definition in file mc_prediction.c.
static void bi_prediction | ( | imgpel ** | mb_pred, | |
imgpel ** | block_l0, | |||
imgpel ** | block_l1, | |||
int | ver_block_size, | |||
int | hor_block_size, | |||
int | ioff | |||
) | [inline, static] |
void get_block_luma | ( | Macroblock * | currMB, | |
ColorPlane | pl, | |||
StorablePicture * | curr_ref, | |||
int | x_pos, | |||
int | y_pos, | |||
int | hor_block_size, | |||
int | ver_block_size, | |||
imgpel ** | block | |||
) |
Interpolation of 1/4 subpixel.
Definition at line 162 of file mc_prediction.c.
References storable_picture::imgUV, storable_picture::imgY, pic_motion_params::mb_field, macroblock::mbAddrX, storable_picture::motion, macroblock::p_Img, and macroblock::p_Slice.
Referenced by buildPredblockRegionYUV(), and buildPredRegionYUV().
static void mc_prediction | ( | imgpel ** | mb_pred, | |
int | ver_block_size, | |||
int | hor_block_size, | |||
int | ioff, | |||
imgpel ** | block | |||
) | [inline, static] |
static void weighted_bi_prediction | ( | imgpel ** | mb_pred, | |
imgpel ** | block_l0, | |||
imgpel ** | block_l1, | |||
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] |
static void weighted_mc_prediction | ( | imgpel ** | mb_pred, | |
int | ver_block_size, | |||
int | hor_block_size, | |||
int | ioff, | |||
imgpel ** | block, | |||
int | wp_scale, | |||
int | wp_offset, | |||
int | weight_denom, | |||
int | color_clip | |||
) | [inline, static] |