Paul B Mahol
adf72718a4
avfilter/vf_fade: add timeline support
4 years ago
Limin Wang
ab072de419
avfilter/vf_fade: config_props -> config_input
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
4 years ago
Limin Wang
2399a7795b
avfilter/vf_fade: simplify code to use pts timebase for time check
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
4 years ago
Paul B Mahol
d64cbd4fda
remove CHAR_MIN/CHAR_MAX usage
It is not needed at all.
5 years ago
Paul B Mahol
1e6cef6861
avfilter/vf_fade: fix color fading for planar rgb
5 years ago
Paul B Mahol
06db1bef4c
avfilter/vf_fade: add >8 bit support for black and alpha fade
5 years ago
Paul B Mahol
a8d82cc2b8
avfilter/vf_fade: improve type option description
5 years ago
Paul B Mahol
8cab0ce5dc
avfilter/vf_fade: add missing .flags for type option
5 years ago
Paul B Mahol
547b0c61af
avfilter/vf_fade: reindent after previous commit
5 years ago
Paul B Mahol
6c9a9dd25a
avfilter/vf_fade: add support for gbrp/gbrap formats
5 years ago
Gyan Doshi
43891ea8ab
avfilter/fade: don't allow nb_frames == 0
In filter init, there's a division by nb_frames but value isn't checked.
5 years ago
Mark Harris
ae4323548a
avfilter/vf_fade: fix start/duration max value
A fade out (usually at the end of a video) can easily start beyond
INT32_MAX (about 36 minutes). Regression since d40dc64173
.
6 years ago
Martin Storsjö
8f5de34c8f
vf_fade: Make sure to not miss the last lines of a frame
When slice_h is rounded up due to chroma subsampling, there's
a risk that jobnr * slice_h exceeds frame->height.
Prior to a638e9184d63, this wasn't an issue for the last slice
of a frame, since slice_end was set to frame->height for the last
slice.
a638e9184d
tried to fix the case where other slices than the
last one would exceed frame->height (which can happen where the
number of slices/threads is very large compared to the frame
height).
However, the fix in a638e9184d
instead broke other cases,
where slice_h * nb_threads < frame->height. Therefore, make
sure the last slice always ends at frame->height.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Nicolas George
183ce55b0d
lavfi: split frame_count between input and output.
AVFilterLink.frame_count is supposed to count the number of frames
that were passed on the link, but with min_samples, that number is
not always the same for the source and destination filters.
With the addition of a FIFO on the link, the difference will become
more significant.
Split the variable in two: frame_count_in counts the number of
frames that entered the link, frame_count_out counts the number
of frames that were sent to the destination filter.
8 years ago
Paul B Mahol
a0a57072c9
avfilter: make use of ff_filter_get_nb_threads
8 years ago
Anton Khirnov
a638e9184d
vf_fade: make sure the slice end is always in the frame
CC: libav-stable@libav.org
9 years ago
Derek Buitenhuis
21f9468402
avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT
Libav, for some reason, merged this as a public API function. This will
aid in future merges.
A define is left for backwards compat, just in case some person
used it, since it is in a public header.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Clément Bœsch
334b11246c
avfilter/fade: use AV_OPT_TYPE_BOOL for alpha option
9 years ago
Michael Niedermayer
03637762d9
avfilter/vf_fade: Force alpha pixel format if alpha is set to 1
Fixes Ticket4321
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Paul B Mahol
a0854c084e
avfilter: handle error in query_formats() in bunch of filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Carl Eugen Hoyos
ab3ff19f08
lavfi/fade: Do not overread input buffer.
10 years ago
Vittorio Giovara
58400ac133
lavfi: name anonymous structs
11 years ago
Clément Bœsch
199b8fbd09
avfilter/fade: use FADE_OUT macro.
11 years ago
Clément Bœsch
981128c2c1
avfilter/fade: remove a bunch of useless parenthesis.
11 years ago
Clément Bœsch
461e810cfc
avfilter/fade: use inlink->frame_count.
11 years ago
Clément Bœsch
3e1097b909
avfilter/fade: add color option.
Fixes Ticket #1822 .
11 years ago
Anton Khirnov
cd43ca0443
lavfi: do not export the filters from shared objects
11 years ago
Michael Niedermayer
4bc7a2a64b
avfilter: remove duplicate includes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Paul B Mahol
b211607b5c
avfilter: various cosmetics
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
b077d8d908
avfilter: remove redundant .get_(audio/video)_buffer initializations
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Michael Niedermayer
e0f2e0fcf0
vf_fade: remove unused function
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0cbfbdef4a
vf_fade: Support slice threaded alpha
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a3d62f3377
vf_fade: Fix alpha flag integration
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
bca59d7745
fade: fix slice sizes
This more evenly distributes the load between threads
This also fixes the chroma filtering where the filter was applied twice
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
8a994b7406
vf_fade: support slice threading
12 years ago
Anton Khirnov
c0279956b3
vf_fade: use the name 's' for the pointer to the private context
This is shorter and consistent across filters.
12 years ago
Michael Niedermayer
c7c71f95f8
replace remaining PIX_FMT_* flags with AV_PIX_FMT_FLAG_*
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
50e66726a2
lavfi: use ceil right shift for chroma width/height.
This should fix several issues with odd dimensions inputs.
lut, vflip, pad and crop video filters also need to be checked for such
issues. It's possible sws is also affected.
12 years ago
Andy Martin
4ac2da3793
lavfi/fade: Added ability to do video fade based on timestamp
12 years ago
Anton Khirnov
d69a4177b9
lavfi: remove now unused args parameter from AVFilter.init
Conflicts:
libavfilter/avfilter.c
libavfilter/vf_drawtext.c
libavfilter/vf_lut.c
libavfilter/vf_select.c
libavfilter/vf_setpts.c
libavfilter/vsrc_color.c
libavfilter/vsrc_movie.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
c43a7ecad9
lavfi: remove now unused args parameter from AVFilter.init
12 years ago
Anton Khirnov
b9dfee9fa2
vf_fade: switch to an AVOptions-based system.
12 years ago
Nicolas George
4e2bcec95f
lavfi/vf_fade: use standard options parsing.
12 years ago
Anton Khirnov
7e350379f8
lavfi: switch to AVFrame.
Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it
and use AVFrame instead.
12 years ago
Paul B Mahol
c79be51dfc
vf_fade: use AVPixFmtDescriptor to find out if pixel format have alpha
Remove alpha_pix_fmts[].
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Stefano Sabatini
2852bd704a
lavfi/fade: accept shorthand syntax
12 years ago
Paul B Mahol
d084c5c742
vf_fade: support YUVA422P & YUVA444P
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Anton Khirnov
9a65b8c0a2
vf_fade: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
565e4993c6
lavfi: merge start_frame/draw_slice/end_frame
Any alleged performance benefits gained from the split are purely
mythological and do not justify added code complexity.
12 years ago
Michael Niedermayer
f374e9989b
vf_fade: fix memleaks of args
Fixes: CID718989
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago