preview

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package preview is used to emulate a ROM for a short period of time in order to gather information that would takes time to acquire.

For example, it is used to determine the initial framing for the television on startup. Without a preview emulation the default framing will most often be wrong, resulting in a visible change in the image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulation

type Emulation struct {
	// contains filtered or unexported fields
}

func NewEmulation

func NewEmulation(prefs *preferences.Preferences) (*Emulation, error)

NewEmulation is the preferred method of initialisation for the Emulation type

func (*Emulation) Results

func (em *Emulation) Results() *Results

func (*Emulation) Run

func (em *Emulation) Run(loader cartridgeloader.Loader) error

Run the preview emulation for 30 frames

func (*Emulation) RunN

func (em *Emulation) RunN(loader cartridgeloader.Loader, N int) error

RunN runs the preview emulation for N frames

type Results

type Results struct {
	VCS       *hardware.State
	FrameInfo television.FrameInfo
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL