MLT  7.24.0
mlt_slices.h
Go to the documentation of this file.
1 
23 #ifndef MLT_SLICES_H
24 #define MLT_SLICES_H
25 
26 #include "mlt_types.h"
27 
33 struct mlt_slices_s;
34 
35 typedef int (*mlt_slices_proc)(int id, int idx, int jobs, void *cookie);
36 
38 
39 extern int mlt_slices_count_rr();
40 
41 extern int mlt_slices_count_fifo();
42 
43 extern void mlt_slices_run_normal(int jobs, mlt_slices_proc proc, void *cookie);
44 
45 extern void mlt_slices_run_rr(int jobs, mlt_slices_proc proc, void *cookie);
46 
47 extern void mlt_slices_run_fifo(int jobs, mlt_slices_proc proc, void *cookie);
48 
49 extern int mlt_slices_size_slice(int jobs, int index, int input_size, int *start);
50 
51 #endif
void mlt_slices_run_normal(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:403
void mlt_slices_run_fifo(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:413
int(* mlt_slices_proc)(int id, int idx, int jobs, void *cookie)
Definition: mlt_slices.h:35
void mlt_slices_run_rr(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:408
Provides forward definitions of all public types.
Definition: mlt_slices.c:57
int mlt_slices_count_fifo()
Get the number of slices for the fifo scheduling policy.
Definition: mlt_slices.c:394
int mlt_slices_count_normal()
Get the number of slices for the normal scheduling policy.
Definition: mlt_slices.c:364
int mlt_slices_count_rr()
Get the number of slices for the round robin scheduling policy.
Definition: mlt_slices.c:379
int mlt_slices_size_slice(int jobs, int index, int input_size, int *start)
Compute size of a slice.
Definition: mlt_slices.c:431