Raxol.Terminal.Graphics.Manager (Raxol v0.5.0)

View Source

Manages terminal graphics operations including:

  • Image rendering to sixel format
  • Sixel data processing
  • Graphics pipeline optimization
  • Metrics tracking

Summary

Functions

Gets the current metrics.

Creates a new graphics manager with default state.

Optimizes the graphics pipeline.

Processes sixel data into an image.

Renders an image to sixel format with the given options.

Types

t()

@type t() :: %Raxol.Terminal.Graphics.Manager{
  images: %{required(String.t()) => map()},
  metrics: %{
    images_rendered: integer(),
    sixels_processed: integer(),
    cache_hits: integer(),
    cache_misses: integer(),
    pipeline_optimizations: integer()
  },
  pipeline: [function()],
  sixel_cache: %{required(String.t()) => map()}
}

Functions

get_metrics(manager)

@spec get_metrics(t()) :: map()

Gets the current metrics.

new()

@spec new() :: t()

Creates a new graphics manager with default state.

optimize_pipeline(manager)

@spec optimize_pipeline(t()) :: {:ok, t()}

Optimizes the graphics pipeline.

process_sixel(manager, sixel_data)

@spec process_sixel(t(), map()) :: {:ok, map(), t()} | {:error, term()}

Processes sixel data into an image.

render_image(manager, image, opts)

@spec render_image(t(), map(), map()) :: {:ok, map(), t()} | {:error, term()}

Renders an image to sixel format with the given options.