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
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
Nicolas George
9c1d649ce5
overlay: clear cur_buf on main input link.
A reference is kept in the queue and freed after use.
13 years ago
Steven Robertson
82ecae8a70
lavfi: add alphaextract and alphamerge filters
These filters are designed for storing and transmitting video sequences
with alpha using higher-efficiency codecs such as x264 which don't
natively support an alpha channel. 'alphaextract' takes an input stream
with an alpha channel and returns a video containing just the alpha
component as a grayscale value; 'alphamerge' takes an RGB or YUV stream
and adds an alpha channel recovered from a second grayscale stream.
Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Anton Khirnov
a8a2271fe0
buffersrc: check ff_get_audio_buffer() for errors.
13 years ago
Anton Khirnov
8f3a3ce730
lavfi: check all ff_get_video_buffer() calls for errors.
13 years ago
Anton Khirnov
1dc4205018
lavfi: check all avfilter_ref_buffer() calls for errors.
13 years ago
Anton Khirnov
80e4ed279b
vf_select: avoid an unnecessary avfilter_ref_buffer().
13 years ago
Anton Khirnov
785fa50f0b
buffersrc: avoid creating unnecessary buffer reference
13 years ago
Anton Khirnov
02ac7311c8
lavfi: use avfilter_unref_bufferp() where appropriate.
13 years ago
Anton Khirnov
043800a968
vf_fps: add more error checks.
13 years ago
Anton Khirnov
d515e9c225
vf_fps: fix a memleak on malloc failure.
13 years ago
Anton Khirnov
3825b52688
lavfi: check all ff_start_frame/draw_slice/end_frame calls for errors
13 years ago
Anton Khirnov
d4f89906e3
lavfi: add error handling to end_frame().
13 years ago
Anton Khirnov
e9b992d035
lavfi: add error handling to draw_slice().
13 years ago