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 luma_only mode to MPEG-1 decoder to reduce memory use #36

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

Conversation

unwiredben
Copy link

If you specify luma_only as true, the decoder will only allocate memory for the Y buffer, not the Cr/Cb buffers and will avoid any code that might try to modify cb.data or cr.data. This is useful in an embedded context where you're driving a monochrome screen or don't have enough memory to decode color.

If you specify luma_only as true, the decoder will only allocate memory
for the Y buffer, not the Cr/Cb buffers and will avoid any code that
might try to modify cb.data or cr.data.  This is useful in an embedded
context where you're driving a monochrome screen or don't have enough
memory to decode color.
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