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
Stefano Sabatini
d468ed0321
lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config()
Require "void *" rather than "AVClass *" for the log context type.
14 years ago
Stefano Sabatini
f5901fd392
avfiltergraph: use meaningful error codes
14 years ago
Mina Nagy Zaki
79a0ec1af4
lavfi: avfilter_merge_formats: handle case where inputs are same
This fixes a double-free crash if lists are the same due to the two
merge_ref() calls at the end of the (useless) merging that happens.
14 years ago
Stefano Sabatini
989184fea4
lavfi: use avfilter_get_audio_buffer_ref_from_arrays() in defaults.c
Use avfilter_get_audio_buffer_ref_from_arrays() in
avfilter_default_get_audio_buffer(), simplify.
14 years ago
Stefano Sabatini
c3819600e2
lavfi: implement avfilter_get_audio_buffer_ref_from_arrays()
14 years ago
Mina Nagy Zaki
47d2ca3205
lavfi: handle NULL lists in avfilter_make_format_list
14 years ago
Stefano Sabatini
ef28c7b3a4
lavfi: use av_samples_alloc() in avfilter_default_get_audio_buffer()
15 years ago
Stefano Sabatini
95a0242642
lavfi: prefer nb_samples over size in AVFilterBufferRefAudioProps
Remove AVFilterBufferRefAudioProps.size, and use nb_samples in
avfilter_get_audio_buffer() and avfilter_default_get_audio_buffer() in
place of size.
This is required as the size in the audio buffer may be aligned, so it
may not contain a well defined number of samples.
14 years ago
Stefano Sabatini
27bcf55f45
vsrc_buffer: add flags param to av_vsrc_buffer_add_video_buffer_ref
The new flags parameter allows to specify if the video ref to add
should overwrite the cache, if the flag is not set vsrc_buffer will
complain and abort; otherwise it will clean the already cached video
ref before to overwrite it, thus avoiding a leak.
14 years ago
Reimar Döffinger
612d0782fc
Add const to avfilter_get_video_buffer_ref_from_arrays arguments.
Avoids warning about discarding qualifiers in avcodec.c
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
14 years ago
Stefano Sabatini
e977ca2645
lavfi: add avfilter_link_free() function
Allow to free the buffers cached in each AVFilterLink pool.
Fix leak.
14 years ago
Mans Rullgard
e65ab9d94f
Remove unused variables
14 years ago
Stefano Sabatini
9e66b64c36
vsrc_buffer: propagate error code in av_vsrc_buffer_add_frame()
Propagate av_vsrc_buffer_add_video_buffer_ref() error code rather than
return 0.
14 years ago
Stefano Sabatini
665e608c8d
lavfi: reindent after the previous commit
14 years ago
Stefano Sabatini
6f1dd6f45a
lavfi: add braces around the block of an if() expression in avfilter_default_get_video_buffer
Clarify code layout.
14 years ago
Stefano Sabatini
0ff5cbedd2
lavfi: clarify the context of a comment in avfilter_default_get_video_buffer()
The comment is meant to be about the align parameter.
14 years ago
Stefano Sabatini
77b32b73ed
lavfi: apply misc style fixes
Adopt K&R style for overall consistency/readability.
14 years ago
Reimar Döffinger
58fd70b04d
Port remove of get_sws_cpuflags from MPlayer's libmpcodecs.
14 years ago
Reimar Döffinger
3379531c40
Port recent changes to MPlayer libmpcodecs.
Also include an older fix for vf_smartblur which was essentially
broken due to reading the threshold value wrongly.
14 years ago
Reimar Döffinger
2a30df09fd
Replace non-existent HAVE_SSE2 with HAVE_SSE.
Since this is only a compilation check (the actual function used is
selected at runtime) and HAVE_SSE indicates that we can also compile
SSE2 code, this is correct.
14 years ago
Reimar Döffinger
bf19c87101
Fix type of out[] variable, it should not be const.
Fixes compiler warning about incompatible types in sws_scale call.
14 years ago
Diego Biurrun
b0a4e5f9e7
Employ correct printf format specifiers, mostly in debug output.
14 years ago
Diego Biurrun
5ac4952a58
vf_drawtext: Replace FFmpeg by Libav in license boilerplate.
14 years ago
Reimar Döffinger
a52f598d63
Port libmpcodec fixes from MPlayer.
14 years ago
Clément Bœsch
adba9c6352
Fix various unused variable warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
d6e0729b24
avfilter: Surround function only used in debug mode by appropriate #ifdef.
This fixes the warning:
libavfilter/avfilter.c:219: warning: ‘ff_get_ref_perms_string’ defined but not used
14 years ago
Diego Biurrun
2146f4928a
vf_crop: Replace #ifdef DEBUG + av_log() by av_dlog().
14 years ago
Stefano Sabatini
07586b68a8
lavfi: add select filter
Address trac issue #92 .
14 years ago
Stefano Sabatini
cf06e3e4dd
vsrc_buffer: return an error code if no frames are available
Also decrease the log level of the corresponding message to WARNING,
since the error is not fatal.
14 years ago
Stefano Sabatini
ecf72542fa
vsrc_buffer: remove duplicated file description
14 years ago
Stefano Sabatini
75abcdb391
vsrc_buffer.h: add file doxy
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
f7053dc41a
vsrc_buffer: tweak error message in init()
Change:
Expected 7 arguments, but only %d found in '%s'\n
to:
Expected 7 arguments, but %d found in '%s'\n
as the user may provide more than 7 arguments, in that case the error
is not misleading.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
83db719777
lavfi: make vsrc_buffer.h header public
Address trac issue #33 .
14 years ago
Stefano Sabatini
af2ed4b748
lavfi: bump minor and add changelog entry after the split filter addition
14 years ago
Stefano Sabatini
6f5a145be1
vf_split: give more meaningful names to the output pads
Rename "default" -> "output1", "default2" -> output2.
14 years ago
Stefano Sabatini
de1100a00a
vf_split: define draw_slice() before end_frame()
Improve logical coherence, fix nit.
14 years ago
Stefano Sabatini
88fc2e411e
vf_split: add description
14 years ago
Stefano Sabatini
7d5297b343
vf_split: fix various nits
14 years ago
Bobby Bingham
a38a00eddf
libavfilter: vf_split from soc.
Commited by michael, for detailed authorship see soc repo
14 years ago
Diego Biurrun
153382e1b6
multiple inclusion guard cleanup
Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent.
14 years ago
Stefano Sabatini
f1b3f33d48
vf_libopencv: prefer opencv/cxcore.h over cxtypes.h
Require the presence of opencv/cxcore.h in place of opencv/cxtypes.h,
which has been removed. Fix compilation with libopencv > 2.1.0.
Fix trac issue #221 .
14 years ago