Sam Lantinga

Results 1865 comments of Sam Lantinga

Looking at the camera code it's almost certainly wrong, but it would be helpful to have a repro case to test any fix. What Android device are you using to...

What Android device is this?

> So the problem is the row stride. The camera reported width and thus also the SDL_Surface's is `2328`. However the row stride of the plane data is `2368`. I...

> SDL should be able to handle width != stride as long as this is coherent between planes. Yep, that's correct. Is frame_current->pitch == 2368?

> > SDL should be able to handle width != stride as long as this is coherent between planes. > > Yep, that's correct. > > Is frame_current->pitch == 2368?...

Can you try out the latest main code, including https://github.com/libsdl-org/SDL/commit/02e85a153f6d56c36d671842faac42b5b83a6ba9 and see if that fixes this issue?

Does testcamera have the same issue?

> > Does testcamera have the same issue? > > No, it is Flawless. Okay, I'm going to assume it's an issue with how you're handling the camera frames. I'm...

If you can't get a minimal repro, may I suggest using the GPU renderer instead? I'm planning to deprecate the direct3d12 and vulkan renderers in favor of that one.