diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/VideoOutputChild.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/VideoOutputChild.h')
-rw-r--r-- | Src/Winamp/VideoOutputChild.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Src/Winamp/VideoOutputChild.h b/Src/Winamp/VideoOutputChild.h new file mode 100644 index 00000000..80bbdd57 --- /dev/null +++ b/Src/Winamp/VideoOutputChild.h @@ -0,0 +1,35 @@ +#ifndef NULLSOFT_VIDEOOUTPUTCHILDH +#define NULLSOFT_VIDEOOUTPUTCHILDH + + +class SubsItem; +#include <windows.h> +#include "VideoAspectAdjuster.h" + +/* + VideoRenderer is the base classes for the various video rendering classes +*/ + +class VideoRenderer +{ +public: + virtual ~VideoRenderer() + { + } + virtual int create(HWND parent, VideoAspectAdjuster *_adjuster, int w, int h, unsigned int type, int flipit, double aspectratio) = 0; //return 1 if ok + virtual int needChange() = 0; //return 1 if need to renegociate video output + virtual int onPaint(HWND hwnd) { return 0; } //return 1 if override + virtual void displayFrame(const char *buf, int size, int time) = 0; + virtual void close()= 0; // hides any output of the video + virtual void timerCallback() { } + virtual void setPalette(RGBQUAD *pal) { } + virtual void drawSubtitle(SubsItem *item) { } + virtual void resetSubtitle() { } + virtual void setVFlip(int on) { } + virtual void Refresh()=0; + +}; + + + +#endif |