Based on patch by Anton Khirnov Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Showing the changes to libavfilter/avfilter.h (1 of 41 files). Show all
Unified · Split
| @@ -339,7 +339,7 @@ struct AVFilterPad { · 338 unmodified lines | |||
| 339 | * must ensure that samplesref is properly unreferenced on error if it | 339 | * must ensure that samplesref is properly unreferenced on error if it |
| 340 | * hasn't been passed on to another filter. | 340 | * hasn't been passed on to another filter. |
| 341 | */ | 341 | */ |
| 342 | int (*filter_samples)(AVFilterLink *link, AVFilterBufferRef *samplesref); | 342 | int (*filter_frame)(AVFilterLink *link, AVFilterBufferRef *samplesref); |
| 343 | 343 | ||
| 344 | /** | 344 | /** |
| 345 | * Frame poll callback. This returns the number of immediately available | 345 | * Frame poll callback. This returns the number of immediately available |
| @@ -678,7 +678,7 @@ struct AVFilterLink { · 332 unmodified lines | |||
| 678 | int partial_buf_size; | 678 | int partial_buf_size; |
| 679 | 679 | ||
| 680 | /** | 680 | /** |
| 681 | * Minimum number of samples to filter at once. If filter_samples() is | 681 | * Minimum number of samples to filter at once. If filter_frame() is |
| 682 | * called with fewer samples, it will accumulate them in partial_buf. | 682 | * called with fewer samples, it will accumulate them in partial_buf. |
| 683 | * This field and the related ones must not be changed after filtering | 683 | * This field and the related ones must not be changed after filtering |
| 684 | * has started. | 684 | * has started. |
| @@ -687,7 +687,7 @@ struct AVFilterLink { · 2 unmodified lines | |||
| 687 | int min_samples; | 687 | int min_samples; |
| 688 | 688 | ||
| 689 | /** | 689 | /** |
| 690 | * Maximum number of samples to filter at once. If filter_samples() is | 690 | * Maximum number of samples to filter at once. If filter_frame() is |
| 691 | * called with more samples, it will split them. | 691 | * called with more samples, it will split them. |
| 692 | */ | 692 | */ |
| 693 | int max_samples; | 693 | int max_samples; |
| @@ -703,7 +703,7 @@ struct AVFilterLink { · 9 unmodified lines | |||
| 703 | 703 | ||
| 704 | /** | 704 | /** |
| 705 | * True if the link is closed. | 705 | * True if the link is closed. |
| 706 | * If set, all attemps of start_frame, filter_samples or request_frame | 706 | * If set, all attemps of start_frame, filter_frame or request_frame |
| 707 | * will fail with AVERROR_EOF, and if necessary the reference will be | 707 | * will fail with AVERROR_EOF, and if necessary the reference will be |
| 708 | * destroyed. | 708 | * destroyed. |
| 709 | * If request_frame returns AVERROR_EOF, this flag is set on the | 709 | * If request_frame returns AVERROR_EOF, this flag is set on the |