Skip to content

[Feature-Request] {Reduce image copying} #1275

@AiYangSky

Description

@AiYangSky

Start with the why:

I aim to transfer the captured images to other processes for further processing. Currently, I am utilizing shared memory to minimize system overhead; however, I have not identified a suitable interface to eliminate the overhead associated with image copying. Additionally, it has been observed that the ImgFrame::getFrame interface also involves a copying operation. Could you please consider optimizing this aspect?

Move to the what:

Could you please provide an interface that enables image data to be directly stored in the user-provided cache?

Like ImgFrame& setFrame(cv::Mat frame), but only providing a buffer instead of cv::Mat.

Move to the how:

Could we consider mapping the user-provided buffer to RawBuffer::data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions