| 413 | * callback functions used to interact with the filter. |
| 414 | */ |
| 415 | typedef struct AVFilter |
| 416 | { |
| 417 | const char *name; ///< filter name |
| 418 | |
| 419 | int priv_size; ///< size of private data to allocate for the filter |
| 420 | |
| 421 | /** |
| 422 | * Filter initialization function. Args contains the user-supplied |
| 423 | * parameters. FIXME: maybe an AVOption-based system would be better? |
| 424 | * opaque is data provided by the code requesting creation of the filter, |
| 425 | * and is used to pass data to the filter. |
| 426 | */ |
| 427 | int (*init)(AVFilterContext *ctx, const char *args, void *opaque); |
| 428 | |
| 429 | /** |
| 430 | * Filter uninitialization function. Should deallocate any memory held |
| 431 | * by the filter, release any picture references, etc. This does not need |
| 432 | * to deallocate the AVFilterContext->priv memory itself. |
| 433 | */ |
| 434 | void (*uninit)(AVFilterContext *ctx); |
| 435 | |
| 436 | /** |
| 437 | * Queries formats supported by the filter and its pads, and sets the |
| 438 | * in_formats for links connected to its output pads, and out_formats |
| 439 | * for links connected to its input pads. |
| 440 | * |
| 441 | * @return zero on success, a negative value corresponding to an |
| 442 | * AVERROR code otherwise |
| 443 | */ |
| 444 | int (*query_formats)(AVFilterContext *); |
| 445 | |
| 446 | const AVFilterPad *inputs; ///< NULL terminated list of inputs. NULL if none |
| 447 | const AVFilterPad *outputs; ///< NULL terminated list of outputs. NULL if none |
| 448 | |
| 449 | /** |
| 450 | * A description for the filter. You should use the |
| 451 | * NULL_IF_CONFIG_SMALL() macro to define it. |
| 452 | */ |
| 453 | const char *description; |
| 454 | } AVFilter; |
| 455 | |
| 456 | /** An instance of a filter */ |
| 457 | struct AVFilterContext |
nothing calls this directly
no outgoing calls
no test coverage detected