Place related fields together, remove holes, move private fields to the end and mark them as private.
Unified · Split
| @@ -366,7 +366,22 @@ enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx); · 365 unmodified lines | |||
| 366 | typedef struct AVFilter { | 366 | typedef struct AVFilter { |
| 367 | const char *name; ///< filter name | 367 | const char *name; ///< filter name |
| 368 | 368 | ||
| 369 | int priv_size; ///< size of private data to allocate for the filter | 369 | /** |
| 370 | * A description for the filter. You should use the | ||
| 371 | * NULL_IF_CONFIG_SMALL() macro to define it. | ||
| 372 | */ | ||
| 373 | const char *description; | ||
| 374 | |||
| 375 | const AVFilterPad *inputs; ///< NULL terminated list of inputs. NULL if none | ||
| 376 | const AVFilterPad *outputs; ///< NULL terminated list of outputs. NULL if none | ||
| 377 | |||
| 378 | /***************************************************************** | ||
| 379 | * All fields below this line are not part of the public API. They | ||
| 380 | * may not be used outside of libavfilter and can be changed and | ||
| 381 | * removed at will. | ||
| 382 | * New public fields should be added right above. | ||
| 383 | ***************************************************************** | ||
| 384 | */ | ||
| 370 | 385 | ||
| 371 | /** | 386 | /** |
| 372 | * Filter initialization function. Args contains the user-supplied | 387 | * Filter initialization function. Args contains the user-supplied |
| @@ -391,14 +406,7 @@ typedef struct AVFilter { · 18 unmodified lines | |||
| 391 | */ | 406 | */ |
| 392 | int (*query_formats)(AVFilterContext *); | 407 | int (*query_formats)(AVFilterContext *); |
| 393 | 408 | ||
| 394 | const AVFilterPad *inputs; ///< NULL terminated list of inputs. NULL if none | 409 | int priv_size; ///< size of private data to allocate for the filter |
| 395 | const AVFilterPad *outputs; ///< NULL terminated list of outputs. NULL if none | ||
| 396 | |||
| 397 | /** | ||
| 398 | * A description for the filter. You should use the | ||
| 399 | * NULL_IF_CONFIG_SMALL() macro to define it. | ||
| 400 | */ | ||
| 401 | const char *description; | ||
| 402 | } AVFilter; | 410 | } AVFilter; |
| 403 | 411 | ||
| 404 | /** An instance of a filter */ | 412 | /** An instance of a filter */ |