openMSX
DoubledFrame.hh
Go to the documentation of this file.
1 #ifndef DOUBLEDFRAME_HH
2 #define DOUBLEDFRAME_HH
3 
4 #include "FrameSource.hh"
5 
6 namespace openmsx {
7 
12 class DoubledFrame final : public FrameSource
13 {
14 public:
15  explicit DoubledFrame(const SDL_PixelFormat& format);
16  void init(FrameSource* field, unsigned skip);
17 
18 private:
19  unsigned getLineWidth(unsigned line) const override;
20  const void* getLineInfo(
21  unsigned line, unsigned& width,
22  void* buf, unsigned bufWidth) const override;
23 
26  FrameSource* field;
27  unsigned skip;
28 };
29 
30 } // namespace openmsx
31 
32 #endif
void format(SectorAccessibleDisk &disk, bool dos1)
DoubledFrame(const SDL_PixelFormat &format)
Definition: DoubledFrame.cc:6
Interface for getting lines from a video frame.
Definition: FrameSource.hh:15
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:7
void init(FrameSource *field, unsigned skip)
Definition: DoubledFrame.cc:11
Produces a video frame that has every line from the input frame twice plus a number of black lines at...
Definition: DoubledFrame.hh:12