opengl: interop sw: Refactor initialization to simplify format selection
This merge request is a rework of !2298 (closed). I tried to check that it works with most fourcc (mainly by checking it with mock://
and raw-vid
)
cc @rom1v @alexandre-janniaux as you reviewed the original MR
Edited by Pierre Lamot