[][src]Trait spectrusty::video::frame_cache::PlusVidFrameDataIterator

pub trait PlusVidFrameDataIterator: Iterator<Item = (u8, u8, Ts)> {
    pub fn next_line(&mut self);
}

Implemented by screen data iterators for rendering an image of a video frame using RendererPlus.

This emulates the Spectrum's ULAplus/Timex's SCLD reading two bytes of video data to compose a single cell consisting of 8 (or 16 in hi-res) pixels.

In low resolution mode the first byte returned by the iterator is interpreted as INK/PAPER bit selector (an INK mask) and the second as a color attribute.

In high resolution mode both bytes are being used to render 16 monochrome pixels.

The third value is a horizontal latch timestamp used to synchronize changes to the screen mode and the palette.

Required methods

pub fn next_line(&mut self)[src]

Forwards the iterator to the beginning of the next video line.

Loading content...

Implementors

impl<'a, V, I> PlusVidFrameDataIterator for ScldFrameProducer<'a, V, I> where
    V: VideoFrame,
    I: Iterator<Item = VideoTsData2>, 
[src]

impl<'a, V, IM, IS> PlusVidFrameDataIterator for PlusFrameProducer<'a, V, IM, IS> where
    V: VideoFrame,
    IM: Iterator<Item = VideoTsData2>,
    IS: Iterator<Item = VideoTs>, 
[src]

Loading content...