Add some forgotten const to function arguments in libavfilter & libavformat.
Signed-off-by: Michael Niedermayer <email@example.com>
drawtext: specify union type for setting default options
Fix warnings of the type:vf_drawtext.c:NNN: warning: missing braces around initializervf_drawtext.c:NNN: warning: (near initialization for ‘drawtext_options[X].default_val’)
drawtext: reindent after the previous commit
drawtext: fix strftime() text expansion
The feature was dropped after the filter was partially rewritten andrecommitted.
Fix issue #207.
showinfo: replace "CRC" by "checksum"
Indeed the Adler-32 checksum, which is computed by showinfo, is notcyclic, so using the term "CRC" is wrong/confusing.
showinfo: fix vertical align nit
showinfo: fix computation of Adler checksum
Previously the code was computing the checksum only for the first lineof each plane.
Merge remote branch 'qatar/master'
vsrc_buffer: during init, print information about timebase and sample aspect ratio
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.
lavfi: add libavfilter/avcodec.h and avfilter_copy_frame_props()
avfilter_copy_frame_props() avoids code duplication and increasesrobustness.
The added files libavfilter/avcodec.[ch] are used for containingutilities useful for gluing togheter libavfilter and libavcodec.
lavc: add format field to AVFrame
The format is a per-frame property, having it in AVFrame simplify theoperation of extraction of that information, since avoids the need toaccess the codec/stream context.
lavc: add width and height fields to AVFrame
width and height are per-frame properties, setting these values inAVFrame simplify the operation of extraction of that information,since avoids the need to check the codec/stream context.
drawtext: add shadow support.
Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>Signed-off-by: Anton Khirnov <email@example.com>
drawtext: factor draw_glyphs.
drawtext: fix and optimize yuv blend.
drawtext: get rid of divisions in the inner loop.
drawtext: simplify chroma blend and fix chroma alpha.
Signed-off-by: Anton Khirnov <firstname.lastname@example.org>
lavfi: Port drawtext filter by Hemanth from the libavfilter soc repo
avfilter: dont use AVFilterLink as priv for pictures as its freed too early.Signed-off-by: Michael Niedermayer <email@example.com>
avfilter: Fix ticket82 / fix initial buffer values.Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
AVFilter: use picture pool to avoid malloc().Signed-off-by: Michael Niedermayer <email@example.com>
avfilter_unref_buffer: favor av_freep()Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
avfilter: check malloc return values.
avfilter: don't av_malloc(0).
scale: fix leak occurring when a scale filter is reconfigured
This currently only occurrs in vsrc_buffer in case of mid-streamsize/format change.
Fix trac issue #124.
vsrc_buffer: improve reporting in case of format/size change
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 previouslydone with the lavfi minor number.
lavc: add a sample_aspect_ratio field to AVFrame
The sample aspect ratio is a per-frame property, so it makes sense todefine it in AVFrame rather than in the codec/stream context.Simplify application-level sample aspect ratio information extraction,and allow further simplifications.
lavc: add a pkt_pos field to AVFrame
This is similar to what was done with pkt_pts. This simplifies theoperation of extracting the pos information from the AVPacket, andallows further simplifications.
Merge commit '85770f2a2651497861ed938efcd0df3696ff5e45'
AVOptions: make default_val a union, as proposed in AVOption2.
This breaks API and ABI.
vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.
hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
lavfi: add showinfo filter
lavfi: print key-frame and picture type information in ff_dlog_ref()
Signed-off-by: Stefano Sabatini <email@example.com>
vsrc_buffer: 10l mixed up input & output sizes. (funnily this worked 99% of the time) Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
vsrc_buffer: Reinit scale filter when an existing filter is used.Signed-off-by: Michael Niedermayer <email@example.com>
vsrc_buffer: set output timebase when output equalization is doneSigned-off-by: Michael Niedermayer <firstname.lastname@example.org>
vsrc_buffer: Set output sizeSigned-off-by: Michael Niedermayer <email@example.com>
vsrc_buffer: fix NULL dereferenceSigned-off-by: Michael Niedermayer <firstname.lastname@example.org>
lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums
Also deprecate av_get_pict_type_char() in favor ofav_get_picture_type_char().
The new enum and av_get_picture_type_char() are defined in libavutil.This allows the use in libavfilter without the need to link against...
pad: make the filter parametric
Signed-off-by: Stefano Sabatini <email@example.com>Signed-off-by: Anton Khirnov <firstname.lastname@example.org>
vsrc_movie: add key_frame and pict_type.
Signed-off-by: Roger Pau Monné <email@example.com>Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>Signed-off-by: Anton Khirnov <email@example.com>
vsrc_movie: fix leak in request_frame()
Also set movie->picref to NULL, in order to avoid a crash in uninit()when movie->picref is unreffed again and it was already freed.
lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.
vsrc_buffer: add sample_aspect_ratio fields to arguments.
This fixes aspect handling in ffmpeg.
This is based on a patch by Baptiste.
lavfi: add fieldorder filter
scale: make the filter parametric
Make the filter accept parametric expressions for the output videosize.
yadif: support 16-bit
Fixes by Michael Niedermayer <firstname.lastname@example.org>
yadif: support more than yuv420p.
and correctly support grey8
yadif: Fix assert() failure
graphparser: add a NULL check on the argument passed to strstr
Fix crash in create_filter() which occurrs if a scale filter with noargs is provided.
setdar: prefer "sar" over "par" in log info message
This is more consistent with the terminology adopted by the aspectfilter names.
fade: fix draw_slice() check on fade->factor value
draw_slice() checks that the fade factor is < 65536 and onlycalculates the fade if so. But the fade factor is clipped inend_frame() by av_clip_uint16() to 65535, so the fade is calculatedfor every frame. This patch alters the check so that it compares with...
fade: make draw_slice() chroma check against planes 1 and 2
draw_slice() checks that planes 0 and 1 of AVFilterBufferRef's dataare not NULL before manipulating planes 1 and 2. This patch makes thecheck against planes 1 and 2. More senseful and possibly more robust....
mp: remove unused variable outlink in end_frame
Fix warning:vf_mp.c: In function ‘end_frame’:vf_mp.c:870: warning: unused variable ‘outlink’
mp: remove use of deprecated old eval API
The old API was deprecated and will be possibly removed, fix warningsin libavfilter/libmpcodecs/vf_geq.c and libavfilter/libmpcodecs/vf_qp.c.
ocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX
Fix compilatin after removal of FF_INTERNAL_MEM_TYPE_MAX_VALUE.
Reduce picture size for yadif.
Address trac issue #61.
Added key_frame and pict_type to vsrc_movie
Signed-off-by: Roger Pau Monné <email@example.com>Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
Bump major versions of all libraries.
They've accumulated enough new APIs and corresponding deprecated cruft.
Fix trac issue #66.
10l, commit that should have been stashed into the merge.Signed-off-by: Michael Niedermayer <email@example.com>
Replace more FFmpeg references by Libav.
scale: set evaluated value for the "out_w" and "out_h" constants
The constant values were never set, thus the evaluation of expressionsreferencing those constants were resulting in an error.
scale: fix computation for the "hsub" and "vsub" constants
Add key_frame and pict_type to AVFilterBufferRefVideo.
vsrc_buffer.h: add file doxy
vsrc_buffer.h: add multiple inclusion guards
vsrc_buffer: tweak error message in init()
Change:Expected 7 arguments, but only %d found in '%s'\nto:Expected 7 arguments, but %d found in '%s'\n
as the user may provide more than 7 arguments, in that case the erroris not misleading.
Align stack variables manually in yadif x86 code, should fix ticket25Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
Update yadif copyright headerSigned-off-by: Michael Niedermayer <email@example.com>
Factorise the C filtering in yadif
Yadif fixes that where missing from the patchSigned-off-by: Michael Niedermayer <firstname.lastname@example.org>
Support 16-bit in yadif
support more than yuv420p in yadif
(and correctly support grey8)
Support changing pixel formats on avfilter input.Fix issue2217Signed-off-by: Michael Niedermayer <email@example.com>
Dont leak sws contexts.Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
lavfi: add fade filter
Port fade filter from libavfilter soc repo, with minor fixes byStefano.
Change yadif to not use out of picture lines.
yadif:Fix assert() failure
drawtext: allow negative shadow offset values
mp: extend syntax, make it accept mp=filter=params
Make the mp wrapper accept the syntax mp=filter=params as alternativeto mp=filter:params. The alternative syntax is sligthly more readableand should simplify copy&paste of MPlayer filter strings to the mp...
Implement interlaced scaling.Fixes issue2632 if interl=1 is used or the automatic interlace detection is enabledand works. This has the advantage compared to the patch in issue2632 that it causesno speed loss and it also works when scaling is used. The disadvantage is that...
drawtext: draw glyphs for the strftime()-expanded text
In draw_glyphs(), draw glyphs in dtext->expanded_text rather than indtext->text. Fix crash if a strftime() sequence is used.
Make the hflip filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
Make the crop filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats