www.pudn.com > henclib263.rar > vlc.h


/* 
* vlc.h 
* 
* Interface for VLC(Variable Length Coding) funtions. 
* 
* Copyright (c) 2002-2004 Li Chun-lin(li_chunlin@263.net) 
* 
* This program is free software; you can redistribute it and/or 
* modify it under the terms of the GNU General Public License 
* as published by the Free Software Foundation; either version 2 
* of the License, or (at your option) any later version. 
*  
* This program is distributed in the hope that it will be useful, 
* but WITHOUT ANY WARRANTY; without even the implied warranty of 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
* GNU General Public License for more details. 
 
* You should have received a copy of the GNU General Public License 
* along with this program; if not, write to the Free Software 
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
*/ 
 
#ifndef VLC_H 
#define VLC_H 
 
#include "HEnc.h" 
 
 
#ifdef  __cplusplus 
extern "C" { 
#endif 
 
 
int EncPicHdrPlus(H263VencStatus *encoder);                         //!< Encode picture header for h.263+ 
int EncPicHdr(H263VencStatus *encoder);                             //!< Encode picture header 
int EncGOBHdr(int gob_nbr, int gob_fid, int gob_quant, int gob_tr, int gob_trp);     //!< Encode GOB header  
int EncMBHdr(int p_type, int mode, int cod, int cbp, int dquant);   //!< Encode MB header  
int EncMBHdr_B(int mb_type, int cbp, int dquant);                   //!< Encode MB header for B picture 
int EncMVD(MCParam *MC, int x, int y, int mode, int newgob);        //!< Encode MV data 
int EncMVD_B(MCParam *MC, int x, int y, int mode, int newgob);      //!< Encode MV data for B picture 
int EncCoeff(int intra, int CBP, short *qcoeff, int ncoeffs);      //!< Encode Coefficients  
 
 
#ifdef  __cplusplus 
} 
#endif 
 
 
#endif