57#define MOD_NAME "[dump] "
79 if (strcmp(cfg,
"help") == 0) {
85 if (strlen(cfg) == 0) {
86 time_t t = time(NULL);
87 struct tm tm_buf = { 0 };
89 strftime(dirname,
sizeof dirname,
"dump.%Y%m%dT%H%M%S",
114 for (
unsigned int i = 0; i < s->
f->
tile_count; ++i) {
169 for (
unsigned int i = 0; i < s->
f->
tile_count; ++i) {
182 *available_cards = NULL;
struct video_frame * frame
const char unsigned int flags
int void(** deleter)(void *))
void vf_free(struct video_frame *buf)
Frees video_frame structure.
void vf_data_deleter(struct video_frame *buf)
struct video_frame * vf_alloc_desc(struct video_desc desc)
Allocates video frame accordig given desc.
int color_printf(const char *format,...)
void log_msg(int level, const char *format,...)
#define LOG_LEVEL_ERROR
general errors
static void display_dump_probe(struct device_info **available_cards, int *count, void(**deleter)(void *))
static void display_dump_done(void *state)
static bool display_dump_reconfigure(void *state, struct video_desc desc)
static bool display_dump_get_property(void *state, int property, void *val, size_t *len)
static void * display_dump_init(struct module *parent, const char *cfg, unsigned int flags)
static struct video_frame * display_dump_getf(void *state)
static bool display_dump_putf(void *state, struct video_frame *frame, long long flags)
static const struct video_display_info display_dump_info
void export_video(struct exporter *s, struct video_frame *frame)
void export_destroy(struct exporter *s)
struct exporter * export_init(struct module *parent, const char *cfg, bool should_export)
#define VIDEO_DISPLAY_ABI_VERSION
@ DISPLAY_PROPERTY_VIDEO_MODE
requested video mode - int (one of display_prop_vid_mode)
@ DISPLAY_PROPERTY_CODECS
list of natively supported codecs - codec_t[]
@ DISPLAY_PROPERTY_VIDEO_SEPARATE_TILES
framebuffer consists of separate tiles
@ LIBRARY_CLASS_VIDEO_DISPLAY
#define REGISTER_MODULE(name, info, lclass, abi)
Registers module to global modules' registry.
char * data
Raw tile data. Pointer must be at least 4B aligned.
unsigned int data_len
length of the data
unsigned int width
width of every tile (!)
unsigned int height
height of every tile (!)
void(* data_deleter)(struct video_frame *)
Struct video_frame represents a video frame and contains video description.
unsigned int decoder_overrides_data_len
struct tile tiles[FLEXIBLE_ARRAY_MEMBER]
struct video_frame_callbacks callbacks
@ VIDEO_CODEC_COUNT
count of known video codecs (including VIDEO_CODEC_NONE)
This is an umbrella header for video functions.
bool is_codec_opaque(codec_t codec)