MLT  7.34.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_export.h"
27 #include "mlt_types.h"
33 struct mlt_slices_s;
34 
35 typedef int (*mlt_slices_proc)(int id, int idx, int jobs, void *cookie);
36 
37 MLT_EXPORT int mlt_slices_count_normal();
38 
39 MLT_EXPORT int mlt_slices_count_rr();
40 
41 MLT_EXPORT int mlt_slices_count_fifo();
42 
43 MLT_EXPORT void mlt_slices_run_normal(int jobs, mlt_slices_proc proc, void *cookie);
44 
45 MLT_EXPORT void mlt_slices_run_rr(int jobs, mlt_slices_proc proc, void *cookie);
46 
47 MLT_EXPORT void mlt_slices_run_fifo(int jobs, mlt_slices_proc proc, void *cookie);
48 
49 MLT_EXPORT int mlt_slices_size_slice(int jobs, int index, int input_size, int *start);
50 
51 #endif
int(* mlt_slices_proc)(int id, int idx, int jobs, void *cookie)
Definition: mlt_slices.h:35
MLT_EXPORT void mlt_slices_run_rr(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:408
MLT_EXPORT void mlt_slices_run_fifo(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:413
MLT_EXPORT void mlt_slices_run_normal(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:403
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