Robert Nagy
e90dfa6881
yadif: Improve pts calculation for is_second.
...
Tested-by: Robert Nagy <ronag89@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Robert Nagy
a80217a5ee
copy pts and format props between lavfi buffer and frame.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5cd460ba63
vsrc_buffer: fix null ptr segfault
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0d115d7799
avfiltergraph: More advanced heuristic to select colorspace.
...
This fixes regressions caused by switching from ffmpegs system to avfilters.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
aff01de641
graphparser: set next to NULL on an entry extracted from inputs list
...
Prevents it from referring to the rest of the list.
13 years ago
Robert Nagy
ed66bbfcb9
lavfi/aresample: properly propagate pts == AV_NOPTS_VALUE;
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Robert Nagy
4d84c7ded6
yadif: fixed missing error handling for poll_frame.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
7af99a01c4
graphparser: fix the order in which unlabeled input links are returned.
13 years ago
Anton Khirnov
7bf9e3391f
vsrc_buffer: fix check from 7ae7c41
.
...
The user submitted variable in this function is frame, not buf.
13 years ago
Stefano Sabatini
91d3cbe0fd
avfiltergraph: make the AVFilterInOut alloc/free API public
...
This is required for letting applications to create and destroy
AVFilterInOut structs in a convenient way.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
12e7e1d03e
graphparser: allow specifying sws flags in the graph description.
13 years ago
Anton Khirnov
4e781c25b7
graphparser: fix the order of connecting unlabeled links.
...
Right now, e.g. scale,[in]overlay would connect scale to the first
overlay input and [in] to the second, which goes against the
documentation and is unintuitive.
The bug happens because of the ordering mess in curr_inputs variable:
1) the unlabeled links from the previous filter are added to it in
correct order
2) input labels are parsed and inserted to the beginning one by one
(i.e. in reverse order)
3) curr_inputs is matched against filter inputs in reverse order
Fix the problem by always using proper ordering without trying to be
clever.
13 years ago
Anton Khirnov
d7bcc71dad
graphparser: add avfilter_graph_parse2().
...
Unlike avfilter_graph_parse(), it returns unlinked inputs and outputs
to the caller, which allows parsing of graphs where inputs/outputs are
not known in advance.
13 years ago
Anton Khirnov
7ae7c41413
vsrc_buffer: allow using a NULL buffer to signal EOF.
13 years ago
Clément Bœsch
3f80546d75
lavfi/drawbox: fix width displayed in place of x.
13 years ago
Stefano Sabatini
5eeecde859
lavfi/mp: remove 2xsai wrapped filter
...
It was ported to a native libavfilter filter.
13 years ago
Stefano Sabatini
b7a7830dd4
lavfi: port 2xsai filter from libmpcodecs
...
Partially based on the port by Niel van der Westhuizen
<nielkie@gmail.com>, done for GCI 2010. Same output as the original
filter and as fast.
See thread:
Subject: [FFmpeg-devel] [PATCH] Port MPlayer 2xSaI filter to libavfilter
Date: Thu, 25 Nov 2010 01:31:24 +1000
13 years ago
Stefano Sabatini
162e400464
lavfi: install asrc_abuffer.h header
...
The header is part of the public API, in particular is used by
doc/examples/filtering_audio.c.
13 years ago
Michael Niedermayer
c0af87550a
vf_lut: fix rgba map regression
...
Fixes Ticket1184
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
40b7a27bad
vf_drawtext: fontconfig support.
13 years ago
Nicolas George
be9b0d2c5a
vf_drawtext: fix memory leak of draw expression.
13 years ago
Nicolas George
423047ea31
vf_drawtext: fix memory leak of glyph data.
13 years ago
Anton Khirnov
e36b25d1df
vf_overlay: implement poll_frame()
...
Signal that it can output a frame when there are frames on the main
input and EOF on the overlay input, but a frame is buffered -- e.g.
single picture overlay.
13 years ago
Anton Khirnov
90f65dc6cf
vf_scale: support named constants for sws flags.
13 years ago
Reimar Döffinger
6458a08700
vf_scale: ensure the palette is set for output.
...
Since those are pseudo-palette formats, swscale does not write
into data[1], swscale must initialize the palette properly itself.
This lead to frames that actually decoded as all-gray before.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
24eac3cff5
Mark GRAY8 format as pseudo-paletted.
...
This fixes that the GIF encoder crashes with it because
it has no palette.
And the arguments for the pseudopalette apply to gray8 as
much as to RGB8 etc.
In addition the changes required in lavfi should be needed anyway
when adding support for RGB8 etc.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
bbaf941e29
scale: fix slice rendering with conversion between pal/non-pal.
...
We can't use whether the input format is paletted to decide that
the output format has a palette in data[1], too, that makes no sense.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Stefano Sabatini
6cb01c9dba
lavfi/mp: remove remove_logo wrapper
...
removelogo has been ported to libavfilter, and the wrapper was not
working.
13 years ago
Stefano Sabatini
2f83681c79
lavfi: port libmpcodecs remove-logo filter
...
The code is based on the remove-logo filter in MPlayer/libmpcodecs, by
Robert Edele, relicensed to LGPL with consent of the author.
Address trac issue #249 .
13 years ago
Michael Niedermayer
25eae29ea1
vsrc_buffer: remove overwrite support.
...
the overwrite flag became unused when merging support for buffering
multiple frames.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
a03f8ea0a8
vsrc_buffer: when no frame is available, return an error instead of segfaulting.
13 years ago
Michael Niedermayer
fa1f92a4f1
vf_idet: clean detected frame types based on a 4 frame history.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c59e73d2c8
vf_idet: change individual per frame statistics to debug log level.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4d4df310f2
vf_idet: print accumulated statistics for single and multi frame detection
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0477254dd2
vf_idet: Print both the single frame based detection and the multi frame one.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1a5c08eef6
vf_idet: Add last_type variable to make code more readable.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ca2b450cee
vf_idet: use enum to represent the type.
...
This will simplify future code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
multiple authors
13cc3645b0
libavfilter: add colormatrix filter
...
Ported by: Baptiste Coudurier
cleanup+fate by ubitux
For detailed authorship of the original code please see avisynth
13 years ago
Diego Biurrun
1f068e4450
vf_unsharp: Mark readonly variable as const.
...
This fixes the following warning:
libavfilter/vf_unsharp.c:106: warning: initialization discards qualifiers from pointer target type
13 years ago
Michael Niedermayer
6fb35dbad1
vf_idet: print accumulated statistics at end
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
baf0c79a4d
vf_idet: set interlaced flags
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2941a937f2
vf_idet: fix indention
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5d9cfd8726
vf_idet: move statistic variables into the context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
02567bd73c
vf_idet: remove unused function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
398491ae01
vf_idet: pass context to av_log()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
6c7b5b7b33
vf_ass: use drawutils.
13 years ago
Nicolas George
a63712d37c
vf_drawtext: use drawutils.
13 years ago
Nicolas George
e8497a338e
drawutils: implement uniform and mask blending.
13 years ago
Michael Niedermayer
e3e89b6d8b
libavfilter: Add interlace detect filter.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
38477e1981
vf_lut: avoid rgb component indexing in the inner loop
...
15k->10k cpu cycles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago