54#define MOD_NAME "[vpp/delay] "
71 assert(codecs_len <= *
len);
86 "-p delay:help")
"\n");
87 color_printf(
"\nSeconds can be given as a decimal number.\n");
104 const char *val_s = strchr(config,
'=') + 1;
105 double val = strtod(val_s, NULL);
108 MSG(ERROR,
"Wrong delay value: %s\n", val_s);
112 MSG(ERROR,
"Number of frames should be an integer, given: %s\n",
124 MSG(INFO,
"Delay set to %g %s.\n",
val,
171 const size_t linesize =
174 memcpy(out->
tiles[0].
data + i * req_pitch,
175 f->
tiles[0].
data + i * linesize, linesize);
void vf_free(struct video_frame *buf)
Frees video_frame structure.
int vc_get_linesize(unsigned int width, codec_t codec)
struct video_frame * vf_alloc_desc_data(struct video_desc desc)
int color_printf(const char *format,...)
static __device__ vec3 round(const vec3 &v)
static void delay_get_out_desc(void *state, struct video_desc *out, int *in_display_mode, int *out_frames)
static void delay_done(void *state)
static bool delay_get_property(void *state, int property, void *val, size_t *len)
static const struct vo_postprocess_info vo_pp_delay_info
static void * delay_init(const char *config)
static bool delay_postprocess(void *state, struct video_frame *in, struct video_frame *out, int req_pitch)
static bool delay_reconfigure(void *state, struct video_desc desc)
static struct video_frame * delay_getf(void *state)
@ DISPLAY_PROPERTY_VIDEO_MERGED
monolithic framebuffer
@ LIBRARY_CLASS_VIDEO_POSTPROCESS
#define REGISTER_MODULE(name, info, lclass, abi)
Registers module to global modules' registry.
void simple_linked_list_append(struct simple_linked_list *l, void *data)
int simple_linked_list_size(struct simple_linked_list *l)
struct simple_linked_list * simple_linked_list_init(void)
void simple_linked_list_destroy(struct simple_linked_list *l)
void * simple_linked_list_pop(struct simple_linked_list *l)
#define IS_KEY_PREFIX(tok, key)
expands to true value if <k> from tok in format <k>=<v> is prefix of key
struct simple_linked_list * cached_frames
char * data
Raw tile data. Pointer must be at least 4B aligned.
unsigned int height
height of every tile (!)
Struct video_frame represents a video frame and contains video description.
struct tile tiles[FLEXIBLE_ARRAY_MEMBER]
#define VO_PP_PROPERTY_CODECS
#define VO_PP_ABI_VERSION