Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


pw_init()


Prototype   :

                     void pw_init(int *argc, char **argv[])

Parameter  :

                      argc - Pointer to argc

                      argv - Ponter to argv

Return Val   :

                    Void

Description :

                   It will initialize Pipewire system,parse and modify any parameters given by argc and argv and setup the debugging.

                   This will load and configure the right modules and setup logging and other tasks.

                   Debug environment variable : export PIPEWIRE_DEBUG



pw_main_loop_new()


Prototype   :

                     struct pw_main_loop *pw_main_loop_new(const struct spa_dict *props)

Parameter  :

                    props - Pointer to properties of spa dictionary

Return Val   :

                    It will return newly allocated mail loop pointer

Description :

                  The mainloop is an abstraction of a big poll loop, waiting for events to occur and things to do. Most of the PipeWire work will actually be performed in the context of this loop.


pw_stream_new_simple()


Prototype   : 

                     struct pw_stream* pw_stream_new_simple     (     struct pw_loop *      loop,

                                                                                                  const char *      name,

                                                                                                  struct pw_properties *      props,

                                                                                                  const struct pw_stream_events *      events,

                                                                                                  void *      data 

                                                                                          )     

Parameter  : 

                    loop    - a Loop to use

                    name  - a stream media name

                    props  - stream properties, ownership is taken

                    events - stream events

                    data    - data passed to events 

Return Val   :

This will return a created stream object


Description :

                   This will create a stream object with different properties to make it a Camera Video Capture stream