Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
50
Src/Plugins/Input/in_wmvdrm/vid_ddraw.h
Normal file
50
Src/Plugins/Input/in_wmvdrm/vid_ddraw.h
Normal file
|
@ -0,0 +1,50 @@
|
|||
#ifndef NULLSOFT_IN_WMVDRM_VID_DDRAW_H
|
||||
#define NULLSOFT_IN_WMVDRM_VID_DDRAW_H
|
||||
|
||||
#include <ddraw.h>
|
||||
#include "VideoOutputChildDDraw.h"
|
||||
|
||||
class SubsItem;
|
||||
|
||||
class DDrawVideoOutput : public VideoOutputChildDDraw
|
||||
{
|
||||
public:
|
||||
DDrawVideoOutput();
|
||||
virtual ~DDrawVideoOutput();
|
||||
int create(HWND parent, VideoAspectAdjuster *_adjuster, int w, int h, unsigned int ptype, int flipit, double aspectratio);
|
||||
int needChange() { return needchange; }
|
||||
int onPaint(HWND hwnd);
|
||||
void displayFrame(const char *buf, int size, int time);
|
||||
void timerCallback();
|
||||
void setPalette(RGBQUAD *pal) { m_palette = pal; }
|
||||
void drawSubtitle(SubsItem *item);
|
||||
void resetSubtitle();
|
||||
void setVFlip(int on) { flip = on; }
|
||||
void Refresh();
|
||||
void close();
|
||||
void SetFrame(void *_frame) { frame = _frame; }
|
||||
private:
|
||||
void *frame;
|
||||
int width, height, flip;
|
||||
int needchange;
|
||||
unsigned int type;
|
||||
LPDIRECTDRAW lpDD;
|
||||
LPDIRECTDRAWSURFACE lpddsOverlay, lpddsPrimary;
|
||||
DDCAPS capsDrv;
|
||||
unsigned int uDestSizeAlign, uSrcSizeAlign;
|
||||
DWORD dwUpdateFlags;
|
||||
RECT rs, rd;
|
||||
RECT lastresizerect;
|
||||
bool initing;
|
||||
|
||||
LPDIRECTDRAWCLIPPER lpddsClipper;
|
||||
DDPIXELFORMAT m_ddpf;
|
||||
int m_depth;
|
||||
RGBQUAD *m_palette;
|
||||
|
||||
RECT winRect;
|
||||
RECT m_monRect;
|
||||
};
|
||||
|
||||
extern DDrawVideoOutput ddraw;
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue