Skip to content

imdecode does not reuse dst if size differs #8606

Open

Description

imdecode does allow users to reuse a pixel buffer by passing it as dst. Unfortunately, this only works if the size is actually the right size to be decoded. Otherwise, opencv allocates a new buffer. It seems this is not really within the intent for this argument. It would be really useful if users could make sure that their buffer can always be reused (even if it has to be wrapped in a new Mat structure)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions