00001 00018 #ifndef _BLOCK_H_ 00019 #define _BLOCK_H_ 00020 00021 #include "global.h" 00022 #include "transform8x8.h" 00023 00024 extern const byte QP_SCALE_CR[52] ; 00026 extern const unsigned char subblk_offset_x[3][8][4]; 00027 extern const unsigned char subblk_offset_y[3][8][4]; 00028 00029 extern void iMBtrans4x4(ImageParameters *img, Macroblock *currMB, ColorPlane pl, int smb); 00030 extern void iMBtrans8x8(ImageParameters *img, Macroblock *currMB, ColorPlane pl); 00031 00032 extern void itrans_sp_cr(ImageParameters *img, int uv); 00033 00034 extern void intrapred_chroma (ImageParameters *img, Macroblock *currMB, int uv); 00035 00036 void (*itrans_4x4)(ImageParameters *img, ColorPlane pl, int ioff, int joff); 00037 void (*itrans_8x8)(ImageParameters *img, Macroblock *currMB, ColorPlane pl, int ioff, int joff); 00038 00039 extern void Inv_Residual_trans_4x4(ImageParameters *img, ColorPlane pl, int ioff, int joff); 00040 extern void Inv_Residual_trans_8x8(ImageParameters *img, Macroblock *currMB, ColorPlane pl, int ioff,int joff); 00041 00042 extern void itrans4x4 (ImageParameters *img, ColorPlane pl, int ioff, int joff); 00043 extern void itrans4x4_ls(ImageParameters *img, ColorPlane pl, int ioff, int joff); 00044 extern void itrans_sp (ImageParameters *img, ColorPlane pl, int ioff, int joff); 00045 extern int intrapred (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int ioff,int joff,int i4,int j4); 00046 extern void itrans_2 (ImageParameters *img, Macroblock *currMB, ColorPlane pl); 00047 extern void iTransform (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int need_4x4_transform, int smb); 00048 00049 extern int allocate_block_mem(void); 00050 extern void free_block_mem(void); 00051 00052 #endif 00053