How to implement property which can take two dimentional array

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to implement property which can take two dimentional array

John.paul@gmail.com
Hi,

Can somebody provide me some pointers to implement a property in gstreamer plugin which can take two dimensional array from user. User is going to provide around 8 values at a time using this property to plugin.


Thanks,
Yogesh

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to implement property which can take two dimentional array

jared Hu
Hi John,

I'am also trying to do this, have you find any solutions?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to implement property which can take two dimentional array

Antonio Ospite-2
In reply to this post by John.paul@gmail.com
On Thu, 25 Jun 2015 19:11:55 +0530
Yogesh Tyagi <[hidden email]> wrote:

> Hi,
>
> Can somebody provide me some pointers to implement a property in gstreamer
> plugin which can take two dimensional array from user. User is going to
> provide around 8 values at a time using this property to plugin.
>

When you say "two dimensional array" you mean _one_ two-dimensional
(adjective) array? A matrix?

Some elements pass matrices as flat arrays, and document the elements
order in the help text, see what the perspective plugin does:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/geometrictransform/gstperspective.c#n227

Ciao,
   Antonio

--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to implement property which can take two dimentional array

Baby Octopus
I would think the easiest way is to implement GstStructure and have the names as matrix_0_0, matrix_0_1 and so on..
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to implement property which can take two dimentional array

Nicolas Dufresne-5
In reply to this post by jared Hu
Le mardi 18 juillet 2017 à 01:46 -0700, jared Hu a écrit :
> Hi John,
>
> I'am also trying to do this, have you find any solutions?

See audiomixmatrix element, property matrix:

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/audiomixmatrix/gstaudiomixmatrix.c#n180

>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/How-to-implement-property-which-can-take-two-dimentional-array-
> tp4672449p4683845.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment
Loading...