[][src]Module spectrusty::video

Modules

frame_cache
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.

PaletteChange

The type used to record changes of ULAplus palette entries.

ParseBorderSizeError
RenderMode

Flags determining the rendering mode and the border color.

Renderer

Implements a method to render an image of a video frame for classic ZX Spectrum low resolution modes.

RendererPlus

Implements a method to render the double pixel density image of a video frame for ULAplus/SCLD modes.

TryFromU8BorderColorError
TryFromU8RenderModeError
TryFromUIntBorderSizeError
UlaPlusPalette

The type used for an ULAplus G3R3B2 / grayscale palette.

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

Palette

A trait used for obtaining pixel colors.

PixelBuffer

A trait for providing a way for placing pixels into byte buffers.

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).