Documentation
¶
Index ¶
- func ResolveFFmpegExecutable() (string, error)
- type CommandResult
- type Runner
- type Service
- func (s *Service) Capture(ctx context.Context, meta api.PreparedMetadata, ...) (result api.ScreenshotResult, err error)
- func (s *Service) Delete(ctx context.Context, meta api.PreparedMetadata, imagePath string) error
- func (s *Service) Plan(ctx context.Context, meta api.PreparedMetadata, count int) (plan api.ScreenshotPlan, err error)
- func (s *Service) PreviewFrame(ctx context.Context, meta api.PreparedMetadata, timestampSeconds float64) (preview api.ScreenshotPreview, err error)
- func (s *Service) SaveFinalSelections(ctx context.Context, meta api.PreparedMetadata, images []api.ScreenshotImage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveFFmpegExecutable ¶ added in v0.2.4
ResolveFFmpegExecutable returns the existing bundled-or-PATH FFmpeg choice shared by screenshot and DVD-menu capture services.
Types ¶
type CommandResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewServiceWithRepo ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.