mc_prediction.c File Reference

Functions for motion compensated prediction. More...

#include "global.h"
#include "block.h"
#include "mc_prediction.h"
#include "mbuffer.h"
#include "mb_access.h"
#include "macroblock.h"
#include "memalloc.h"

Include dependency graph for mc_prediction.c:

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 }


Detailed Description

Functions for motion compensated prediction.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file mc_prediction.c.


Function Documentation

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]

block biprediction

Definition at line 104 of file mc_prediction.c.

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 
)

static void mc_prediction ( imgpel **  mb_pred,
int  ver_block_size,
int  hor_block_size,
int  ioff,
imgpel **  block 
) [inline, static]

block single list prediction

Definition at line 48 of file mc_prediction.c.

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]

block weighted biprediction

Definition at line 130 of file mc_prediction.c.

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]

block single list weighted prediction

Definition at line 75 of file mc_prediction.c.


Documentation generated with DoxyGen