VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_filter.h
Go to the documentation of this file.
1/*****************************************************************************
2 * vlc_filter.h: filter related structures and functions
3 *****************************************************************************
4 * Copyright (C) 1999-2014 VLC authors and VideoLAN
5 *
6 * Authors: Gildas Bazin <gbazin@videolan.org>
7 * Antoine Cellerier <dionoea at videolan dot org>
8 * Rémi Denis-Courmont
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
24
25#ifndef VLC_FILTER_H
26#define VLC_FILTER_H 1
27
28#include <vlc_es.h>
29#include <vlc_picture.h>
30#include <vlc_codec.h>
31
34
35/**
36 * \defgroup filter Filters
37 * \ingroup output
38 * Audio, video, text filters
39 * @{
40 * \file
41 * Filter modules interface
42 */
43
46 picture_t *(*buffer_new)(filter_t *);
47 vlc_decoder_device * (*hold_device)(vlc_object_t *, void *sys);
48};
49
52 struct
53 {
54 void (*on_changed)(filter_t *,
55 const struct vlc_audio_loudness *loudness);
57};
58
61 subpicture_t *(*buffer_new)(filter_t *);
62};
63
64typedef struct filter_owner_t
66 union
67 {
68 const struct filter_video_callbacks *video;
71 };
72
73 /* Input attachments
74 * XXX use filter_GetInputAttachments */
75 int (*pf_get_attachments)( filter_t *, input_attachment_t ***, int * );
77 void *sys;
80struct vlc_mouse_t;
81
84 /* Operation depending on the type of filter. */
85 union
86 {
87 /** Filter a picture (video filter) */
88 picture_t * (*filter_video)(filter_t *, picture_t *);
90 /** Filter an audio block (audio filter) */
91 block_t * (*filter_audio)(filter_t *, block_t *);
93 /** Blend a subpicture onto a picture (video blending) */
94 void (*blend_video)(filter_t *, picture_t *, const picture_t *,
95 int, int, int);
96
97 /** Generate a subpicture (sub source) */
98 subpicture_t *(*source_sub)(filter_t *, vlc_tick_t);
100 /** Filter a subpicture (sub filter) */
101 subpicture_t *(*filter_sub)(filter_t *, subpicture_t *);
103 /** Render text (text renderer)
104 *
105 * \return a picture-based region or NULL
106 */
107 subpicture_region_t * (*render)(filter_t *,
109 };
110
111 union
112 {
113 /* TODO: video filter drain */
114 /** Drain (audio filter) */
115 block_t *(*drain_audio)(filter_t *);
116 };
117
118 /** Flush
119 *
120 * Flush (i.e. discard) any internal buffer in a video or audio filter.
121 */
122 void (*flush)(filter_t *);
124 /** Change viewpoint
125 *
126 * Pass a new viewpoint to audio filters. Filters like the spatialaudio one
127 * used for Ambisonics rendering will change its output according to this
128 * viewpoint.
129 */
130 void (*change_viewpoint)(filter_t *, const vlc_viewpoint_t *);
132 /** Filter mouse state (video filter).
133 *
134 * If non-NULL, you must convert from output to input formats:
135 * - If VLC_SUCCESS is returned, the mouse state is propagated.
136 * - Otherwise, the mouse change is not propagated.
137 * If NULL, the mouse state is considered unchanged and will be
138 * propagated. */
139 int (*video_mouse)(filter_t *, struct vlc_mouse_t *,
140 const struct vlc_mouse_t *p_old);
141
142 /** Close the filter and release its resources. */
143 void (*close)(filter_t *);
145
146typedef int (*vlc_filter_open)(filter_t *);
148
149#define set_deinterlace_callback( activate ) \
150 { \
151 vlc_filter_open open__ = activate; \
152 (void) open__; \
153 set_callback(activate) \
154 } \
155 set_capability( "video filter", 0 ) \
156 add_shortcut( "deinterlace" )
157
158#define set_callback_video_filter( activate ) \
159 { \
160 vlc_filter_open open__ = activate; \
161 (void) open__; \
162 set_callback(activate) \
163 } \
164 set_capability( "video filter", 0 )
165
166#define set_callback_video_filter_priority( activate, priority ) \
167 { \
168 vlc_filter_open open__ = activate; \
169 (void) open__; \
170 set_callback(activate) \
171 } \
172 set_capability( "video filter", priority )
173
174#define set_callback_video_converter( activate, priority ) \
175 { \
176 vlc_filter_open open__ = activate; \
177 (void) open__; \
178 set_callback(activate) \
179 } \
180 set_capability( "video converter", priority )
181
182#define set_callback_text_renderer( activate, priority ) \
183 { \
184 vlc_filter_open open__ = activate; \
185 (void) open__; \
186 set_callback(activate) \
187 } \
188 set_capability( "text renderer", priority )
189
190#define set_callback_sub_filter( activate ) \
191 { \
192 vlc_filter_open open__ = activate; \
193 (void) open__; \
194 set_callback(activate) \
195 } \
196 set_capability( "sub filter", 0 )
197
198#define set_callback_sub_source( activate, priority ) \
199 { \
200 vlc_filter_open open__ = activate; \
201 (void) open__; \
202 set_callback(activate) \
203 } \
204 set_capability( "sub source", priority )
205
206#define set_callback_video_blending( activate, priority ) \
207 { \
208 vlc_filter_open open__ = activate; \
209 (void) open__; \
210 set_callback(activate) \
211 } \
212 set_capability( "video blending", priority )
213
214/** Structure describing a filter
215 * @warning BIG FAT WARNING : the code relies on the first 3 members of
216 * filter_t and decoder_t to be the same, so if you have anything to add,
217 * do it at the end of the structure.
218 */
219struct filter_t
221 struct vlc_object_t obj;
223 /* Module properties */
225 void *p_sys;
227 /* Input format */
229 vlc_video_context *vctx_in; // video filter, set by owner
231 /* Output format of filter */
233 vlc_video_context *vctx_out; // video filter, handled by the filter
236 /* Name of the "video filter" shortcut that is requested, can be NULL */
237 const char * psz_name;
238 /* Filter configuration */
239 const config_chain_t *p_cfg;
241 /* Implementation of filter API */
242 const struct vlc_filter_operations *ops;
244 /** Private structure for the owner of the filter */
247
249 const char *name, bool strict);
251
252static inline void vlc_filter_Delete(filter_t *p_filter)
254 vlc_filter_UnloadModule(p_filter);
255 vlc_object_delete(p_filter);
256}
257
258/**
259 * This function will return a new picture usable by p_filter as an output
260 * buffer. You have to release it using picture_Release or by returning
261 * it to the caller as a ops->filter_video return value.
262 * Provided for convenience.
263 *
264 * \param p_filter filter_t object
265 * \return new picture on success or NULL on failure
266 */
267static inline picture_t *filter_NewPicture( filter_t *p_filter )
269 picture_t *pic = NULL;
270 if ( p_filter->owner.video != NULL && p_filter->owner.video->buffer_new != NULL)
271 pic = p_filter->owner.video->buffer_new( p_filter );
272 if ( pic == NULL )
273 {
274 // legacy filter owners not setting a default filter_allocator
275 pic = picture_NewFromFormat( &p_filter->fmt_out.video );
276 }
277 if( pic == NULL )
278 msg_Warn( p_filter, "can't get output picture" );
279 return pic;
280}
281
282/**
283 * Flush a filter
284 *
285 * This function will flush the state of a filter (audio or video).
286 */
287static inline void filter_Flush( filter_t *p_filter )
289 if( p_filter->ops->flush != NULL )
290 p_filter->ops->flush( p_filter );
291}
292
293static inline void filter_ChangeViewpoint( filter_t *p_filter,
295{
296 if( p_filter->ops->change_viewpoint != NULL )
297 p_filter->ops->change_viewpoint( p_filter, vp );
298}
299
300static inline vlc_decoder_device * filter_HoldDecoderDevice( filter_t *p_filter )
302 if ( !p_filter->owner.video || !p_filter->owner.video->hold_device )
303 return NULL;
304
305 return p_filter->owner.video->hold_device( VLC_OBJECT(p_filter), p_filter->owner.sys );
306}
307
310{
311 if ( !p_filter->owner.video || !p_filter->owner.video->hold_device )
312 return NULL;
313
314 vlc_decoder_device *dec_dev = p_filter->owner.video->hold_device( VLC_OBJECT(p_filter),
315 p_filter->owner.sys );
316 if ( dec_dev != NULL )
317 {
318 if ( dec_dev->type == type )
319 return dec_dev;
321 }
322 return NULL;
323}
324
325/**
326 * This function will drain, then flush an audio filter.
327 */
328static inline block_t *filter_DrainAudio( filter_t *p_filter )
330 if( p_filter->ops->drain_audio )
331 return p_filter->ops->drain_audio( p_filter );
332 else
333 return NULL;
334}
335
336static inline void filter_SendAudioLoudness(filter_t *filter,
337 const struct vlc_audio_loudness *loudness)
338{
339 assert(filter->owner.audio->meter_loudness.on_changed);
340 filter->owner.audio->meter_loudness.on_changed(filter, loudness);
341}
342
343/**
344 * This function will return a new subpicture usable by p_filter as an output
345 * buffer. You have to release it using subpicture_Delete or by returning it to
346 * the caller as a ops->sub_source return value.
347 * Provided for convenience.
348 *
349 * \param p_filter filter_t object
350 * \return new subpicture
351 */
352static inline subpicture_t *filter_NewSubpicture( filter_t *p_filter )
354 subpicture_t *subpic = p_filter->owner.sub->buffer_new( p_filter );
355 if( subpic == NULL )
356 msg_Warn( p_filter, "can't get output subpicture" );
357 return subpic;
358}
359
360/**
361 * This function gives all input attachments at once.
362 *
363 * You MUST release the returned values
364 */
365static inline int filter_GetInputAttachments( filter_t *p_filter,
366 input_attachment_t ***ppp_attachment,
367 int *pi_attachment )
368{
369 if( !p_filter->owner.pf_get_attachments )
370 return VLC_EGENERIC;
371 return p_filter->owner.pf_get_attachments( p_filter,
372 ppp_attachment, pi_attachment );
373}
374
375/**
376 * This function allow dynamically changing filter variables from a different
377 * object via VLC variables mapping.
378 *
379 * It maps the filter's variables on the proxy objects and bind them with a var
380 * callback that forwards changes to the filter.
381 * This is especially useful for manipulating filter chains via a single parent
382 * object.
383 *
384 * \param obj the object to add the callback proxy to
385 * \param filter the filter object for which the callback will be proxified
386 * \param restart_cb a vlc_callback_t to call if the event means restarting the
387 * filter (i.e. an event on a non-command variable)
388 */
390 vlc_callback_t restart_cb );
391# define filter_AddProxyCallbacks(a, b, c) \
392 filter_AddProxyCallbacks(VLC_OBJECT(a), b, c)
393
394/**
395 * This function unbind the callbacks from the proxy object.
396 *
397 * \note It does not remove the mapped variable to keep track of their state.
398 *
399 * \param obj the object to remove the callback proxy from
400 * \param filter the filter object for which the callback was proxified
401 * \param restart_cb the same vlc_callback_t passed to filter_AddProxyCallbacks
402 */
404 vlc_callback_t restart_cb);
405# define filter_DelProxyCallbacks(a, b, c) \
406 filter_DelProxyCallbacks(VLC_OBJECT(a), b, c)
407
408typedef filter_t vlc_blender_t;
410/**
411 * It creates a blend filter.
412 *
413 * Only the chroma properties of the dest format is used (chroma
414 * type, rgb masks and shifts)
415 */
417
418/**
419 * It configures blend filter parameters that are allowed to changed
420 * after the creation.
421 */
422VLC_API int filter_ConfigureBlend( vlc_blender_t *, int i_dst_width, int i_dst_height, const video_format_t *p_src );
423
424/**
425 * It blends a picture into another one.
426 *
427 * The input picture is not modified and not released.
428 */
429VLC_API int filter_Blend( vlc_blender_t *, picture_t *p_dst, int i_dst_x, int i_dst_y, const picture_t *p_src, int i_alpha );
430
431/**
432 * It destroys a blend filter created by filter_NewBlend.
433 */
435
436/**
437 * Create a picture_t *(*)( filter_t *, picture_t * ) compatible wrapper
438 * using a void (*)( filter_t *, picture_t *, picture_t * ) function
439 *
440 * Currently used by the chroma video filters
441 */
442#define VIDEO_FILTER_WRAPPER_CLOSE_FILT( name, close_cb ) \
443 static picture_t *name ## _Filter ( filter_t *p_filter, \
444 picture_t *p_pic ) \
445 { \
446 picture_t *p_outpic = filter_NewPicture( p_filter ); \
447 if( p_outpic ) \
448 { \
449 name( p_filter, p_pic, p_outpic ); \
450 picture_CopyProperties( p_outpic, p_pic ); \
451 } \
452 picture_Release( p_pic ); \
453 return p_outpic; \
454 } \
455 static const struct vlc_filter_operations name ## _ops = { \
456 .filter_video = name ## _Filter, .close = close_cb, \
457 };
458
459#define VIDEO_FILTER_WRAPPER_CLOSE( name, close_cb ) \
460 static void name (filter_t *, picture_t *, picture_t *); \
461 static void close_cb (filter_t *); \
462 VIDEO_FILTER_WRAPPER_CLOSE_FILT( name, close_cb )
463
464#define VIDEO_FILTER_WRAPPER( name ) \
465 static void name (filter_t *, picture_t *, picture_t *); \
466 VIDEO_FILTER_WRAPPER_CLOSE_FILT( name, NULL )
467
468/**
469 * Wrappers to use when the filter function is not a static function
470 */
471#define VIDEO_FILTER_WRAPPER_EXT( name ) \
472 void name (filter_t *, picture_t *, picture_t *); \
473 VIDEO_FILTER_WRAPPER_CLOSE_FILT( name, NULL )
474
475#define VIDEO_FILTER_WRAPPER_CLOSE_EXT( name, close_cb ) \
476 void name (filter_t *, picture_t *, picture_t *); \
477 static void close_cb (filter_t *); \
478 VIDEO_FILTER_WRAPPER_CLOSE_FILT( name, close_cb )
479
480/**
481 * Filter chain management API
482 * The filter chain management API is used to dynamically construct filters
483 * and add them in a chain.
484 */
485
486typedef struct filter_chain_t filter_chain_t;
488/**
489 * Create new filter chain
490 *
491 * \param obj pointer to a vlc object
492 * \param psz_capability vlc capability of filters in filter chain
493 * \return pointer to a filter chain
494 */
495filter_chain_t * filter_chain_NewSPU(vlc_object_t *obj, const char *psz_capability)
497#define filter_chain_NewSPU( a, b ) filter_chain_NewSPU( VLC_OBJECT( a ), b )
499/**
500 * Creates a new video filter chain.
501 *
502 * \param obj pointer to parent VLC object
503 * \param change whether to allow changing the output format
504 * \param owner owner video buffer callbacks
505 * \return new filter chain, or NULL on error
506 */
508 const filter_owner_t *owner )
510#define filter_chain_NewVideo( a, b, c ) \
511 filter_chain_NewVideo( VLC_OBJECT( a ), b, c )
512
513/**
514 * Delete filter chain will delete all filters in the chain and free all
515 * allocated data. The pointer to the filter chain is then no longer valid.
516 *
517 * \param chain pointer to filter chain
518 */
520
521/**
522 * Reset filter chain will delete all filters in the chain and
523 * reset p_fmt_in and p_fmt_out to the new values.
524 *
525 * \param p_chain pointer to filter chain
526 * \param p_fmt_in new fmt_in params
527 * \param vctx_in new input video context
528 * \param p_fmt_out new fmt_out params
529 */
531 const es_format_t *p_fmt_in,
533 const es_format_t *p_fmt_out );
534
535/**
536 * Remove all existing filters
537 *
538 * \param p_chain pointer to filter chain
539 */
541
542/**
543 * Append a filter to the chain.
544 *
545 * \param chain filter chain to append a filter to
546 * \param name filter name
547 * \param cfg the configuration chain for the filter
548 * \param fmt_out filter output format
549 * \return a pointer to the filter or NULL on error
550 */
552 const char *name, const config_chain_t *cfg,
553 const es_format_t *fmt_out);
554
555/**
556 * Append a conversion to the chain.
557 *
558 * \param chain filter chain to append a filter to
559 * \param fmt_out filter output format
560 * \retval VLC_SUCCESS on success
561 */
563 const es_format_t *fmt_out);
564
565/**
566 * Append new filter to filter chain from string.
567 *
568 * \param chain filter chain to append a filter to
569 * \param str filters chain nul-terminated string
570 */
572 const char *str);
573
574/**
575 * Delete filter from filter chain. This function also releases the filter
576 * object and unloads the filter modules. The pointer to p_filter is no
577 * longer valid after this function successfully returns.
578 *
579 * \param chain filter chain to remove the filter from
580 * \param filter filter to remove from the chain and delete
581 *
582 * \note the filter must be created with filter_chain_AppendConverter() or
583 * filter_chain_AppendFilter().
584 */
586 filter_t *filter);
587
588/**
589 * Checks if the filter chain is empty.
590 *
591 * \param chain pointer to filter chain
592 * \return true if and only if there are no filters in this filter chain
593 */
595
596/**
597 * Get last output format of the last element in the filter chain.
598 *
599 * \param chain filter chain
600 */
602
603/**
604 * Get last output video context of the last element in the filter chain.
605 * \note doesn't create change the reference count
606 *
607 * \param chain filter chain
608 */
610
611/**
612 * Apply the filter chain to a video picture.
613 *
614 * \param chain pointer to filter chain
615 * \param pic picture to apply filters to
616 * \return modified picture after applying all video filters
617 */
619 picture_t *pic);
620
621/**
622 * Flush a video filter chain.
623 */
625
626/**
627 * Apply the filter chain to a mouse state.
628 *
629 * It will be applied from the output to the input. It makes sense only
630 * for a video filter chain.
631 *
632 * The vlc_mouse_t* pointers may be the same.
633 */
635 const struct vlc_mouse_t * );
636
638 int (*cb)( filter_t *, void * ), void *opaque );
639
640/** @} */
641#endif /* _VLC_FILTER_H */
#define VLC_USED
Definition fourcc_gen.c:32
#define VLC_API
Definition fourcc_gen.c:31
uint32_t vlc_fourcc_t
The vlc_fourcc_t type.
Definition fourcc_gen.c:33
void vlc_decoder_device_Release(vlc_decoder_device *device)
Release a decoder device.
Definition decoder_device.c:82
vlc_decoder_device_type
Decoder device type.
Definition vlc_codec.h:597
#define VLC_EGENERIC
Unspecified error.
Definition vlc_common.h:482
static void filter_ChangeViewpoint(filter_t *p_filter, const vlc_viewpoint_t *vp)
Definition vlc_filter.h:294
filter_t * filter_chain_AppendFilter(filter_chain_t *chain, const char *name, const config_chain_t *cfg, const es_format_t *fmt_out)
Append a filter to the chain.
Definition filter_chain.c:364
filter_t vlc_blender_t
Definition vlc_filter.h:409
static vlc_decoder_device * filter_HoldDecoderDeviceType(filter_t *p_filter, enum vlc_decoder_device_type type)
Definition vlc_filter.h:309
int filter_chain_AppendConverter(filter_chain_t *chain, const es_format_t *fmt_out)
Append a conversion to the chain.
Definition filter_chain.c:372
static void vlc_filter_Delete(filter_t *p_filter)
Definition vlc_filter.h:253
int filter_Blend(vlc_blender_t *, picture_t *p_dst, int i_dst_x, int i_dst_y, const picture_t *p_src, int i_alpha)
It blends a picture into another one.
Definition filter.c:167
#define filter_AddProxyCallbacks(a, b, c)
Definition vlc_filter.h:392
static int filter_GetInputAttachments(filter_t *p_filter, input_attachment_t ***ppp_attachment, int *pi_attachment)
This function gives all input attachments at once.
Definition vlc_filter.h:366
static subpicture_t * filter_NewSubpicture(filter_t *p_filter)
This function will return a new subpicture usable by p_filter as an output buffer.
Definition vlc_filter.h:353
vlc_video_context * filter_chain_GetVideoCtxOut(const filter_chain_t *chain)
Get last output video context of the last element in the filter chain.
Definition filter_chain.c:475
int filter_chain_ForEach(filter_chain_t *chain, int(*cb)(filter_t *, void *), void *opaque)
Definition filter_chain.c:446
static void filter_SendAudioLoudness(filter_t *filter, const struct vlc_audio_loudness *loudness)
Definition vlc_filter.h:337
int filter_ConfigureBlend(vlc_blender_t *, int i_dst_width, int i_dst_height, const video_format_t *p_src)
It configures blend filter parameters that are allowed to changed after the creation.
Definition filter.c:134
int filter_chain_AppendFromString(filter_chain_t *chain, const char *str)
Append new filter to filter chain from string.
Definition filter_chain.c:399
int filter_chain_MouseFilter(filter_chain_t *, struct vlc_mouse_t *, const struct vlc_mouse_t *)
Apply the filter chain to a mouse state.
vlc_blender_t * filter_NewBlend(vlc_object_t *, const video_format_t *p_dst_chroma)
It creates a blend filter.
Definition filter.c:113
#define filter_chain_NewSPU(a, b)
Definition vlc_filter.h:498
#define filter_chain_NewVideo(a, b, c)
Definition vlc_filter.h:511
static picture_t * filter_NewPicture(filter_t *p_filter)
This function will return a new picture usable by p_filter as an output buffer.
Definition vlc_filter.h:268
static vlc_decoder_device * filter_HoldDecoderDevice(filter_t *p_filter)
Definition vlc_filter.h:301
void filter_DeleteBlend(vlc_blender_t *)
It destroys a blend filter created by filter_NewBlend.
Definition filter.c:178
void filter_chain_VideoFlush(filter_chain_t *)
Flush a video filter chain.
Definition filter_chain.c:543
static block_t * filter_DrainAudio(filter_t *p_filter)
This function will drain, then flush an audio filter.
Definition vlc_filter.h:329
void filter_chain_Reset(filter_chain_t *p_chain, const es_format_t *p_fmt_in, vlc_video_context *vctx_in, const es_format_t *p_fmt_out)
Reset filter chain will delete all filters in the chain and reset p_fmt_in and p_fmt_out to the new v...
Definition filter_chain.c:259
picture_t * filter_chain_VideoFilter(filter_chain_t *chain, picture_t *pic)
Apply the filter chain to a video picture.
Definition filter_chain.c:503
void filter_chain_Clear(filter_chain_t *)
Remove all existing filters.
Definition filter_chain.c:238
static void filter_Flush(filter_t *p_filter)
Flush a filter.
Definition vlc_filter.h:288
#define filter_DelProxyCallbacks(a, b, c)
Definition vlc_filter.h:406
void vlc_filter_UnloadModule(filter_t *)
Definition filter_chain.c:98
module_t * vlc_filter_LoadModule(filter_t *, const char *cap, const char *name, bool strict)
Definition filter_chain.c:36
void filter_chain_Delete(filter_chain_t *chain)
Delete filter chain will delete all filters in the chain and free all allocated data.
Definition filter_chain.c:245
void filter_chain_DeleteFilter(filter_chain_t *chain, filter_t *filter)
Delete filter from filter chain.
Definition filter_chain.c:379
int(* vlc_filter_open)(filter_t *)
Definition vlc_filter.h:147
const es_format_t * filter_chain_GetFmtOut(const filter_chain_t *chain)
Get last output format of the last element in the filter chain.
Definition filter_chain.c:464
bool filter_chain_IsEmpty(const filter_chain_t *chain)
Checks if the filter chain is empty.
Definition filter_chain.c:459
#define msg_Warn(p_this,...)
Definition vlc_messages.h:104
struct vlc_video_context vlc_video_context
Definition vlc_filter.h:33
int(* vlc_callback_t)(vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
Definition vlc_variables.h:135
#define VLC_OBJECT(x)
Type-safe vlc_object_t cast.
Definition vlc_objects.h:83
#define vlc_object_delete(obj)
Definition vlc_objects.h:128
const char name[16]
Definition httpd.c:1298
picture_t * picture_NewFromFormat(const video_format_t *restrict fmt)
Definition picture.c:280
Definition vlc_configuration.h:340
Definition vlc_es.h:614
video_format_t video
description of video format
Definition vlc_es.h:642
Definition vlc_filter.h:52
void(* on_changed)(filter_t *, const struct vlc_audio_loudness *loudness)
Definition vlc_filter.h:55
struct filter_audio_callbacks::@204044346146177100212111054243324167072167137177 meter_loudness
Definition filter_chain.c:126
es_format_t fmt_out
Chain output format (constant).
Definition filter_chain.c:134
vlc_object_t * obj
Definition filter_chain.c:127
vlc_video_context * vctx_in
Chain input video context (set on Reset).
Definition filter_chain.c:133
Definition vlc_filter.h:66
void * sys
Definition vlc_filter.h:78
const struct filter_video_callbacks * video
Definition vlc_filter.h:69
int(* pf_get_attachments)(filter_t *, input_attachment_t ***, int *)
Definition vlc_filter.h:76
const struct filter_subpicture_callbacks * sub
Definition vlc_filter.h:71
const struct filter_audio_callbacks * audio
Definition vlc_filter.h:70
Definition vlc_filter.h:61
subpicture_t *(* buffer_new)(filter_t *)
Definition vlc_filter.h:62
Structure describing a filter.
Definition vlc_filter.h:221
es_format_t fmt_in
Definition vlc_filter.h:229
vlc_video_context * vctx_out
Definition vlc_filter.h:234
module_t * p_module
Definition vlc_filter.h:225
const char * psz_name
Definition vlc_filter.h:238
filter_owner_t owner
Private structure for the owner of the filter.
Definition vlc_filter.h:246
vlc_video_context * vctx_in
Definition vlc_filter.h:230
const struct vlc_filter_operations * ops
Definition vlc_filter.h:243
void * p_sys
Definition vlc_filter.h:226
bool b_allow_fmt_out_change
Definition vlc_filter.h:235
const config_chain_t * p_cfg
Definition vlc_filter.h:240
struct vlc_object_t obj
Definition vlc_filter.h:222
es_format_t fmt_out
Definition vlc_filter.h:233
Definition vlc_filter.h:46
vlc_decoder_device *(* hold_device)(vlc_object_t *, void *sys)
Definition vlc_filter.h:48
picture_t *(* buffer_new)(filter_t *)
Definition vlc_filter.h:47
Definition vlc_input.h:168
Internal module descriptor.
Definition modules.h:76
Video picture.
Definition vlc_picture.h:128
Video subtitle region.
Definition vlc_subpicture.h:71
Video subtitle.
Definition vlc_subpicture.h:246
video format description
Definition vlc_es.h:337
Audio loudness measurement.
Definition vlc_aout.h:667
Decoder context struct.
Definition vlc_codec.h:618
enum vlc_decoder_device_type type
Must be set from the "decoder device" module open entry point.
Definition vlc_codec.h:628
Definition vlc_filter.h:84
void(* flush)(filter_t *)
Flush.
Definition vlc_filter.h:123
void(* change_viewpoint)(filter_t *, const vlc_viewpoint_t *)
Change viewpoint.
Definition vlc_filter.h:131
block_t *(* drain_audio)(filter_t *)
Drain (audio filter).
Definition vlc_filter.h:116
void(* blend_video)(filter_t *, picture_t *, const picture_t *, int, int, int)
Blend a subpicture onto a picture (video blending).
Definition vlc_filter.h:95
void(* close)(filter_t *)
Close the filter and release its resources.
Definition vlc_filter.h:144
int(* video_mouse)(filter_t *, struct vlc_mouse_t *, const struct vlc_mouse_t *p_old)
Filter mouse state (video filter).
Definition vlc_filter.h:140
Mouse state.
Definition vlc_mouse.h:46
VLC object common members.
Definition vlc_objects.h:53
Definition decoder_device.c:98
Viewpoints.
Definition vlc_viewpoint.h:41
Decoder and encoder modules interface.
This file is a collection of common definitions and types.
struct vlc_frame_t block_t
Definition vlc_common.h:447
This file defines the elementary streams format types.
This file defines picture structures and functions in vlc.
int64_t vlc_tick_t
High precision date or time interval.
Definition vlc_tick.h:48