56#define MAGIC 0x45bb3321
58static void none_compress_done(
struct module *mod);
60struct state_video_compress_none {
68 struct state_video_compress_none *s;
70 s = (
struct state_video_compress_none *) malloc(
sizeof(
struct state_video_compress_none));
75 s->module_data.
deleter = none_compress_done;
78 return &s->module_data;
81std::shared_ptr<video_frame> none_compress(
struct module *mod, std::shared_ptr<video_frame>
tx)
83 struct state_video_compress_none *s = (
struct state_video_compress_none *) mod->
priv_data;
85 assert(s->magic ==
MAGIC);
90static void none_compress_done(
struct module *mod)
92 struct state_video_compress_none *s = (
struct state_video_compress_none *) mod->
priv_data;
94 assert(s->magic ==
MAGIC);
void module_init_default(struct module *module_data)
void module_register(struct module *module_data, struct module *parent)
#define VIDEO_COMPRESS_ABI_VERSION
@ LIBRARY_CLASS_VIDEO_COMPRESS
#define REGISTER_MODULE(name, info, lclass, abi)
Registers module to global modules' registry.
API for video compress drivers.