screenshots

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: GPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveFFmpegExecutable added in v0.2.4

func ResolveFFmpegExecutable() (string, error)

ResolveFFmpegExecutable returns the existing bundled-or-PATH FFmpeg choice shared by screenshot and DVD-menu capture services.

Types

type CommandResult

type CommandResult struct {
	Stdout   []byte
	Stderr   []byte
	ExitCode int
}

type Runner

type Runner interface {
	Run(ctx context.Context, name string, args []string, dir string) (CommandResult, error)
}

type Service

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

func NewService

func NewService(cfg config.Config, logger api.Logger, tmpRoot string, runner Runner) *Service

func NewServiceWithRepo

func NewServiceWithRepo(cfg config.Config, logger api.Logger, tmpRoot string, runner Runner, repo api.MetadataRepository) *Service

func (*Service) Capture

func (s *Service) Capture(ctx context.Context, meta api.PreparedMetadata, selections []api.ScreenshotSelection, purpose api.ScreenshotPurpose) (result api.ScreenshotResult, err error)

Capture renders the requested frames into the prepared release's managed temp directory and records each image with purpose. It returns successful images plus per-selection failures and honors context cancellation.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, meta api.PreparedMetadata, imagePath string) error

func (*Service) Plan

func (s *Service) Plan(ctx context.Context, meta api.PreparedMetadata, count int) (plan api.ScreenshotPlan, err error)

func (*Service) PreviewFrame

func (s *Service) PreviewFrame(ctx context.Context, meta api.PreparedMetadata, timestampSeconds float64) (preview api.ScreenshotPreview, err error)

func (*Service) SaveFinalSelections

func (s *Service) SaveFinalSelections(ctx context.Context, meta api.PreparedMetadata, images []api.ScreenshotImage) error

SaveFinalSelections replaces normal final selections from images while preserving manual and automatic disc-menu selections. Menu-purpose images in the input are ignored rather than reclassified as normal screenshots.

Jump to

Keyboard shortcuts

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