Diego Elio Pettenò
faa8245bd4
vf_lut: Constantize
...
The pixel format tables are never modified, mark them as constant.
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Hendrik Leppkes
cb8f70c96e
vf_fps: use double constants for default/min/max for start_time
...
When using AV_NOPTS_VALUE (which expands to INT64_C(0x8000000000000000))
as union initializer for a double field, the c99 converter needs to
interpret this constant when filling the union initializer, and it is
interpreted as a positive value.
When converting AV_NOPTS_VALUE to a double, MSVC 2010 ends up with
the same positive value as the c99 converter, while MSVC 2012 gets
a negative value.
This results in an infite loop in various FATE tests on MSVC 2012.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Vittorio Giovara
0ce1a7598e
vf_interlace: fix file permissions
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Justin Ruggles
545a0b807c
vf_fps: add 'start_time' option
...
This allows for dropping or duplication to match a particular start time.
11 years ago
Anton Khirnov
3799376dd3
lavfi/fifo: fix flushing when using request_samples
...
If any samples are still buffered when request_frame returns EOF, they
won't be returned currently.
11 years ago
Anton Khirnov
77cc958f60
lavfi: add const to the AVFilter parameter of avfilter_graph_create_filter()
...
This function should never modify the filter.
11 years ago
Diego Biurrun
7950e519bb
Disable deprecation warnings for cases where a replacement is available
11 years ago
Diego Biurrun
b5a138652f
Give less generic names to global library option arrays
11 years ago
Diego Biurrun
45dd1ae1b3
avfilter: Add some missing FF_API_AVFILTERBUFFER ifdefs
11 years ago
Diego Biurrun
0e8c6f221a
avisynth: Fix a "AVISynth" vs. "AviSynth" struct name typo
...
Also fix some similar typos in comments and documentation.
11 years ago
Diego Biurrun
bf4b0ed1d5
Add missing deprecation attributes
11 years ago
Diego Biurrun
966689442e
buffersink: K&R formatting cosmetics
11 years ago
Hendrik Leppkes
779e6c2b98
lavfi: add attribute_align_arg to all public entry points
...
Previously it was partly only added to central functions called
internally, however if GCC would inline these into the public fuction, the
alignment attribute would not take effect.
Instead, add it to all public entry points to avoid these problems.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Vittorio Giovara
6756d98cec
lavfi: filtfmts: use newer avfilter APIs
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Diego Biurrun
3ac7fa81b2
Consistently use "cpu_flags" as variable/parameter name for CPU flags
11 years ago
Sean McGovern
50612484e0
pthread: Rename thread_init to avoid symbol collision
...
The AIX threads library exposes a function with the same name.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
bec509db43
vf_interlace: better handling of odd video size
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
eeeb5c291d
vsrc_movie: do not free avoption variables in uninit()
...
The generic code frees them as well. Since av_free was used to free them
instead of av_freep, this would result in a double free.
12 years ago
Anton Khirnov
c9c7bc4493
lavfi: switch ff_default_get_audio_buffer() to av_frame_get_buffer()
...
This simplifies the code and avoids using libavcodec-specific
avcodec_fill_audio_frame().
12 years ago
Vittorio Giovara
cd0faeee62
lavfi: math typo in interlace filter
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Anton Khirnov
8b7dffc2d6
lavfi doxy: improve/extend AVFilter doxy.
12 years ago
Anton Khirnov
8a994b7406
vf_fade: support slice threading
12 years ago
Anton Khirnov
cb79881b49
vf_yadif: support slice threading
12 years ago
Anton Khirnov
129bb23843
lavfi: add a slice threading infrastructure
...
Mostly based on libavcodec's
12 years ago
Anton Khirnov
7e2b15c094
avfilter: check a malloc in avfilter_link().
...
Additionally change sizeof(type) into sizeof(var)
12 years ago
Anton Khirnov
bf5b5d2b15
avfilter.c: cosmetics, reformat
12 years ago
Anton Khirnov
d79bd60405
lavfi: factorize freeing a link
12 years ago
Anton Khirnov
1dd3561143
vf_format: do not use the AVFilterFormats internals.
...
Use the formats.h API instead.
12 years ago
Anton Khirnov
c5ab6088ad
af_aformat: cosmetics, fix indentation
12 years ago
Anton Khirnov
b01f6041f4
lavfi: rename AVFilterFormats.format_count to nb_formats
...
This is more consistent with naming in the rest of Libav.
12 years ago
Anton Khirnov
bc8c1cdc7b
lavfi doxy: add a page for lavfi.
12 years ago
Anton Khirnov
16a645adeb
vf_pixdesctest: make config_props work properly when called multiple times.
12 years ago
Anton Khirnov
3ba35a346c
vf_hqdn3d: make config_props work properly when called multiple times.
...
Do not leak all the temp buffers.
12 years ago
Anton Khirnov
3fb29588a2
vf_drawtext: don't leak the expressions.
12 years ago
Anton Khirnov
6592cd22a2
vf_crop: make config_props work properly when called multiple times.
...
Do not leak the x/y expressions.
12 years ago
Anton Khirnov
d5c66d9c56
vf_setdar: make config_props work properly when called multiple times.
...
Do not overwrite the variable set through AVOptions.
12 years ago
Anton Khirnov
4c205f42c8
vf_drawbox: make config_props work properly when called multiple times.
...
Do not overwrite the variables set through AVOptions.
12 years ago
Anton Khirnov
90d9a2a04c
vf_drawtext: do not reset the frame number in config_input.
...
Frame number should be incremented normally even if the link properties
change.
12 years ago
Anton Khirnov
7727be79d1
vf_fps: move initializing pts from config_props to init.
...
It should not be reinitialized if the link properties change.
12 years ago
Anton Khirnov
d371c3c2e2
vf_frei0r: make config_props work properly when called multiple times.
...
Do not leak the initialized filter instance.
12 years ago
Anton Khirnov
87c31cfd7a
vf_gradfun: make config_props work properly when called multiple times.
12 years ago
Anton Khirnov
b06848f4de
vf_lut: make config_props work properly when called multiple times.
...
Do not leak the expressions.
12 years ago
Anton Khirnov
3062ac4c47
vf_pad: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago
Anton Khirnov
a70519aad1
vf_overlay: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago
Anton Khirnov
8d2565c28b
vf_lut: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago
Anton Khirnov
4753f802c0
vf_libopencv: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago
Anton Khirnov
56e4ce0d13
vf_hqdn3d: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago
Anton Khirnov
7af5ae2d07
vf_hflip: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago
Anton Khirnov
05fab5530b
vf_gradfun: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago
Anton Khirnov
f6b6d6ac42
vf_frei0r: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
12 years ago