summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.c
Commit message (Collapse)AuthorAge
* avfilter/avfilter: move enable_str expression parsing into avfilter_init_dict()Paul B Mahol2021-02-06
| | | | | | | | This ensures that needed arrays are always allocated and properly initialized. Previously if code would use only avfilter_init_dict() to set options for filters it would not allocate arrays for timeline processing thus it would crash if user supplied enable option for filter(s).
* avfilter/avfilter: mark enable as runtime option tooPaul B Mahol2021-02-03
|
* avfilter/avfilter: remove obsolete commentPaul B Mahol2020-09-10
|
* lavfi: regroup formats lists in a single structure.Nicolas George2020-09-08
| | | | | | | | | | | | | | | It will allow to refernce it as a whole without clunky macros. Most of the changes have been automatically made with sed: sed -i ' s/-> *in_formats/->incfg.formats/g; s/-> *out_formats/->outcfg.formats/g; s/-> *in_channel_layouts/->incfg.channel_layouts/g; s/-> *out_channel_layouts/->outcfg.channel_layouts/g; s/-> *in_samplerates/->incfg.samplerates/g; s/-> *out_samplerates/->outcfg.samplerates/g; ' src/libavfilter/*(.)
* avfilter/avfilter: Fix indentationAndreas Rheinhardt2020-08-26
| | | | | | | Forgotten after fdd93eabfb2644f541f7aac9943abce26776ea73. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avfilter: switch to child_class_iterate()Anton Khirnov2020-06-10
|
* Silence "string-plus-int" warning shown by clang.Carl Eugen Hoyos2020-01-06
| | | | libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
* lavfi: remove ff_poll_frame().Nicolas George2019-12-23
| | | | It is never used.
* avfilter/avfilter: fix indentationleozhang2019-11-21
| | | | | Signed-off-by: leozhang <leozhang@qiyi.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avfilter: add ff_filter_process_command()Paul B Mahol2019-10-14
|
* avfilter: add ff_inlink_queued_samples()Paul B Mahol2018-10-04
|
* avfilter/filters: add ff_inlink_peek_frame and ff_inlink_queued_frames to ↵Marton Balint2018-10-03
| | | | | | access frames in the inlink fifo Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/avfilter: fix typos in commentsPaul B Mahol2018-10-03
|
* lavfi: fix can't dispaly "slice" sub-option in "ffmpeg -h full"Jun Zhao2018-08-16
| | | | | | | fix can't dispaly "slice" sub-option in "ffmpeg -h full" for AVFilter options. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* lavfi: add new iteration APIJosh de Kock2018-03-31
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* Merge commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d'Mark Thompson2018-02-12
|\ | | | | | | | | | | | | * commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d': lavfi: Add support for increasing hardware frame pool sizes Merged-by: Mark Thompson <sw@jkqxz.net>
| * lavfi: Add support for increasing hardware frame pool sizesMark Thompson2018-02-11
| | | | | | | | | | AVFilterContext.extra_hw_frames functions identically to the field of the same name in AVCodecContext.
* | avfilter: deprecate avfilter_link_get_channels()James Almer2018-01-06
| | | | | | | | | | Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: James Almer <jamrial@gmail.com>
* | Revert "avfilter: deprecate avfilter_link_get_channels()"James Almer2018-01-05
| | | | | | | | | | | | This reverts commit 798dcf2432999f449c76c0e0fe2d7a4ee5eabbc2. It was applied by accident before it could be reviewed.
* | avfilter: deprecate avfilter_link_get_channels()James Almer2018-01-05
| | | | | | | | | | | | And move the channels field to the public section of the struct. Signed-off-by: James Almer <jamrial@gmail.com>
* | avfilter: use a mutex instead of atomics in avfilter_register()James Almer2018-01-05
| | | | | | | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avfilter: pass correct argument to helper functionPaul B Mahol2017-10-31
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '96a47364d1cf346a5d0437e054b1b10d44d8d969'James Almer2017-10-21
|\| | | | | | | | | | | | | * commit '96a47364d1cf346a5d0437e054b1b10d44d8d969': lavfi: Drop deprecated non-const filter retrieval Merged-by: James Almer <jamrial@gmail.com>
| * lavfi: Drop deprecated non-const filter retrievalVittorio Giovara2017-03-23
| | | | | | | | Deprecated in 10/2013.
* | Merge commit '8e18328b18e69b38a5feae5d10ad01b403a205b6'James Almer2017-10-21
|\| | | | | | | | | | | | | * commit '8e18328b18e69b38a5feae5d10ad01b403a205b6': lavfi: Drop deprecated filter registration Merged-by: James Almer <jamrial@gmail.com>
| * lavfi: Drop deprecated filter registrationVittorio Giovara2017-03-23
| | | | | | | | Deprecated in 04/2013.
* | Merge commit '52067b3c0e5ddbcf7021a093420798420351a9e2'James Almer2017-10-21
|\| | | | | | | | | | | | | * commit '52067b3c0e5ddbcf7021a093420798420351a9e2': lavfi: Drop deprecated filter initialization Merged-by: James Almer <jamrial@gmail.com>
| * lavfi: Drop deprecated filter initializationVittorio Giovara2017-03-23
| | | | | | | | Deprecated in 03/2013.
* | Merge commit 'c5c7cfd5e80d4c36568c01cc40abfde341657ad9'James Almer2017-10-21
|\| | | | | | | | | | | | | * commit 'c5c7cfd5e80d4c36568c01cc40abfde341657ad9': lavfi: Drop deprecated functions to open a filter or a filterchain Merged-by: James Almer <jamrial@gmail.com>
| * lavfi: Drop deprecated functions to open a filter or a filterchainVittorio Giovara2017-03-23
| | | | | | | | Deprecated in 03/2013.
* | Merge commit '88fd836a015a5f3380df74592e440e7d1e5b8000'James Almer2017-10-21
|\| | | | | | | | | | | | | * commit '88fd836a015a5f3380df74592e440e7d1e5b8000': lavfi: Drop deprecated way of passing options for a few filters Merged-by: James Almer <jamrial@gmail.com>
| * lavfi: Drop deprecated way of passing options for a few filtersVittorio Giovara2017-03-23
| | | | | | | | Deprecated in 02/2013.
* | lavfi/avfilter.c: Correct guess_status_pts to account for differing link ↵Sasi Inguva2017-10-07
| | | | | | | | | | | | timebases. Signed-off-by: Sasi Inguva <isasi@google.com>
* | lavfi: add helper functions and macros for activate.Nicolas George2017-09-12
| |
* | lavfi: guess a timestamp for compat status change.Nicolas George2017-09-08
| | | | | | | | | | | | | | | | | | Use the earliest input with the same status. If that fails, print a warning and use the earliest source. With this change, simple filter forward correctly the timestamp of EOF. Filters that are supposed to change it should be updated to actually forward it.
* | lavfi: search options on child objects.Nicolas George2017-08-29
| | | | | | | | | | The child objects must be allocated and inited in the preinit() callback.
* | lavfi: add a preinit callback to filters.Nicolas George2017-08-29
| | | | | | | | | | It is necessary for filters with child objects, to set the class and default options values.
* | lavfi: make FFERROR_NOT_READY available to filters.Nicolas George2017-07-30
| | | | | | | | | | I am not entirely sure that this return code is useful, but having and using it makes no harm.
* | avfilter: take_samples: do not directly return frame when samples are skippedMuhammad Faiz2017-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modifying data pointer when skipping samples may make it unaligned. Workaround for Ticket6349. This should fix the crash of ticket's testcase and a crash/regression with avxsynth (reported by Michael Niedermayer). Also change frame->nb_samples < max to frame->nb_samples <= max. This improves performance. Benchmark: ./ffmpeg -filter_complex "aevalsrc=0:n=1166,firequalizer=fixed=on" -f null null old: 25767 decicycles in take_samples, 1023 runs, 1 skips 25422 decicycles in take_samples, 2047 runs, 1 skips 25181 decicycles in take_samples, 4095 runs, 1 skips 24904 decicycles in take_samples, 8191 runs, 1 skips new: 550 decicycles in take_samples, 1024 runs, 0 skips 548 decicycles in take_samples, 2048 runs, 0 skips 545 decicycles in take_samples, 4096 runs, 0 skips 544 decicycles in take_samples, 8192 runs, 0 skips Reviewed-by: Nicolas George <george@nsup.org> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | avfilter: do not use AVFrame accessorMuhammad Faiz2017-04-23
| | | | | | | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | Merge commit 'e3fb74f7f9a8f1895381355f40c92cac3c1023d9'Matthieu Bouron2017-03-30
|\| | | | | | | | | | | | | * commit 'e3fb74f7f9a8f1895381355f40c92cac3c1023d9': lavfi: Always propagate hw_frames_ctx through links Merged-by: Matthieu Bouron <matthieu.bouron@gmail.com>
| * lavfi: Always propagate hw_frames_ctx through linksMark Thompson2016-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds a new flag to mark filters which are aware of hwframes and will perform this task themselves, and marks all appropriate filters with this flag. This is required to allow software-mapped hardware frames to work, because we need to have the frames context available for any later mapping operation in the filter graph. The output from the filter graph should only propagate further to an encoder if the hardware format actually matches the visible format (mapped frames are valid here and have an hw_frames_ctx, but this should not be given to the encoder as its hardware context).
* | lavfi: make ff_framequeue_skip_samples() more useful.Nicolas George2017-01-29
| | | | | | | | | | | | | | | | | | | | Instead of just updating statistics and leaving the work to the call site, have it actually do the work. Also: skip the samples by updating the frame data pointers instead of moving the samples. More efficient and avoid writing into shared frames. Found-By: Muhammad Faiz <mfcc64@gmail.com>
* | lavfi: reindent after previous commit.Nicolas George2017-01-12
| |
* | lavfi: make two functions static.Nicolas George2017-01-12
| | | | | | | | | | ff_request_frame_to_filter() and ff_filter_frame_to_filter() are only used in avfilter.c.
* | lavfi: disallow ff_request_frame for filters using activate.Nicolas George2017-01-12
| | | | | | | | | | Having two different functions allows to have stricter tests and detect errors earlier.
* | lavfi: add ff_inlink_request_frame().Nicolas George2017-01-12
| |
* | lavfi: move ff_update_link_current_pts() into the utility functions.Nicolas George2017-01-12
| | | | | | | | | | | | It does not change anything for the existing filters and makes better code fatrorization when future code will use the utility functions.
* | lavfi: cosmetic: remove forward declaration.Nicolas George2017-01-12
| |
* | lavfi: add AVFilter.activate.Nicolas George2017-01-12
| |