History

lavfi: replace filter_samples by filter_frame

Based on patch by Anton Khirnov Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer committed 13 years ago

Commit cd7febd1 parent 16af29a41 files · +134 −134Browse files

Showing the changes to libavfilter/avfilter.h (1 of 41 files). Show all

Unified · Split

libavfilter/avfilter.h+4−4
@@ -339,7 +339,7 @@ struct AVFilterPad { · 338 unmodified lines
339 * must ensure that samplesref is properly unreferenced on error if it339 * 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 available345 * 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() is681 * 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 filtering683 * 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() is690 * 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_frame706 * If set, all attemps of start_frame, filter_frame or request_frame
707 * will fail with AVERROR_EOF, and if necessary the reference will be707 * 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 the709 * If request_frame returns AVERROR_EOF, this flag is set on the

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t