15unsigned DoubledFrame::getLineWidth(
unsigned line)
const
17 int t = narrow<int>(line) - skip;
21std::span<const FrameSource::Pixel> DoubledFrame::getUnscaledLine(
22 unsigned line, std::span<Pixel> helpBuf)
const
24 return field->
getUnscaledLine(std::max(narrow<int>(line) - skip, 0) / 2, helpBuf);
void init(FrameSource *field, int skip)
Interface for getting lines from a video frame.
virtual unsigned getLineWidth(unsigned line) const =0
Gets the number of display pixels on the given line.
void setHeight(unsigned height_)
virtual std::span< const Pixel > getUnscaledLine(unsigned line, std::span< Pixel > helpBuf) const =0
Get a specific line, with the 'native' line-width.
void init(FieldType fieldType_)
(Re)initialize an existing FrameSource.
unsigned getHeight() const
Gets the number of lines in this frame.
@ NONINTERLACED
Interlacing is off for this frame.
This file implemented 3 utility functions: