openMSX
DeinterlacedFrame.hh
Go to the documentation of this file.
1 #ifndef DEINTERLACEDFRAME_HH
2 #define DEINTERLACEDFRAME_HH
3 
4 #include "FrameSource.hh"
5 
6 namespace openmsx {
7 
12 class DeinterlacedFrame final : public FrameSource
13 {
14 public:
15  explicit DeinterlacedFrame(const SDL_PixelFormat& format);
16  void init(FrameSource* evenField, FrameSource* oddField);
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 
27  FrameSource* fields[2];
28 };
29 
30 } // namespace openmsx
31 
32 #endif // DEINTERLACEDFRAME_HH
Produces a deinterlaced video frame based on two other FrameSources (typically two RawFrames) contain...
DeinterlacedFrame(const SDL_PixelFormat &format)
void init(FrameSource *evenField, FrameSource *oddField)
Interface for getting lines from a video frame.
Definition: FrameSource.hh:14
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void format(SectorAccessibleDisk &disk, bool dos1)
Format the given disk (= a single partition).