[][src]Module spectrusty_core::video

Re-exports

pub use pixel::Palette;
pub use pixel::PixelBuffer;

Modules

pixel

Building blocks for rendering pixel surfaces.

Structs

BorderColor

Bitflags defining ZX Spectrum's border colors.

CellCoords

General-purpose coordinates, used by various video related methods as a return or an argument type.

ParseBorderSizeError
TryFromU8BorderColorError
TryFromUIntBorderSizeError

Enums

BorderSize

This enum is used to select border size when rendering video frames.

Constants

MAX_BORDER_SIZE

Maximum border size measured in low-resolution pixels.

PAL_HC

A halved count of PAL pixel columns (low resolution).

PAL_VC

A halved count of PAL pixel lines (low resolution).

Traits

Video

An interface for rendering Spectrum's pixel data to frame buffers.

VideoFrame

A collection of static methods and constants related to video parameters.

Functions

color_line_offset

Returns an offset into attributes memory of the given vertical coordinate y [0, 192) (0 on top).

pixel_line_offset

Returns an offset into INK/PAPER bitmap memory of the given vertical coordinate y [0, 192) (0 on top).