Skip to content

add ability to clear out contents of ImgFrame#686

Draft
mbechard wants to merge 1 commit intoluxonis:mainfrom
mbechard:main
Draft

add ability to clear out contents of ImgFrame#686
mbechard wants to merge 1 commit intoluxonis:mainfrom
mbechard:main

Conversation

@mbechard
Copy link
Copy Markdown

also return a reference to the shared_ptr buffer, so the caller can decide if they want to incur an ref-count increment or not.

Really the 'img' member seems unnecessary, and can be replaced with a get function that does the cast each time the buffer is needed. I'm not sure if keeping the size of the class the same is a requirement (which is why I left it as a * for now).

If this workflow is acceptable, I'd expand it to the other data types as well.

also return a reference to the shared_ptr buffer, so the caller
can decide if they want to incur an ref-count increment or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant