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
VideoDecoderVFW.h
Package: Visual C++视频音频开发实用工程案例精选.rar [view]
Upload User: tuheem
Upload Date: 2007-05-01
Package Size: 21889k
Code Size: 2k
Category:
Multimedia Develop
Development Platform:
Visual C++
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #ifndef VIDEODECODER_VFW_H
- #define VIDEODECODER_VFW_H
- /*
- * 基类
- */
- #include "MediaClasses.h"
- #include <vfw.h>
- #define VFW_INPUT_SIZE 128000
- typedef struct _my_BITMAPINFO {
- BITMAPINFOHEADER bmiHeader;
- DWORD bmiColors[3];
- } my_BITMAPINFO;
- /*
- * 视频解码器类
- */
- class MediaVideoDecoderVFW : public MediaItemVideoDecoder {
- private:
- HIC hic;
- BITMAPINFO in_bih;
- my_BITMAPINFO out_bih;
- media_video_mode_t videoMode;
- BOOL invertFlag;
- MediaItemDecaps *decaps;
- MediaBuffer *inputBuffer;
- public:
- MediaVideoDecoderVFW();
- ~MediaVideoDecoderVFW();
- /*
- * 媒体项方法
- */
- media_type_t GetType();
- char *GetName();
- MP_RESULT Connect(MediaItem *item);
- MP_RESULT ReleaseConnections();
- DWORD GetCaps();
- MP_RESULT Configure(HINSTANCE hInstance, HWND hwnd);
- /*
- * 视频解码器方法
- *
- */
- unsigned int GetFrameSize();
- media_video_mode_t GetVideoMode();
- BOOL GetInvertFlag();
- MP_RESULT SetVideoMode(media_video_mode_t mode);
- MP_RESULT SetQuality(DWORD quality);
- DWORD GetQuality();
- MP_RESULT Decompress(MediaBuffer *mb_out, unsigned int stride);
- MP_RESULT Drop(MediaBuffer *mb_out, unsigned int stride);
- };
- #endif