Skip to content

Per-plane VideoFrame copyTo() #431

Open
@chcunningham

Description

@chcunningham

(No urgent requests for this feature. Just relocating an idea from Chrome's bug tracker. Yell if you're interested!)

There may be cases where apps would be more efficient if they copied only the Y plane, only the non-alpha planes, or only the alpha plane.

Potential strategies:

  • Add a per-plane discard flag to copyTo().
  • Allow the copyTo() layout to be shorter than the number of planes, implying discard (doesn't solve alpha-only).
  • Provide a plane-subset configuration flag to copyTo() eg. {planes: "Y"} or a more generic conversion API eg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensionInterface changes that extend without breaking.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions