Hi,

Vishnu Viswanath wrote
> Hi,
> You have some filters as plugin in gmerlin. We would like to demonstrate
> by
> applying some of these filters like blur and colorbalance.

Basically you create a thread pool (include/gmerlin/bggavl.h).
Then you get the video options of the filter and set up the
options to use the thread pool:

gavl_video_options_t * opt;
bg_thread_pool_t * tp;

gavl_video_options_set_num_threads(opt, num_threads);

gavl_video_options_set_run_func(opt, bg_thread_pool_run, tp);

gavl_video_options_set_stop_func(opt, bg_thread_pool_stop, tp);

The filter will be multithreaded then.

It should be noticed, that not all filters are multithreading capable,
but the color filters and the blur filters are.

Burkhard



------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general

Reply via email to