On Sat, Oct 28, 2023 at 3:15 AM Ged Wed <gedw99@gmail.com> wrote:
>
> https://github.com/zergon321/reisen/blob/master/examples/player/main.go
> is a good example of what is needed also.
>
> The video and audio is decoded and then but on to the buffer and
> played with Editen. GIo can also be used i think.
Yes, Gio can be used in this way, but this is the inefficient strategy
that copies the frame image data multiple times. The optimal approach
is to decode the video frame straight into GPU memory and then
reference that texture from Gio, but we lack the necessary ops. The
best we can do right now is a custom renderer window that shares a GL
context between Gio and the video decoder.
Cheers,
Chris