Stefano Sabatini
4c8fc6a2a4
lavfi/testsrc: use AVFILTER_DEFINE_CLASS for defining the filter classes
...
Factorize.
13 years ago
Stefano Sabatini
33474eb1c6
lavfi/testsrc: extend logic in request_frame, support static image output
13 years ago
Stefano Sabatini
20e940e768
lavfi/testsrc: free the context in uninit
...
Keeping stuff in the context can be useful for debugging purposes.
13 years ago
Nicolas George
f952b23ed4
vf_tile: fix output buffer ownership.
...
There is no need to start_frame immediately on the output link
since the rest is only done with the last frame of the tile.
link->out_buf is now automatically dereferenced; since we give
it away it must be cleared.
Fix an assert failure; found by Clément Bœsch.
13 years ago
Stefano Sabatini
7ddf082f04
lavfi/testsrc: drop pointless parentheses
13 years ago
Stefano Sabatini
2702e38477
lavfi: remove unused defaults.c file
13 years ago
Diego Biurrun
d1505db067
x86: yadif: Mark mmxext optimizations as such
...
The yadif mmx optimizations contain the pmaxsw and pmaxub mmxext
instructions, causing sigills on CPUs that do not support mmxext.
13 years ago
Stefano Sabatini
52bd9cb4d2
lavfi/movie: force channel layout if not set by the decoder
...
This ensures that the output buffers will have the channel layout set,
which is required by filters.
Also consistent with ffmpeg.c behavior.
13 years ago
Stefano Sabatini
b4c3359828
lavfi/asettb: do not create a new reference in filter_samples()
...
There is no need to duplicate the input reference, since a filter should
not pass along a reference which is later modified. If this happens the
filter passing the reference should be fixed.
Also improve consistency with start_frame() of settb, allowing a pending
factorization.
13 years ago
Nicolas George
a85b4a5696
lavfi: use correct PTS for link age.
...
When start_frame has returned, the buffer reference's PTS
may have been modified by another filter.
13 years ago
Michael Niedermayer
3161958455
yadif: update frame rate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
dfd8f2ff19
avfilter: fix minor typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
316f6df9cc
lavfi/avcodec: rename picref->samplesref variable in avfilter_get_audio_buffer_ref_from_frame()
...
The new name is more meaningful in that context.
13 years ago
Stefano Sabatini
9cf9214d0a
lavfi/color: free internal context options in uninit()
...
Keeping the set options in the context when the component is still used
can be useful for debugging purposes.
13 years ago
Stefano Sabatini
a74dcb7dc0
lavfi/color: cache and reuse colored picture in context
...
Avoid to fill the same picture again and again with the same content.
Optimize computation, and provides an example for the use of the
AV_PERM_REUSE permission flag.
13 years ago
Stefano Sabatini
47b6b7a2b9
lavfi/color: reindent after the previous commit
13 years ago
Stefano Sabatini
e5d617aa6d
lavfi/color: drop support for old deprecated syntax
13 years ago
Stefano Sabatini
ad2022ac83
lavfi/testsrc: add comment in options
13 years ago
Justin Ruggles
be51e589cd
af_asyncts: avoid overflow in out_size with large delta values
13 years ago
Justin Ruggles
70d71b5801
af_asyncts: add first_pts option
...
This allows for padding/trimming at the start of stream. By default, no
assumption is made about the first frame's expected pts, so no padding or
trimming is done.
13 years ago
Loren Merritt
1ad715dbf3
vf_hqdn3d: support 9 and 10bit colordepth
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Loren Merritt
0f583e6cc5
vf_hqdn3d: reduce intermediate precision
...
11% faster on penryn, 7% on sandybridge, 5% on bulldozer
Negligible change to output.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Loren Merritt
85e228c71d
vf_hqdn3d: simplify and optimize
...
14% faster on penryn, 2% on sandybridge, 9% on bulldozer
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Loren Merritt
fb44e7401f
factor identical ff_inplace_start_frame out of two filters
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Loren Merritt
60b9785530
vf_hqdn3d: cosmetics
...
Change code style to match the rest of libav.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Nicolas George
efcfcf8793
avf_concat: fix silence duration.
...
concat_in.pts starts at 0 for each segment, so the duration
of the silence was too long, except at the first stitch.
13 years ago
Nicolas George
4ce87ecf2a
asrc_flite: do not crash on multiple instances.
...
The voice register functions return the same voice structure
upon multiple registration. It causes us two problems:
If we delete a voice without deregistering it, it leaves
a dangling pointer inside the library.
If we delete or unregister a voice at uninit, it may still
be in use by another instance of the filter.
The second problem is solved by keeping an usage counter inside
asrc_flite. This is not thread-safe, but neither is flite itself.
13 years ago
Anton Khirnov
b3fa478823
lavfi: bump minor to mark stabilizing the ABI.
13 years ago
Nicolas George
9a757cca34
avf_concat: fix min value for v option.
13 years ago
Stefano Sabatini
66a5201819
lavfi: add flite audio source
13 years ago
Stefano Sabatini
32390d6767
lavfi: move movie and amovie to a "multimedia sources" section
...
Since the recent changes, movie and amovie are able to deal with more
than one type of stream, so they should be categorized as "multimedia
sources" rather than audio/video sources.
13 years ago
Justin Ruggles
743f07062a
lavfi: better channel layout negotiation
...
Allow substitution of channel pairs in the input for nearby channel pairs in
the output in order to get a closer match. Also weigh LFE channel mismatch
differently to favor matching the same layout without LFE over one less
channel with LFE.
13 years ago
Steven Robertson
b3841db133
vf_alphamerge: Fix reversed conditional
...
Reviewed-by: Nicolas George
13 years ago
William Yu
d5d5e3dabe
lavfi/af_amerge: avfilter_copy_buffer_ref_props will overwrite output pts
13 years ago
Anton Khirnov
b5c8aa745e
vf_yadif: unset cur_buf on the input link.
...
The buffer is stored internally, so this prevents it from being unreffed
automatically.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Anton Khirnov
f431315a86
vf_overlay: ensure the overlay frame does not get leaked.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Michael Niedermayer
08fc1ad151
vf_overlay: prevent premature freeing of cur_buf
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Stefano Sabatini
e564de26b3
lavfi/avfilter.h: add doxy for AVFilterLink.out_buf
13 years ago
Stefano Sabatini
b73be80d48
lavfi/avfilter.h: add doxy for AVFilterLink.cur_buf
13 years ago
Diego Biurrun
49c45a2624
avfilter: Fix printf format string conversion specifier
...
libavfilter/avfilter.c:224:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘int’ [-Wformat]
13 years ago
Nicolas George
ddcb99bb51
vf_deshake: set cur_buf to NULL.
...
Fix a segfault.
13 years ago
Paul B Mahol
ebe846fa73
vf_colormatrix: add missing semicolon
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Nicolas George
a7ac05ce2f
src_movie: implement multiple outputs.
...
The audio and video code paths were too different,
most of the decoding has been rewritten.
13 years ago
Nicolas George
05776119c1
buffersrc: use avfilter_get_buffer_ref_from_frame.
13 years ago
Nicolas George
5c5f75b92b
lavfi: add avfilter_get_buffer_ref_from_frame.
13 years ago
Stefano Sabatini
7afd42d9f2
lavfi/showwaves: do not set on outlink->out_buf the sent video frame
...
The video frame reference is passed along the filterchain, and is not
possessed anymore by the filter. If out_buf is not set to NULL, it will
be freed by ff_end_frame() causing a crash.
13 years ago
Michael Niedermayer
67a304985e
vf_overlay: fix missed return
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
612307978d
lavfi: change "transmedia" into "multimedia".
13 years ago
Nicolas George
be33da9a1d
lavfi: add concat filter.
13 years ago
Ronald S. Bultje
3124886554
lavfi: place x86 inline assembly under HAVE_INLINE_ASM.
...
This allows compiling this code using compilers that do not understand
gcc-style inline assembly.
13 years ago