Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
VideoCodec.h
Package: 视频会议系统.rar [view]
Upload User: popouu88
Upload Date: 2013-02-11
Package Size: 2894k
Code Size: 1k
Category:
VOIP program
Development Platform:
Visual C++
- // VideoCode.h: interface for the CVideoCodec class.
- //
- //////////////////////////////////////////////////////////////////////
- #ifndef __VIDEOCODEC_H__
- #define __VIDEOCODEC_H__
- #include "vfw.h"
- class CVideoCodec
- {
- public:
- CVideoCodec();
- virtual ~CVideoCodec();
- //初始化解压器
- virtual BITMAPINFOHEADER * InitDecode( int width , int height , int depth , const char * szType );
- //初始化解压器
- virtual bool InitDecode( BITMAPINFOHEADER * header );
- //初始化压缩器
- virtual BITMAPINFOHEADER * InitEncode( int width , int height , int depth , const char * szType = NULL , int kbps = 0 );
- //解压
- void * Decode( void * in_buffer , int size );
- //压缩
- void * Encode( void * in_buffer , int * size );
- //释放解压器
- bool ReleaseDecode( void );
- //释放压缩器
- bool ReleaseEncode( void );
- //通过一个Word取mmioFOURCC 的4个字节
- static char * GetString(int word );
- time_t GetEncodeTime( void );
- protected:
- enum{ DECODE = 1, ENCODE };
- private:
- //压缩解压器结构体
- COMPVARS cv;
- //输出内存
- char * out_buffer;
- //压缩 or 解压标志
- int codec_type;
- //帧压缩的当前时间
- time_t encode_time;
- //压缩方式
- bool sequent_compress;
- //输入数据位图头信息
- BITMAPINFOHEADER in ;
- //输出位兔头信息
- BITMAPINFOHEADER out;
- };
- #endif