Bobby Bingham
a38a00eddf
libavfilter: vf_split from soc.
...
Commited by michael, for detailed authorship see soc repo
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
Stefano Sabatini
c78a85adf4
vsrc_buffer: document av_vsrc_buffer_add_video_buffer_ref()
14 years ago
Stefano Sabatini
c000a9f783
vsrc_buffer: add av_vsrc_buffer_add_frame()
...
The new function is a wrapper around
av_vsrc_buffer_add_video_buffer_ref(), and allows to simplify the act
of pushing AVFrame data to the source buffer.
14 years ago
Stefano Sabatini
50764e19a8
vsrc_buffer: make the source accept sws_param in init
...
Avoid the need of two distinct av_vsrc_add_video_buffer_ref*
functions. Simplify the interface.
14 years ago
Stefano Sabatini
509b32cf5d
vsrc_buffer: propagate avfilter_open() error code
14 years ago
Stefano Sabatini
3799805e56
vsrc_buffer: fix style
14 years ago
Stefano Sabatini
9fdf77217b
lavfi: add avfilter_get_video_buffer_ref_from_frame to avcodec.h
...
Simplify passing AVFrame data to av_vsrc_buffer_add_video_buffer_ref().
14 years ago
Stefano Sabatini
6070b7e1c5
vsrc_buffer: remove dependency on AVFrame
...
Rename av_vsrc_buffer_add_frame to
av_vsrc_buffer_add_video_buffer_ref(), and change its inteface to make
it accept in input an AVFilterBufferRef rather than an AVFrame.
This way the interface can be used without requiring the
inclusion/installation of libavcodec headers.
14 years ago
Michael Niedermayer
e6e7ba0ce3
Add some forgotten const to function arguments in libavfilter & libavformat.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
d8c7a21602
drawtext: specify union type for setting default options
...
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’)
14 years ago
Stefano Sabatini
e8ea9c2179
drawtext: reindent after the previous commit
14 years ago
Stefano Sabatini
ce207e050e
drawtext: fix strftime() text expansion
...
The feature was dropped after the filter was partially rewritten and
recommitted.
Fix issue #207 .
14 years ago
Stefano Sabatini
5dc65a3d03
lavfi: print key-frame and picture type information in ff_dlog_ref()
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
(cherry picked from commit f7bdffb09d
)
14 years ago
Stefano Sabatini
a05d02079e
showinfo: replace "CRC" by "checksum"
...
Indeed the Adler-32 checksum, which is computed by showinfo, is not
cyclic, so using the term "CRC" is wrong/confusing.
14 years ago
Stefano Sabatini
5a2ea3cffb
showinfo: fix vertical align nit
14 years ago
Stefano Sabatini
bb82ea797f
showinfo: fix computation of Adler checksum
...
Previously the code was computing the checksum only for the first line
of each plane.
14 years ago
Anton Khirnov
b66752790a
AVOptions: make default_val a union, as proposed in AVOption2.
...
This breaks API and ABI.
14 years ago
Stefano Sabatini
ea7f73c52e
vsrc_buffer: during init, print information about timebase and sample aspect ratio
14 years ago
Stefano Sabatini
64c06615d2
vsrc_buffer: simplify av_vsrc_buffer_add_frame*() interface
...
Now that pix_fmt, width, and height are directly embedded in the AVFrame,
there is no need to pass these values as separate arguments.
14 years ago
Stefano Sabatini
566666caf3
lavfi: add libavfilter/avcodec.h and avfilter_copy_frame_props()
...
avfilter_copy_frame_props() avoids code duplication and increases
robustness.
The added files libavfilter/avcodec.[ch] are used for containing
utilities useful for gluing togheter libavfilter and libavcodec.
14 years ago
Stefano Sabatini
18ded93ab3
lavc: add format field to AVFrame
...
The format is a per-frame property, having it in AVFrame simplify the
operation of extraction of that information, since avoids the need to
access the codec/stream context.
14 years ago
Stefano Sabatini
22333a6b19
lavc: add width and height fields to AVFrame
...
width and height are per-frame properties, setting these values in
AVFrame simplify the operation of extraction of that information,
since avoids the need to check the codec/stream context.
14 years ago
Michael Niedermayer
c5420f100f
drawtext: add shadow support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
e73127a443
drawtext: factor draw_glyphs.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
a5b81c317e
drawtext: fix and optimize yuv blend.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
3953a88014
drawtext: get rid of divisions in the inner loop.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
e74bf3f368
drawtext: simplify chroma blend and fix chroma alpha.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
a5b64584f3
lavfi: Port drawtext filter by Hemanth from the libavfilter soc repo
...
With the following additions:
* support to anti-aliased glyph rendering
* support to UTF-8 text and Unicode chars rendering
* support for RGB packed formats
* fix minor errors and typos in the filter description
* extend/clarify examples in the filter description
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
c34cb130b6
avfilter: dont use AVFilterLink as priv for pictures as its freed too early.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
21d84246d5
avfilter: Fix ticket82 / fix initial buffer values.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
39f66edbea
AVFilter: use picture pool to avoid malloc().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
fa3eddc011
avfilter_unref_buffer: favor av_freep()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
0699dbb847
avfilter: check malloc return values.
14 years ago
Ronald S. Bultje
f8af93ab99
avfilter: don't av_malloc(0).
14 years ago
Stefano Sabatini
f97905e61d
scale: fix leak occurring when a scale filter is reconfigured
...
This currently only occurrs in vsrc_buffer in case of mid-stream
size/format change.
Fix trac issue #124 .
14 years ago
Stefano Sabatini
0f1ef8a316
vsrc_buffer: improve reporting in case of format/size change
14 years ago
Stefano Sabatini
35fe66abbc
lavfi: rename AVFilterBufferRefVideoProps.pixel_aspect to sample_aspect_ratio
...
Improve consistency with libavcodec.
This breaks libavfilter API/ABI.
The non-sequential 2.1.0 -> 2.4.0 bump is due to the mess previously
done with the lavfi minor number.
14 years ago
Stefano Sabatini
77e9dee8ae
lavc: add a sample_aspect_ratio field to AVFrame
...
The sample aspect ratio is a per-frame property, so it makes sense to
define it in AVFrame rather than in the codec/stream context.
Simplify application-level sample aspect ratio information extraction,
and allow further simplifications.
14 years ago
Stefano Sabatini
1ba5727242
lavc: add a pkt_pos field to AVFrame
...
This is similar to what was done with pkt_pts. This simplifies the
operation of extracting the pos information from the AVPacket, and
allows further simplifications.
14 years ago
Anton Khirnov
85770f2a26
AVOptions: make default_val a union, as proposed in AVOption2.
...
This breaks API and ABI.
14 years ago
Diego Biurrun
a3b7dabb5b
vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.
14 years ago
Peter Ross
c90626b2ea
hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Peter Ross
a1f4d07563
crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
31d8467d82
lavfi: add showinfo filter
14 years ago
Stefano Sabatini
f7bdffb09d
lavfi: print key-frame and picture type information in ff_dlog_ref()
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Michael Niedermayer
075933a068
vsrc_buffer: 10l mixed up input & output sizes. (funnily this worked 99% of the time) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
d84f191d37
vsrc_buffer: Reinit scale filter when an existing filter is used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
dc1de56948
vsrc_buffer: set output timebase when output equalization is done
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a38cdfde52
vsrc_buffer: Set output size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago