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

[droidcamsrc] have buffer pool for raw buffers #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peat-psuwit
Copy link
Contributor

Now that post-preview option is suppoted, raw preview buffer will be
used more often. Thus, it make sense to use buffer pool with raw
preview buffer too.

This patch add code to ensure & configure buffer pool for raw buffers
whenever preview callback is required to be enabled. While at it, also
add support for buffer pool negotiation when using raw preview mode.
This reduces CPU usage as it longer repeatedly allocate memory.

Now that post-preview option is suppoted, raw preview buffer will be
used more often. Thus, it make sense to use buffer pool with raw
preview buffer too.

This patch add code to ensure & configure buffer pool for raw buffers
whenever preview callback is required to be enabled. While at it, also
add support for buffer pool negotiation when using raw preview mode.
This reduces CPU usage as it longer repeatedly allocate memory.
@pvuorela
Copy link
Contributor

pvuorela commented Jul 6, 2021

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.

2 participants