Skip to content

Refactor sw_scale into new class #1135

@mollyxu

Description

@mollyxu

Follow-up to todo mentioned in #1130

We should probably refactor the sws logic into its own class, similar to what we did for filtergraph.

  • Encapsulate the double swscale path (color conversion + resize)
  • Handle context caching internally (like FilterGraph is created once and reused)
  • Provide a clean convert() API similar to FilterGraph::convert()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions