#include "mbuffer.h"
Go to the source code of this file.
Functions | |
void | luma_prediction (Macroblock *currMB, int, int, int, int, int, int[2], char *, short) |
void | luma_prediction_bi (Macroblock *currMB, int, int, int, int, int, int, short, short, int) |
void | chroma_prediction (Macroblock *currMB, int, int, int, int, int, int, int, int, short, short, short) |
void | chroma_prediction_4x4 (Macroblock *currMB, int, int, int, int, int, int, short, short, short) |
void | OneComponentChromaPrediction4x4_regenerate (Macroblock *currMB, imgpel *, int, int, short ***, StorablePicture *listX, int) |
void | OneComponentChromaPrediction4x4_retrieve (Macroblock *currMB, imgpel *, int, int, short ***, StorablePicture *listX, int) |
void | intra_chroma_prediction (Macroblock *currMB, int *, int *, int *) |
void | compute_residue (imgpel **curImg, imgpel **mb_pred, int **mb_rres, int mb_x, int opix_x, int width, int height) |
void | sample_reconstruct (imgpel **curImg, imgpel **mb_pred, int **mb_rres, int mb_x, int opix_x, int width, int height, int max_imgpel_value, int dq_bits) |
Definition in file mc_prediction.h.
void chroma_prediction | ( | Macroblock * | currMB, | |
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
short | , | |||
short | , | |||
short | ||||
) |
Predict one chroma block.
Definition at line 487 of file mc_prediction.c.
References slice::all_mv, slice::bipred_mv, IMG_PAD_SIZE_TIMES4, IntraChromaPrediction4x4(), is_bipred_enabled(), img_par::max_pel_value_comp, slice::mb_pred, MCBiPrediction(), MCPrediction(), MCWeightedBiPrediction(), MCWeightedPrediction(), OneComponentChromaPrediction(), macroblock::opix_c_y, macroblock::p_Img, macroblock::p_slice, macroblock::pix_c_x, slice::wbp_weight, slice::weighted_prediction, slice::wp_offset, and slice::wp_weight.
Referenced by luma_residual_coding_p444_16x16(), and luma_residual_coding_p444_8x8().
void chroma_prediction_4x4 | ( | Macroblock * | currMB, | |
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
short | , | |||
short | , | |||
short | ||||
) |
Predict one chroma 4x4 block.
Definition at line 598 of file mc_prediction.c.
References slice::all_mv, slice::bipred_mv, IntraChromaPrediction4x4(), is_bipred_enabled(), img_par::max_pel_value_comp, slice::mb_pred, MCBiPrediction(), MCPrediction(), MCWeightedBiPrediction(), MCWeightedPrediction(), macroblock::p_Img, macroblock::p_slice, slice::wbp_weight, slice::weighted_prediction, slice::wp_offset, and slice::wp_weight.
Referenced by chroma_residual_coding().
void intra_chroma_prediction | ( | Macroblock * | currMB, | |
int * | , | |||
int * | , | |||
int * | ||||
) |
Intra prediction of the chrminance layers of one macroblock.
< pixel position p(0,-1)
< pixel positions p(-1, -1..15)
Definition at line 698 of file mc_prediction.c.
References macroblock::c_ipred_mode, img_par::dc_pred_value_comp, img_par::field_mode, storable_picture::imgUV, img_par::max_pel_value_comp, img_par::MbaffFrameFlag, slice::mpr_16x16, macroblock::p_slice, slice::slice_type, subblk_offset_x, and inp_par_enc::UseConstrainedIntraPred.
Referenced by encode_one_macroblock_low(), and SetChromaPredMode().
void luma_prediction | ( | Macroblock * | currMB, | |
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | [2], | |||
char * | , | |||
short | ||||
) |
Predict one Luma block.
currMB | Current Macroblock |
Definition at line 144 of file mc_prediction.c.
References slice::all_mv, slice::bipred_mv, IMG_PAD_SIZE_TIMES4, is_bipred_enabled(), img_par::max_imgpel_value, slice::mb_pred, MCBiPrediction(), MCPrediction(), MCWeightedBiPrediction(), MCWeightedPrediction(), OneComponentLumaPrediction(), macroblock::opix_y, macroblock::p_Img, macroblock::p_slice, macroblock::pix_x, slice::wbp_weight, slice::weighted_prediction, slice::wp_offset, and slice::wp_weight.
Referenced by BIDPartitionCost(), GetDirectCost8x8(), GetSkipCostMB(), luma_residual_coding(), luma_residual_coding_8x8(), luma_residual_coding_p444_16x16(), luma_residual_coding_p444_8x8(), and TransformDecision().
void luma_prediction_bi | ( | Macroblock * | currMB, | |
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
short | , | |||
short | , | |||
int | ||||
) |
Predict one Luma block.
currMB | Current Macroblock |
Definition at line 245 of file mc_prediction.c.
References slice::bipred_mv, IMG_PAD_SIZE_TIMES4, img_par::max_imgpel_value, slice::mb_pred, MCBiPrediction(), MCWeightedBiPrediction(), OneComponentLumaPrediction(), macroblock::opix_y, macroblock::p_Img, macroblock::p_slice, macroblock::pix_x, slice::wbp_weight, slice::weighted_prediction, and slice::wp_offset.
Referenced by BPredPartitionCost().
void OneComponentChromaPrediction4x4_regenerate | ( | Macroblock * | currMB, | |
imgpel * | , | |||
int | , | |||
int | , | |||
short *** | , | |||
StorablePicture * | listX, | |||
int | ||||
) |
Predict (on-the-fly) one component of a chroma 4x4 block.
currMB | Current Macroblock | |
listX | image components (color planes) |
Definition at line 303 of file mc_prediction.c.
References img_par::height_cr, storable_picture::imgUV, img_par::mb_data, macroblock::mbAddrX, macroblock::opix_c_y, macroblock::p_Img, macroblock::pix_c_x, and img_par::width_cr.
Referenced by init_encoder().
void OneComponentChromaPrediction4x4_retrieve | ( | Macroblock * | currMB, | |
imgpel * | , | |||
int | , | |||
int | , | |||
short *** | , | |||
StorablePicture * | listX, | |||
int | ||||
) |
Retrieve one component of a chroma 4x4 block from the buffer.
currMB | Current Macroblock | |
listX | image components (color planes) |
Definition at line 372 of file mc_prediction.c.
References IMG_PAD_SIZE_TIMES4, macroblock::opix_c_y, macroblock::p_Img, macroblock::pix_c_x, and UMVLine8X_chroma().
Referenced by init_encoder().