◆ mlt_slices_close()
Destroy sliced threading context.
- Parameters
-
◆ mlt_slices_count_fifo()
int mlt_slices_count_fifo |
( |
| ) |
|
Get the number of slices for the fifo scheduling policy.
- Returns
- the number of slices
◆ mlt_slices_count_normal()
int mlt_slices_count_normal |
( |
| ) |
|
Get the number of slices for the normal scheduling policy.
- Returns
- the number of slices
◆ mlt_slices_count_rr()
int mlt_slices_count_rr |
( |
| ) |
|
Get the number of slices for the round robin scheduling policy.
- Returns
- the number of slices
◆ mlt_slices_get_global()
Get a global shared sliced threading context.
There are separate contexts for each scheduling policy.
- Parameters
-
policy | the thread scheduling policy needed |
- Returns
- the context pointer
◆ mlt_slices_init()
static mlt_slices mlt_slices_init |
( |
int |
threads, |
|
|
int |
policy, |
|
|
int |
priority |
|
) |
| |
|
private |
Initialize a sliced threading context.
- Parameters
-
threads | number of threads to use for job list, 0 for #cpus |
policy | scheduling policy of processing threads, -1 for normal |
priority | priority value that can be used with the scheduling algorithm, -1 for maximum |
- Returns
- the context pointer
◆ mlt_slices_run()
Run sliced execution.
- Parameters
-
ctx | context pointer |
jobs | number of jobs to process |
proc | a pointer to the function that will be called |
cookie | an opaque data pointer passed to proc |
◆ mlt_slices_size_slice()
int mlt_slices_size_slice |
( |
int |
jobs, |
|
|
int |
index, |
|
|
int |
input_size, |
|
|
int * |
start |
|
) |
| |
Compute size of a slice.
This a helper function for use in a mlt_slices_proc() to get the number of pixels over which to operate.
- Parameters
-
| jobs | the number of slices |
| index | the zero-based index of the current slice |
| input_size | the size of a dimension, usually in pixel units, for example height |
[out] | start | the optional starting unit for this slice |
- Returns
- the size of the slice, typically in pixel units
◆ cond_mutex
pthread_mutex_t mlt_slices_s::cond_mutex |
◆ cond_var_job
pthread_cond_t mlt_slices_s::cond_var_job |
◆ cond_var_ready
pthread_cond_t mlt_slices_s::cond_var_ready |
◆ count
◆ f_exit
◆ head
◆ name
const char* mlt_slices_s::name |
◆ readys
◆ ref
◆ tail
◆ threads
The documentation for this struct was generated from the following file: