libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.54k stars 1.77k forks source link

Future camera API work... #9108

Open icculus opened 7 months ago

icculus commented 7 months ago

All of this is not for 3.2.0 (unless we want it to be), but I wanted to make sure this isn't lost now that we've merged the camera stuff.

icculus commented 7 months ago

Platforms that provide their own device thread will not work with the Zombie fallback implementations unless they continue to call the device thread's Iterate function at a regular frequency, but most probably fail to do so once the device is lost. Could be interesting to try spinning a thread at that point to take over. Doing nothing in this case just means SDL_AcquireCameraFrame() just returns NULL immediately instead of providing blank frames for lost hardware.

Halfway through typing this, I realized the zombie thing is silly and we should just provide the blank frames right in SDL_AcquireCameraFrame() and not worry about threads for failed/disconnected cameras.

icculus commented 5 months ago

Windows hotplug has a separate issue tracking it, that we should try to get into 3.2.0 if possible: #9455