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

dec265: Resize window if image resolution changes mid-stream. #462

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

Conversation

fancycode
Copy link
Member

Fixes the first example from #460

@farindk the stream changes image information as follows:

Image: 352x288 bpp_y=8 bpp_c=8
Image: 512x256 bpp_y=8 bpp_c=8
Image: 512x256 bpp_y=14 bpp_c=8
Image: 512x256 bpp_y=14 bpp_c=8

I fixed the crash by resizing the SDL window if the image size in the stream changes.

The second example still crashes on the fist image in the stream, I haven't figured out why yet. Looks like the memory returned from SDL_LockTexture is too small for display444as420 later even through the width/height seem to match from what was created.

@fancycode fancycode marked this pull request as draft July 8, 2024 08:45
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