Anton Khirnov
6d0546bbaf
avfiltergraph: set deprecated filter_count.
12 years ago
Anton Khirnov
6e3c13a559
avfiltergraph: check for sws opts being non-NULL before using them.
Avoid snprintfing a NULL pointer.
CC: libav-stable@libav.org
12 years ago
Clément Bœsch
1ae44c87c9
lavfi/gradfun: remove rounding to match C and SSE code.
There is no noticable benefit for such precision.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Clément Bœsch
38a2f88d39
lavfi/gradfun: fix dithering in MMX code.
Current dithering only uses the first 4 instead of the whole 8 random values.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Clément Bœsch
2d66fc543b
lavfi/gradfun: fix rounding in MMX code.
Current code divides before increasing precision.
Also reduce upper bound for strength from 255 to 64. This will prevent
an overflow in the SSSE3 and MMX filter_line code: delta is expressed as
an u16 being shifted by 2 to the left. If it overflows, having a
strength not above 64 will make sure that m is set to 0 (making the
m*m*delta >> 14 expression void).
A value above 64 should not make any sense unless gradfun is used as
a blur filter.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Clément Bœsch
8b9a153ef3
lavfi/gradfun: do not increment DC pointer for odd values.
First DC is only used once otherwise. This also makes the code
consistent with ASM versions.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Jindřich Makovička
20a8ee3061
af_asyncts: fix compensation and PTS monotonicity
This patch improves af_asyncts behavior on streams with bogus PTS, which
are either non-monotonic, or contain PTS jitter, and trigger the
non-monotonicity error. With this patch, af_asyncts is able to correct
these streams and avoid the error.
Firstly, it fixes resample compensation calculation by supplying proper
units to avresample_set_compensation (sample count per second instead
of sample count per some arbitrary frame size). Also, the calculation of
the compensation itself is fixed - delta is proportional to an adjustment
of the compensation, not the compensation itself. Ideally, the compensation
should converge to a value that keeps delta at zero.
To be able to deal with sources with PTS jitter even without resampling,
small PTS errors are adjusted, so the output frames do not overlap.
Finally, one more monotonicity check is added.
The FATE reference changes because now there is 8 less samples of
silence because of the pts jitter.
Signed-off-by: Jindřich Makovička <makovick@gmail.com>
12 years ago
Anton Khirnov
6599b087de
buffersrc: fix a typo.
Vertical shift is log2_chroma_h, not log2_chroma_w.
12 years ago
Anton Khirnov
c977039e58
lavc, lavfi: fix counting number of planes in AVBufferRef wrappers
Number of planes is not always equal to the number of components even
for formats marked with PIX_FMT_PLANAR -- e.g. NV12 has three components
in two planes.
12 years ago
Anton Khirnov
6552808014
lavc,lavfi: fix calculating the plane size in the AVBufferRef wrappers
It is supposed to be height * linesize, not width * linesize.
Thanks to Hendrik Leppkes for pointing out the bug.
12 years ago
Anton Khirnov
4750b05d67
af_join: do not leak input frames.
12 years ago
Anton Khirnov
c2b9bd97f5
asrc_anullsrc: return EOF, not -1
12 years ago
Anton Khirnov
f4281f4571
asrc_anullsrc: do not set samplerate and channel layout explicitly
They are auto-negotiated.
12 years ago
Anton Khirnov
e4a7b2177d
vf_showinfo: remove its useless init function
Filter private data is memset to 0 so there is no point in explicitly
initing anything to 0.
12 years ago
Anton Khirnov
dd74e3ef33
avfiltergraph: use sizeof(var) instead of sizeof(type)
12 years ago
Anton Khirnov
42c7c61ab2
avfiltergraph: replace AVFilterGraph.filter_count with nb_filters
This is more consistent with the naming in the rest of Libav.
12 years ago
Anton Khirnov
556aab8f11
lavfi: use designated initializers in avfilter_class
12 years ago
Loren Merritt
5b3c1aecb2
hqdn3d: Fix out of array read in LOWPASS
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
d0a863ac89
vf_hqdn3d: fix uninitialized variable use
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
887d31d455
vf_gradfun: fix uninitialized variable use
CC:libav-stable@libav.org
12 years ago
Xi Wang
5d639b2b4a
vf_pad: fix a & instead of && typo
Avoid buffer overflow in buffer_needs_copy()
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Anton Khirnov
0651e892e1
Replace remaining includes of audioconvert.h with channel_layout.h
12 years ago
Anton Khirnov
d8b31be6ca
Add the bumps and APIchanges entries for reference counted buffers changes.
12 years ago
Anton Khirnov
7e350379f8
lavfi: switch to AVFrame.
Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it
and use AVFrame instead.
13 years ago
Reimar Döffinger
efa7f42020
Use the avstring.h locale-independent character type functions
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Justin Ruggles
9f1223562e
lavfi: connect libavresample options to af_resample via AVFilterGraph
13 years ago
Anton Khirnov
64ed397635
vf_yadif: fix out-of line reads
Some changes in the border pixels, visually indistinguishable.
12 years ago
Anton Khirnov
ccd70d9c16
vf_yadif: factorize initializing the filtering callbacks
Do it all in config_props().
12 years ago
Anton Khirnov
99162f8d46
vf_yadif: silence a warning.
clang says:
libavfilter/vf_yadif.c:192:28: warning: incompatible pointer types assigning to
'void (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, int, int, int, int, int)'
from 'void (uint16_t *, uint16_t *, uint16_t *, uint16_t *, int, int, int, int, int)'
12 years ago
Diego Biurrun
e66240f22e
avfilter: x86: consistent filenames for filter optimizations
12 years ago
Diego Biurrun
76d90125cd
vf_hqdn3d: x86: Add proper arch optimization initialization
12 years ago
Anton Khirnov
7194330bcd
vf_delogo: fix copying the input frame.
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
f81c37e40f
vf_delogo: fix an uninitialized read.
CC:libav-stable@libav.org
12 years ago
Vladimir Pantelic
0b55b16abc
avfilter: allow setpts filter to use wallclock time for calculations
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Justin Ruggles
23098bbd50
vf_fps: add final flushed frames to the dropped frame count
12 years ago
Daniel Kang
67360ccd51
yadif: x86: fix build for compilers without aligned stack
Manually load registers to avoid using 8 registers on x86_32 with
compilers that do not align the stack (e.g. MSVC).
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Daniel Kang
899157b308
yadif: Port inline assembly to yasm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Diego Biurrun
bcb8d9eb8f
Drop unnecessary 'l' length modifier when printfing double values.
%f denotes a double argument and 'l' does nothing in this case
according to the C spec.
13 years ago
Diego Biurrun
c73c87b412
cosmetics: Prettyprint codec/format/filter registration files
13 years ago
Diego Biurrun
69583bd3b1
avfilter: Refactor unconditional filter registration
13 years ago
Diego Biurrun
5af53731d9
avfilter: Compile FIFO filters unconditionally
Building libavfilter without that functionality makes little sense.
13 years ago
Diego Biurrun
69f086e0f9
build: avfilter: Remove duplicate compilation entry for vf_scale
vf_scale should not be unconditionally compiled even if disabled.
13 years ago
Justin Ruggles
4e5a8878d5
asyncts: ignore min_delta only if first_pts is set
13 years ago
Justin Ruggles
c0dc57f126
asyncts: merge two conditions
13 years ago
Justin Ruggles
0ee440fe38
asyncts: cosmetics: reindent
13 years ago
Justin Ruggles
c143de40c3
asyncts: fix the asyncts behavior when using the first_pts option
Currently it will do padding, but it does not properly handle
start-of-stream trimming as documented.
13 years ago
Justin Ruggles
8083332c2d
asyncts: use clipped delta value when setting resample compensation
The max_comp option is supposed to limit maximum compensation, but
currently the clipped value is not actually used.
13 years ago
Justin Ruggles
f266486b2e
asyncts: fix flushing of final samples at EOF
13 years ago
Justin Ruggles
b30a363331
x86: af_volume: add SSE2/SSSE3/AVX-optimized s32 volume scaling
13 years ago
Justin Ruggles
f96f1e06a4
x86: af_volume: add SSE2-optimized s16 volume scaling
13 years ago