VideoRenderer.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:2k
源码类别:
VC书籍
开发平台:
Visual C++
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #ifndef VIDEORENDERER_H
- #define VIDEORENDERER_H
- /*
- * 基类
- */
- #include "VideoRendererOverlay.h"
- #include "VideoRendererRGB.h"
- #include "MediaClasses.h"
- /*
- * 视频补偿器封装类
- */
- class MediaVideoRenderer : public MediaItemVideoRenderer {
- MediaVideoRendererOverlay *overlayRenderer;
- MediaVideoRendererRGB *rgbRenderer;
- MediaVideoRenderer *renderer;
- public:
- MediaVideoRenderer();
- ~MediaVideoRenderer();
- /*
- * 媒体项方法
- */
- media_type_t GetType();
- char *GetName();
- MP_RESULT Connect(MediaItem *item);
- MP_RESULT ReleaseConnections();
- DWORD GetCaps();
- MP_RESULT Configure(HINSTANCE hInstance, HWND hwnd);
- /*
- * 视频补偿方法
- */
- MP_RESULT Init(HWND hwnd, unsigned int width, unsigned int height, media_video_mode_t preferedMode);
- MP_RESULT InitFullscreen(HWND hwnd, unsigned int width, unsigned int height, media_video_mode_t preferedMode);
- /*
- * 以下两个不使用
- */
- MP_RESULT Init(HWND hwnd, unsigned int width, unsigned int height);
- MP_RESULT InitFullscreen(HWND hwnd, unsigned int width, unsigned int height);
- media_video_mode_t GetVideoMode();
- MP_RESULT Stop();
- RECT *GetFullscreenRects();
- MP_RESULT Draw(MediaBuffer *buffer, RECT *rect, int frameNumber, int invertFlag);
- MP_RESULT DrawFullscreen(MediaBuffer *buffer, int frameNumber, int invertFlag, int desktopMode);
- MP_RESULT Close();
- };
- #endif