66 printf(
"Splits frame to XxY tiles:\n\n");
67 printf(
"split usage:\n");
76 if (!cfg || strchr(cfg,
':') == NULL) {
80 if (strcasecmp(cfg,
"help") == 0) {
86 y = atoi(strchr(cfg,
':') + 1);
87 assert(x > 0 && y > 0);
void vf_free(struct video_frame *buf)
Frees video_frame structure.
struct video_desc video_desc_from_frame(const struct video_frame *frame)
Returns struct video_desc from video frame.
struct video_frame * vf_alloc_desc_data(struct video_desc desc)
static struct video_frame * filter(void *state, struct video_frame *in)
static const struct capture_filter_info capture_filter_split
static void done(void *state)
static int init(struct module *parent, const char *cfg, void **state)
#define CAPTURE_FILTER_ABI_VERSION
int color_printf(const char *format,...)
@ LIBRARY_CLASS_CAPTURE_FILTER
#define REGISTER_MODULE(name, info, lclass, abi)
Registers module to global modules' registry.
unsigned int width
width of every tile (!)
unsigned int height
height of every tile (!)
void(* dispose)(struct video_frame *)
Struct video_frame represents a video frame and contains video description.
struct video_frame_callbacks callbacks
void vf_split(struct video_frame *out, struct video_frame *src, unsigned int x_count, unsigned int y_count, int preallocate)
This is an umbrella header for video functions.
#define VIDEO_FRAME_DISPOSE(frame)