| e8555c89 Andy McCall |
1 |
#ifndef DEINTERLACEDFRAME_HH |
| 2 |
#define DEINTERLACEDFRAME_HH |
| 3 |
|
| 4 |
#include "FrameSource.hh" |
| 5 |
|
| 6 |
#include <array> |
| 7 |
|
| 8 |
namespace openmsx { |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
class DeinterlacedFrame final : public FrameSource |
| 15 |
{ |
| 16 |
public: |
| 17 |
void init(FrameSource* evenField, FrameSource* oddField); |
| 18 |
|
| 19 |
private: |
| 20 |
[[nodiscard]] unsigned getLineWidth(unsigned line) const override; |
| 21 |
[[nodiscard]] std::span<const Pixel> getUnscaledLine( |
| 22 |
unsigned line, std::span<Pixel> helpBuf) const override; |
| 23 |
|
| 24 |
private: |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
std::array<FrameSource*, 2> fields; |
| 29 |
}; |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
#endif |