⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 avsdeclib.h

📁 avs decoder sources, added a command line sample
💻 H
字号:
/** * Copyright (c) 2006 *      OpenAVS Developers. All Rights Reserved. * * Copyright (c) 2005-2006 *      NSCC. All Rights Reserved. * * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *//** * ! \file "avsdeclib.h" *   \brief Interface to AVS Decoding. * * The interface for each algorithm module is defined as a comprehensive * table of function entries which is exposed by AVS Decoding. It implements * most of the functions defined in the AVS1-P2 Standard document except: * -# field coding * -# multi-slice structure * -# weighted prediction * -# eliminate fake initial code *//*  * ISO C99: 7.18 Integer types <stdint.h> *///#include <stdint.h>#ifndef _AVSLIB_H_d0808y76666550U887YTH9OH9H#define _AVSLIB_H_d0808y76666550U887YTH9OH9Htypedef struct _SEQ_INFO {  int   image_width;  int   image_height;  float frame_rate;} SEQ_INFO;#ifndef AVS_BYTE_DEFINED#define AVS_BYTE_DEFINED#define uint8_t 	unsigned char#define uint32_t 	unsigned int#endif/* constant in avs video standard */#define SEQENCE_START_CODE	0X000001B0#define SEQENCE_END_CODE	0X000001B1#define USER_DATA_START_CODE	0X000001B2#define I_FRAME_START_CODE	0X000001B3#define EXTENSION_START_CODE	0X000001B5 #define PB_FRAME_START_CODE	0X000001B6#define EDIT_CODE		0X000001B7/* XXX: Use GCC 4 Visibility */#define DLLEXPORT __cdeclextern "C"  int DLLEXPORT OpenAVSDec(		uint8_t * pbData, int len, SEQ_INFO * pInfo); extern "C"  int DLLEXPORT GetOneFrameBitsFromBuffer(		unsigned char * pFrameBuf, 		int iBufLen, 		int * pFrameLen, 		int * pNoUseDataLen);extern "C"  int DLLEXPORT DecOneFrameFromBuffer(		unsigned char * pbData, 		int iFrameLen, 		uint8_t ** ppOutY, 		uint8_t ** ppOutU, 		uint8_t ** ppOutV);extern "C"  void DLLEXPORT CloseAVSDec();#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -