Go to the source code of this file.
◆ MAX_TILES
◆ done()
| static void done |
( |
void * | state | ) |
|
|
static |
◆ filter()
Definition at line 103 of file split.c.
104{
106
114
116 return out;
117}
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)
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)
#define VIDEO_FRAME_DISPOSE(frame)
References video_frame::callbacks, desc, video_frame_callbacks::dispose, video_desc::height, state, video_desc::tile_count, vf_alloc_desc_data(), vf_free(), vf_split(), video_desc_from_frame(), VIDEO_FRAME_DISPOSE, video_desc::width, state_split::x, and state_split::y.
◆ init()
| static int init |
( |
struct module * | parent, |
|
|
const char * | cfg, |
|
|
void ** | state ) |
|
static |
Definition at line 71 of file split.c.
72{
74 int x, y;
75
76 if (!cfg || strchr(cfg, ':') == NULL) {
78 return -1;
79 }
80 if (strcasecmp(cfg, "help") == 0) {
82 return 1;
83 }
84
85 x = atoi(cfg);
86 y = atoi(strchr(cfg, ':') + 1);
87 assert(x > 0 && y > 0);
88
89
93
95 return 0;
96}
References parent, state, UNUSED, usage(), state_split::x, and state_split::y.
◆ REGISTER_MODULE()
◆ usage()
| static void usage |
( |
void | | ) |
|
|
static |
◆ capture_filter_split
Initial value:= {
}
static struct video_frame * filter(void *state, struct video_frame *in)
static void done(void *state)
static int init(struct module *parent, const char *cfg, void **state)
Definition at line 119 of file split.c.