VideoRenderer.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:2k
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #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