openMSX
DoubledFrame.hh
Go to the documentation of this file.
1#ifndef DOUBLEDFRAME_HH
2#define DOUBLEDFRAME_HH
3
4#include "FrameSource.hh"
5
6namespace openmsx {
7
12class DoubledFrame final : public FrameSource
13{
14public:
15 explicit DoubledFrame(const PixelFormat& format);
16 void init(FrameSource* field, int skip);
17
18private:
19 [[nodiscard]] unsigned getLineWidth(unsigned line) const override;
20 [[nodiscard]] const void* getLineInfo(
21 unsigned line, unsigned& width,
22 void* buf, unsigned bufWidth) const override;
23
24private:
27 FrameSource* field;
28 int skip;
29};
30
31} // namespace openmsx
32
33#endif
Produces a video frame that has every line from the input frame twice plus a possibly repeated line a...
Definition: DoubledFrame.hh:13
DoubledFrame(const PixelFormat &format)
Definition: DoubledFrame.cc:7
void init(FrameSource *field, int skip)
Definition: DoubledFrame.cc:12
Interface for getting lines from a video frame.
Definition: FrameSource.hh:20
void format(SectorAccessibleDisk &disk, MSXBootSectorType bootType)
Format the given disk (= a single partition).
This file implemented 3 utility functions:
Definition: Autofire.cc:9