Paul B Mahol
84327e4607
avfilter/avfilter: remove obsolete comment
4 years ago
Nicolas George
2f76476549
lavfi: regroup formats lists in a single structure.
...
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/*(.)
4 years ago
Andreas Rheinhardt
ae5369128a
avfilter/avfilter: Fix indentation
...
Forgotten after fdd93eabfb
.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Anton Khirnov
aba98de6b8
avfilter: switch to child_class_iterate()
5 years ago
Carl Eugen Hoyos
96fab29e96
Silence "string-plus-int" warning shown by clang.
...
libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
5 years ago
Nicolas George
65e6850c56
lavfi: remove ff_poll_frame().
...
It is never used.
5 years ago
leozhang
4a3aa77d74
avfilter/avfilter: fix indentation
...
Signed-off-by: leozhang <leozhang@qiyi.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Paul B Mahol
a918b833a5
avfilter/avfilter: add ff_filter_process_command()
5 years ago
Paul B Mahol
7d65fe87e9
avfilter: add ff_inlink_queued_samples()
6 years ago
Marton Balint
8f14170b9a
avfilter/filters: add ff_inlink_peek_frame and ff_inlink_queued_frames to access frames in the inlink fifo
...
Signed-off-by: Marton Balint <cus@passwd.hu>
6 years ago
Paul B Mahol
4c514edc5b
avfilter/avfilter: fix typos in comments
6 years ago
Jun Zhao
fe06ed22e6
lavfi: fix can't dispaly "slice" sub-option in "ffmpeg -h full"
...
fix can't dispaly "slice" sub-option in "ffmpeg -h full" for
AVFilter options.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
6 years ago
Josh de Kock
8f1382f80e
lavfi: add new iteration API
...
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years ago
Mark Thompson
6d86cef06b
lavfi: Add support for increasing hardware frame pool sizes
...
AVFilterContext.extra_hw_frames functions identically to the field of
the same name in AVCodecContext.
7 years ago
James Almer
b2c42fc6dc
avfilter: deprecate avfilter_link_get_channels()
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
da5b05c833
Revert "avfilter: deprecate avfilter_link_get_channels()"
...
This reverts commit 798dcf2432
.
It was applied by accident before it could be reviewed.
7 years ago
James Almer
798dcf2432
avfilter: deprecate avfilter_link_get_channels()
...
And move the channels field to the public section of the struct.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
167e659b28
avfilter: use a mutex instead of atomics in avfilter_register()
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Paul B Mahol
e6055af025
avfilter: pass correct argument to helper function
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Sasi Inguva
123f6dc6b5
lavfi/avfilter.c: Correct guess_status_pts to account for differing link timebases.
...
Signed-off-by: Sasi Inguva <isasi@google.com>
7 years ago
Nicolas George
76613618d9
lavfi: add helper functions and macros for activate.
7 years ago
Nicolas George
f5a9c63401
lavfi: guess a timestamp for compat status change.
...
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.
7 years ago
Nicolas George
dfa3aaa22a
lavfi: search options on child objects.
...
The child objects must be allocated and inited in the
preinit() callback.
7 years ago
Nicolas George
f8d7b5febb
lavfi: add a preinit callback to filters.
...
It is necessary for filters with child objects, to set the class
and default options values.
7 years ago
Nicolas George
b77f041dff
lavfi: make FFERROR_NOT_READY available to filters.
...
I am not entirely sure that this return code is useful,
but having and using it makes no harm.
7 years ago
Muhammad Faiz
fc3a03fcf9
avfilter: take_samples: do not directly return frame when samples are skipped
...
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>
8 years ago
Muhammad Faiz
6af050d7d0
avfilter: do not use AVFrame accessor
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Vittorio Giovara
96a47364d1
lavfi: Drop deprecated non-const filter retrieval
...
Deprecated in 10/2013.
8 years ago
Vittorio Giovara
8e18328b18
lavfi: Drop deprecated filter registration
...
Deprecated in 04/2013.
8 years ago
Vittorio Giovara
52067b3c0e
lavfi: Drop deprecated filter initialization
...
Deprecated in 03/2013.
8 years ago
Vittorio Giovara
c5c7cfd5e8
lavfi: Drop deprecated functions to open a filter or a filterchain
...
Deprecated in 03/2013.
8 years ago
Vittorio Giovara
88fd836a01
lavfi: Drop deprecated way of passing options for a few filters
...
Deprecated in 02/2013.
8 years ago
Nicolas George
383057f8e7
lavfi: make ff_framequeue_skip_samples() more useful.
...
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>
8 years ago
Nicolas George
aaae459a85
lavfi: reindent after previous commit.
8 years ago
Nicolas George
c619a4e525
lavfi: make two functions static.
...
ff_request_frame_to_filter() and ff_filter_frame_to_filter()
are only used in avfilter.c.
8 years ago
Nicolas George
ae4650f0b9
lavfi: disallow ff_request_frame for filters using activate.
...
Having two different functions allows to have stricter tests
and detect errors earlier.
8 years ago
Nicolas George
9eb4c79afd
lavfi: add ff_inlink_request_frame().
8 years ago
Nicolas George
d3cb140433
lavfi: move ff_update_link_current_pts() into the utility functions.
...
It does not change anything for the existing filters and makes
better code fatrorization when future code will use the utility
functions.
8 years ago
Nicolas George
7910127a8e
lavfi: cosmetic: remove forward declaration.
8 years ago
Nicolas George
3ff01feda3
lavfi: add AVFilter.activate.
8 years ago
Nicolas George
db4a71c0ff
lavfi: use the consume helpers in ff_filter_frame_to_filter().
8 years ago
Nicolas George
d360ddf03b
lavfi: add helpers to consume frames from link FIFOs.
8 years ago
Nicolas George
2e5af443c3
lavfi: pass min explicitly to samples_ready().
8 years ago
Nicolas George
e7e4c8dfbe
lavfi: add ff_inlink_evaluate_timeline_at_frame().
8 years ago
Nicolas George
0e3d2496e2
lavfi: add ff_inlink_process_commands().
8 years ago
Nicolas George
846f142134
lavfi: merge two variables after a recent commit.
8 years ago
Nicolas George
28c62df672
lavfi: implement ff_inlink_make_frame_writable().
...
Unlike av_frame_is_writable(), it uses the link's alloc callback,
making direct rendering possible.
The code comes from ff_filter_frame_framed(), moved with mostly
trivial changes.
8 years ago
Nicolas George
918891e146
lavfi: export ff_filter_set_ready() to the library.
8 years ago
Nicolas George
4c24f3ac16
lavfi: add ff_inlink_acknowledge_status().
...
Also introduce libavfilter/filters.h for all functions needed
to implement filters.
8 years ago
Matthieu Bouron
b1f68f00b1
lavfi/framepool: rename FFVideoFramePool to FFFramePool
8 years ago