Applying shader to multiple input pads

Jonas Danielsson jonas.danielsson at spiideo.com
Fri Nov 11 13:48:07 UTC 2022


Hello!

We are working on a project where we want to take two video frames
(GLMemory)
from two input pads and perform an operation on GPU using a shader with both
frames as input. The output from this should be a single video frame in
GLMemory.

And we want to do it in Rust. We are a bit stumped on what the best approach
is for this and was wondering if someone could help us out a bit.

If we were to implement this as a element in Rust, then what should we use
as
a base class? And what help could we expect to get from it? We managed to
perform transformations on a singla pad input using GstGLFilter as a parent
but we are not sure what to use when we want to work on two GLMemory inputs.

In general do if you have examples of working with multiple input pads in
Rust
we are interested! :)

All help and documentation tips appreciated!

Jonas Danielsson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221111/4d2d7b8e/attachment.htm>


More information about the gstreamer-devel mailing list