pub struct FakePixelPath {
pub lines_seen: usize,
pub timings: Vec<VideoTiming>,
pub row_counts: Vec<usize>,
}Expand description
Replaces ‘VDC 1 straight into the VCE’ by mixing two rows: the second wins where its pixel is non-zero (a stand-in for the SuperGrafx’s VPC).
Fields§
§lines_seen: usize§timings: Vec<VideoTiming>§row_counts: Vec<usize>Trait Implementations§
Source§impl Default for FakePixelPath
impl Default for FakePixelPath
Source§fn default() -> FakePixelPath
fn default() -> FakePixelPath
Returns the “default value” for a type. Read more
Source§impl DeviceState for FakePixelPath
impl DeviceState for FakePixelPath
Source§fn load_state(&mut self, data: &[u8]) -> Result<(), String>
fn load_state(&mut self, data: &[u8]) -> Result<(), String>
Put the device in a saved state. A device without state accepts only an empty one.
Source§fn state_identity(&self) -> String
fn state_identity(&self) -> String
What the device is and which media it holds (a card’s ROM by its SHA-1, a disc by its
table of contents): a state is refused by a system whose device answers otherwise.
Source§impl PixelPath for FakePixelPath
impl PixelPath for FakePixelPath
fn mix(&mut self, timing: &VideoTiming, rows: Vec<Vec<u16>>) -> Vec<u16>
fn as_any_mut(&mut self) -> &mut dyn Any
fn claims(&self) -> Vec<(usize, usize)>
fn read(&mut self, address: u32, mclk: i64, pins: &mut BoardPins<'_>) -> u8
fn write( &mut self, address: u32, value: u8, mclk: i64, pins: &mut BoardPins<'_>, )
Auto Trait Implementations§
impl Freeze for FakePixelPath
impl RefUnwindSafe for FakePixelPath
impl Send for FakePixelPath
impl Sync for FakePixelPath
impl Unpin for FakePixelPath
impl UnwindSafe for FakePixelPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more