I have a linux-based Qt program that, as Qt does, runs in its own thread.
I set up an opengl context and some openGL textures (*) in the Qt widgets and start running the Qt thread.
Now I have another independent thread or process that decodes video … and I would like to dump the decoded frames into the openGL textures (*).
I have done some research and concluded that this can be achieved with multithreading.
How about multiprocessing? I.e. in posix, calling the fork system call to differentiate a new process, having its own memory space.
How do openGL contexts behave over fork ? Any chance to get such a thing working or is it a plain dead end…?
At least in X11 you can pass window id numbers around to achieve this kind of things…