Skip to content

Implemented mvdstdCalculateBufferSize() #569

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Core-2-Extreme
Copy link

@Core-2-Extreme Core-2-Extreme commented Apr 3, 2025

I've analyzed and implemented mvdstdCalculateBufferSize() to calculate working buffer size for H.264 video decoding on MVD based on video (resolution/H.264 level etc...).

Currently we don't have any way to calculate working buffer size, so only way to use MVD is just use MVD_DEFAULT_WORKBUF_SIZE (or maybe just put random value to check if it works for your video), it's fine if you want to decode (most of) 480p videos.

However that doesn't mean MVD can't decode more than that (actually it can decode 1080p if enough buffer is provided) so we should also have a way to calculate it, this can also be used to calculate smaller size for lower resolution/level videos.

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