00001 00017 #ifndef _MC_PREDICTION_H_ 00018 #define _MC_PREDICTION_H_ 00019 00020 #include "global.h" 00021 #include "mbuffer.h" 00022 00023 extern int allocate_pred_mem(Slice *currSlice); 00024 extern void free_pred_mem (Slice *currSlice); 00025 00026 extern void get_block_luma (Macroblock *currMB, ColorPlane pl, StorablePicture *list, int x_pos, int y_pos, int ver_block_size, int hor_block_size, imgpel **block); 00027 extern void get_block_chroma(Macroblock *currMB, int uv, StorablePicture *list, int x_pos, int y_pos, int hor_block_size, int ver_block_size, imgpel **block); 00028 00029 extern void intra_cr_decoding (Macroblock *currMB, int yuv, int smb); 00030 extern void prepare_direct_params(Macroblock *currMB, StorablePicture *dec_picture, short pmvl0[2], short pmvl1[2],char *l0_rFrame, char *l1_rFrame); 00031 extern 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); 00032 #endif 00033