www.pudn.com > henclib263.rar > init.h
/*
* init.h
*
* interface of functions which is used to initialize encoder status.
*
* 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 INIT_H
#define INIT_H
#include "HEnc.h"
#ifdef __cplusplus
extern "C" {
#endif
int init_para(H263VencStatus *encoder, int P_rate, int QP, int QI, int QB, int gobsync,
int framerate, int bitrate); //!< Initialize global parameter
int init_table(H263VencStatus *encoder); //!< Initialize coded table and quant table
int init_control(H263VencStatus *encoder); //!< Initialize frame level parameters that control coding process
int init_bitstrm(int type, unsigned int time); //!< Initialize bitstream parameter
int init_MCPara(MCParam *MC, int search_range, int search_method); //!< Initialize MC parameters
void alloc_mem(H263VencStatus *encoder, MCParam *mc, putstrm *strm); //!< Allocate memery
int GetSourceFrame(H263VencStatus * encoder, unsigned char* m_pCap); //!< Get source frame
void close_encoder (H263VencStatus *encoder, MCParam *mc, putstrm *pStrm); //!< Close encoder
void init_fs(); //!< Initialize FS spiral
#ifdef __cplusplus
}
#endif
#endif