www.pudn.com > avs-m3.rar > block.h


/*! 
 *************************************************************************** 
 * \file 
 *     block.h 
 * \brief 
 *    block-handle function and marco definitions 
 *    include IDCT,IQ,Rec block. 
 * \date 
 *    01. Apr 2005 
 *************************************************************************** 
 */ 
#ifndef _BLOCK_H 
#define _BLOCK_H 
 
#include "global.h" 
#include "defines.h" 
     
//!< 4x4 block-based Quantization, Transform and Reconstruction 
void Get_residual( int b8, int b4); 
void Recon_B4(int b8, int b4);     
void Inv_Transform_B4(int b8,int b4);     
void Dequant_B4(int qp, int b8, int b4); 
 
void SetMotionVectorPredictor(int *pmv_x, int *pmv_y, int ref_frame, int block_x, int block_y,  
                              int blockshape_x, int  blockshape_y, int ref); 
 
void FindSkipMVandRef(); 
 
int intrapred(int b8, 
			        int b4, 
			        int ioff,               //!< pixel offset X within MB 
			        int joff,               //!< pixel offset Y within MB 
			        int img_block_x,        //!< location of block X, multiples of 4 
			        int img_block_y);       //!< location of block Y, multiples of 4 
 
void intrapred_chroma_4x4(int mb_x,  int mb_y,  int b4, int mode); 
 
#endif