Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to clear out contents of ImgFrame #686

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbechard
Copy link

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