C code to gstreamer plugin conversion

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

C code to gstreamer plugin conversion

arnabsamanta
 Hi
        i have an application which has a number of C++ files and i need to make
the application as a gstreamer plug in.
        what are the basic steps to do so ?
        i know how to create a source and a sink pad.
        do i need to declare all functions of all the C++ codes within the init
functions ?
 regards,
  ~Arnab



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: C code to gstreamer plugin conversion

Stefan Sauer
hi,

arnabsamanta schrieb:
>  Hi
> i have an application which has a number of C++ files and i need to make
> the application as a gstreamer plug in.
> what are the basic steps to do so ?
> i know how to create a source and a sink pad.
> do i need to declare all functions of all the C++ codes within the init
> functions ?
>  
Please read the plugin writers guide. Also have a look at the
gst-plugins-* packages which has a few c++ based plugins (just search
for *.cc)

Stefan

>  regards,
>   ~Arnab
>
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: C code to gstreamer plugin conversion

jagadees r
Please have a look at this if you have not seen already:
http://code.google.com/p/gst-player/downloads/list

-Jagadees

On Mon, Sep 22, 2008 at 7:45 PM, Stefan Kost <[hidden email]> wrote:

> hi,
>
> arnabsamanta schrieb:
>>  Hi
>>       i have an application which has a number of C++ files and i need to make
>> the application as a gstreamer plug in.
>>       what are the basic steps to do so ?
>>       i know how to create a source and a sink pad.
>>       do i need to declare all functions of all the C++ codes within the init
>> functions ?
>>
> Please read the plugin writers guide. Also have a look at the
> gst-plugins-* packages which has a few c++ based plugins (just search
> for *.cc)
>
> Stefan
>
>>  regards,
>>       ~Arnab
>>
>>
>>
>> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: C code to gstreamer plugin conversion

Stefan Sauer
In reply to this post by arnabsamanta
hi,

please leave the discussion on the list.

arnabsamanta schrieb:
> Hi Stefan,
> thanks a lot for your reply.
> i have gone through the pwg. and i know the basics of plug ins.
> i just have a small confusion. when i already have a C++ code with a number
> of functions calling each other , so in the _init() function do i need to
> initialize only the main calling function of the code ? in that case can i
> name and treat the function as the chain function ?
>  
All gstreamer elements are gobjects. You want to read the first chapter
in gobject api docs as well. a gobject has a lifecycle. The _init()
function is called once for each new instance. A _chain() function is
used to process chunks of data. You need to implement a gobject and call
your c++ functions at the appropriate place. In _init() you would e.g.
do a new() of the c++ class and store the instance in the gobject
instance. But as I said, please check the existing c++ plugins.

Stefan


> thanks and regards,
>  ~Arnab
>
>
> -----Original Message-----
> From: Stefan Kost [mailto:[hidden email]]
> Sent: Monday, September 22, 2008 7:45 PM
> To: [hidden email]; Discussion of the development of
> GStreamer
> Subject: Re: [gst-devel] C code to gstreamer plugin conversion
>
>
> hi,
>
> arnabsamanta schrieb:
>  
>>  Hi
>> i have an application which has a number of C++ files and i need to make
>> the application as a gstreamer plug in.
>> what are the basic steps to do so ?
>> i know how to create a source and a sink pad.
>> do i need to declare all functions of all the C++ codes within the init
>> functions ?
>>
>>    
> Please read the plugin writers guide. Also have a look at the
> gst-plugins-* packages which has a few c++ based plugins (just search
> for *.cc)
>
> Stefan
>
>  
>>  regards,
>>   ~Arnab
>>
>>
>>
>> The information contained in this electronic message and any attachments
>>    
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments contained in it.
>  
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>    
> challenge
>  
>> Build the coolest Linux based applications with Moblin SDK & win great
>>    
> prizes
>  
>> Grand prize is a trip for two to an Open Source event anywhere in the
>>    
> world
>  
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>    
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
>  


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel