Diego Biurrun
965fdda015
vf_drawtext: Remove some write-only variables.
...
libavfilter/vf_drawtext.c:427:22: warning: variable 'dst_pixel' set but not used
libavfilter/vf_drawtext.c:463:22: warning: variable 'dst_pixel' set but not used
14 years ago
Stefano Sabatini
ebd1edf36c
avfiltergraph: clarify doxy for avfilter_graph_parse() open_inputs/outputs params
...
Make it clear that open_inputs/open_outputs are updated only if non-NULL.
14 years ago
Stefano Sabatini
6ce05bc73c
graphparser: clarify comments in avfilter_graph_parse()
14 years ago
Stefano Sabatini
df8c675f48
graphparser: fix logic for updating the open_inputs/outputs in avfilter_graph_parse()
...
Create open_inputs and open_outputs structs if they are not provided by
the user, and free them before exit.
In particular, fix NULL pointer dereference and crash, in case the
passed open_inputs/outputs is NULL and the parsing failed.
14 years ago
Diego Biurrun
d3f751e603
Add some missing mathematics.h #includes for av_rescale().
14 years ago
Nicolas George
e6d88f63a8
libavfilter: add a default to silence a warning.
14 years ago
Stefano Sabatini
80f1cfd09d
vf_pad: fix "vsub" variable value computation
...
It was shifting 2 rather than 1, +10l.
14 years ago
Stefano Sabatini
0bf02fb1ea
vf_pad: add support for a "sar" variable
...
Also add a "dar" alias for "a", for avoiding confusion with sar/dar.
14 years ago
Stefano Sabatini
01151a26c0
vf_scale: add a "sar" variable
...
Also create a "dar" alias for the "a" variable, for avoiding possible
confusion between dar/sar.
14 years ago
Loren Merritt
082768f0b1
vf_gradfun: relicense x86 asm to LGPL
...
Actually I gave permission for LGPL long ago, but the original import
failed to update the license header.
14 years ago
Mans Rullgard
abc78a5a7c
Do not include log.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
d49ea4afb4
Do not include pixfmt.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
e91709ca17
Do not include rational.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
24c9babaaf
doxygen: Fix parameter names to match the function prototypes.
14 years ago
Joakim Plate
2a375bb400
Add mode to yadif to enable/disable deinterlacing based on src frame "interlaced" flag
...
Signed-off-by: Joakim Plate <elupus@ecce.se>
14 years ago
Stefano Sabatini
59bd0fef66
vf_lut: set minimum and maximum alpha value for yuva420p
14 years ago
Stefano Sabatini
2b550beb22
vf_lut: add plane validity check in draw_slice()
...
The value for inpic->data[plane] with plane >=4 is undefined, and it
will contain in general random data. This change adds a check for
exiting the loop when plane reaches the value 4.
Fix crash (occurring for example with: format=rgba,lut).
14 years ago
Stefano Sabatini
7464a53aaa
lavfi: make pix_fmt_is_in() in vf_lut.c an internal function
...
Also generalize it, making it accept ints rather than pixel formats.
Allow factorization.
14 years ago
Mans Rullgard
57b4a3dd2b
build: include sub-makefiles using full path instead of symlinks
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
cdeb803e2f
vf_lut: fix draw_slice() in case of non packed image data for packed RGB
...
The previous code was erroneously assuming that the linesize was
equivalent to width*pixel_step, which is not always true.
14 years ago
Stefano Sabatini
2f222b9550
lavfi: add testsrc source
14 years ago
Reimar Döffinger
1109680434
Revert "build: Remove redundant config.mak includes from subdirectory Makefiles."
...
This reverts commit a6213f3dce
.
14 years ago
Stefano Sabatini
5aca97e247
vsink_buffer: add missing description
14 years ago
Diego Biurrun
a6213f3dce
build: Remove redundant config.mak includes from subdirectory Makefiles.
...
Calling Make from subdirectories is not supported and config.mak has
multiple inclusion guards anyway, so the top-level include is enough.
14 years ago
Clément Bœsch
c9584f0c9c
vf_mp: do not add duplicated pixel formats.
...
This avoid a crash with in avfilter_merge_formats() in case one of the
filter formats list has multiple time the same entry.
Thanks to Mina Nagy Zaki for helping figuring out the issue.
14 years ago
Stefano Sabatini
f4228097e4
lavfi: minor style fixes in formats.c
14 years ago
Michael Niedermayer
90c6963dae
avfilter picture pool: double free hotfix
...
This fix introduces a small memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
e6c52cee54
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
...
av_get_bits_per_sample_fmt() is deprecated.
14 years ago
Stefano Sabatini
5a0a6ae639
ocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX
...
Fix compilatin after removal of FF_INTERNAL_MEM_TYPE_MAX_VALUE.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
702a62a1c6
drawtext: add braces around initialisers for option defaults
...
Fix warnings of the type:
vf_drawtext.c:NNN: warning: missing braces around initializer
vf_drawtext.c:NNN: warning: (near initialization for ‘drawtext_options[X].default_val’)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
53a715f576
drawtext: reindent after the previous commit
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
3fd53defaa
drawtext: fix strftime() text expansion
...
The feature was dropped after the filter was partially rewritten and
recommitted.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Mina Nagy Zaki
fd2c0a5db2
lavfi: add layout negotiation fields and helper functions.
14 years ago
Mina Nagy Zaki
527ca3985c
lavfi: use int64_t lists in AVFilteFormats
...
The list type was changed to int64_t to be able to hold
channel layouts.
avfilter_make_format_list() still takes a int32_t array and converts
it to int64_t. A new function, avfilter_make_format64_list, that
takes int64_t arrays has been added.
14 years ago
Stefano Sabatini
8f349b6481
lavfi: fix realloc size computation in avfilter_add_format()
...
Replace sizeof((*avff)->formats)
with sizeof(*(*avff)->formats)
as the size of the array element is given by the pointed element
rather than by its pointer.
In particular fix computation with the pending patch when
sizeof(int64_t) != sizeof(int64_t *).
14 years ago
Stefano Sabatini
c6e288a7cd
lavfi: fix Makefile HEADERS
...
Add a missing space between vsink_buffer.h and vsrc_buffer.h.
1000l.
14 years ago
Stefano Sabatini
44f669e7bc
lavfi: add vsink_buffer, and use it in ff* tools
...
Also add the public interface libavfilter/vsink_buffer.h.
14 years ago
Stefano Sabatini
e89ba76a59
vsrc_color: use internal timebase
...
Avoid timescale conversion, simplify.
14 years ago
Stefano Sabatini
15f03725ce
lavfi: add negate filter
...
This filter is a simple wrapper around the LUT filter.
14 years ago
Stefano Sabatini
dd2793c880
lavfi: add LUT (LookUp Table) generic filters
14 years ago
Stefano Sabatini
0c6cf3fa7c
vsrc_color: set output pos values to -1
...
-1 is more correct than 0, as the position in the file is undefined.
14 years ago
Stefano Sabatini
bb3a2b723a
vsrc_color: add @file doxy
...
Also remove outdated reference to color in vf_pad.c.
14 years ago
Stefano Sabatini
8055433b49
graphparser: add missing NULL check in avfilter_graph_parse()
...
Fix a crash occurring when open_inputs is NULL and *open_inputs is
checked, the crash was introduced by the recent avfilter_graph_parse()
syntax change.
In particular, fix graph2dot crash.
14 years ago
Anton Khirnov
603b8bc2a1
Deprecate av_open_input_* and remove their uses.
...
Deprecate the last remaining member of AVFormatParameters.
14 years ago
Michael Niedermayer
9e2f448d68
vf_mp: Fix large memleak.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
3fe6bbd5dc
libavfilter: implement avfilter_fill_frame_from_video_buffer_ref()
14 years ago
Stefano Sabatini
c535494268
avfiltergraph: make the AVFilterInOut alloc/free API public
...
This is required for letting applications to create and destroy
AVFilterInOut structs in a convenient way.
14 years ago
Stefano Sabatini
6119b23a36
avfiltergraph: change the syntax of avfilter_graph_parse()
...
Make it returns the list of open inputs and outputs, so it can be
reused by applications.
Breaks API/ABI.
14 years ago
Stefano Sabatini
86909dd5f7
graphparser: prefer void * over AVClass * for log contexts
14 years ago