vid_none.h 524 B

123456789101112131415161718192021
  1. #ifndef _VIDEO_NONE_H
  2. #define _VIDEO_NONE_H
  3. #include "wa_ipc.h"
  4. #include "VideoOutputChild.h"
  5. class NoneVideoOutput : public VideoRenderer
  6. {
  7. public:
  8. int create(HWND parent, VideoAspectAdjuster *_adjuster, int w, int h, unsigned int type, int flipit, double aspectratio)
  9. {
  10. if (type == VIDEO_MAKETYPE('N', 'O', 'N', 'E')) return 1;
  11. return 0;
  12. }
  13. void close() { }
  14. int needChange() { return 0; }
  15. void displayFrame(const char *buf, int size, int time) { }
  16. void Refresh() {}
  17. };
  18. extern NoneVideoOutput noneVideo;
  19. #endif