Paul B Mahol
a9b424879f
lavc & lavf: replace deprecated av_log* functions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Clément Bœsch
1ec94b0f06
lavc: factorize ff_{thread_,re,}get_buffer error messages.
...
Coccinelle profile used:
@@
expression r, ctx, f, loglevel, str, flags;
@@
-if ((r = ff_get_buffer(ctx, f, flags)) < 0) {
- av_log(ctx, loglevel, str);
- return r;
-}
+if ((r = ff_get_buffer(ctx, f, flags)) < 0)
+ return r;
@@
expression r, ctx, f, loglevel, str;
@@
-if ((r = ff_reget_buffer(ctx, f)) < 0) {
- av_log(ctx, loglevel, str);
- return r;
-}
+if ((r = ff_reget_buffer(ctx, f)) < 0)
+ return r;
@@
expression r, ctx, f, loglevel, str, flags;
@@
-if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0) {
- av_log(ctx, loglevel, str);
- return r;
-}
+if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0)
+ return r;
...along with some manual patches for the remaining ones.
12 years ago
Anton Khirnov
759001c534
lavc decoders: work with refcounted frames.
12 years ago
Justin Ruggles
79fb2a1f17
ra288: decode directly to the user-provided AVFrame
12 years ago
Diego Biurrun
8658e1c682
mss4, ra288: Remove unused DSPContext local codec context members
12 years ago
Diego Biurrun
218aefce44
dsputil: Move LOCAL_ALIGNED macros to libavutil
12 years ago
Ronald S. Bultje
d56668bd80
floatdsp: move scalarproduct_float from dsputil to avfloatdsp.
...
This makes the aac decoder and all voice codecs independent of dsputil.
12 years ago
Anton Khirnov
594d4d5df3
lavc: add a wrapper for AVCodecContext.get_buffer().
...
It will be useful in the upcoming transition to refcounted AVFrames.
12 years ago
Michael Niedermayer
5c392bac9a
ra288: Check block align.
...
Fixes OOM
Fixes Ticket1893
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
a903f8f087
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h
...
Also reorder some other #include when applicable.
12 years ago
Justin Ruggles
4e13e50432
ra288dec: set channel layout
12 years ago
Michael Niedermayer
f5581266f7
ra288: assert order to be withinn supported range in do_hybrid_window()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
dafcbfe443
celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Justin Ruggles
d5a7229ba4
Add a float DSP framework to libavutil
...
Move vector_fmul() from DSPContext to AVFloatDSPContext.
13 years ago
Kieran Kunhya
5ff01259a8
Convert vector_fmul range of functions to YASM and add AVX versions
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Martin Storsjö
9cf0841ef3
dsputil: Add ff_ prefix to the dsputil*_init* functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
aaf47bcde7
Drop ALT_ prefix from BITSTREAM_READER_LE name.
...
The prefix is a historic remnant that probably meant "alternative".
Now that the A32 bitstream reader has been dropped it makes no sense anymore.
13 years ago
Justin Ruggles
0eea212943
Add avcodec_decode_audio4().
...
Deprecate avcodec_decode_audio3().
Implement audio support in avcodec_default_get_buffer().
Implement the new audio decoder API in all audio decoders.
13 years ago
Justin Ruggles
9cb70ce34b
ra288: fix formatting of LOCAL_ALIGNED_16
13 years ago
Michael Niedermayer
11e155c219
ra288: try to fix 10l typo that breaks compile on some platforms
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
2467d8d9ea
ra288: return error if input buffer is too small
13 years ago
Justin Ruggles
0131e70af5
ra288: utilize DSPContext.vector_fmul()
13 years ago
Justin Ruggles
03e5d6118c
ra288: use memcpy() to copy decoded samples to output
13 years ago
Justin Ruggles
8f8f5ae991
ra288: log an error message when output buffer is too small.
...
also return AVERROR(EINVAL) instead of -1.
13 years ago
Justin Ruggles
fa6be04bf7
ra288: use a more descriptive calculation for output data size
13 years ago
Diego Biurrun
8671488799
Use explicit struct initializers for AVCodec declarations.
13 years ago
Michael Niedermayer
aae1c247b1
ra288: avoid one multiply
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
e7e2df27f8
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69
)
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
0b37cccaab
ra288: convert VLAs to fixed size
...
Originally committed as revision 23832 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
b1078e9fe6
Move clipping of audio samples (for those codecs outputting float) from decoder
...
to the audio conversion routines.
Originally committed as revision 22937 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
7a00bbad21
Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
...
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.
Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.
Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
66d4c62806
Do not reimplement ff_celp_lp_synthesis_filterf().
...
Originally committed as revision 17562 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
08c433972e
Use ff_dot_productf() in ra288.c
...
Originally committed as revision 15757 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
d552d04dc9
Simplify: avoid duplication backward_filter()
...
Originally committed as revision 15428 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
64e4af2ac1
Do instead of divising a float by a constant, multiply by its inverse
...
Originally committed as revision 15417 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
b6c7758168
Move constant multiplication out of the loop
...
Originally committed as revision 15404 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
e60daa340b
Cosmetics: move convolve() together with the other DSP functions
...
Originally committed as revision 15403 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
a987a126fd
Simplify: move division by constant off the loop
...
Originally committed as revision 15402 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
645a6be1e7
Merge the 2 lpc loops.
...
This changes the output by (stddev: 0.21 PSNR:109.51, file:ddinterview28.ra),
the changes are due to float rounding inaccuracies and do not happen if doubles
are used.
Originally committed as revision 15394 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
571bbaf814
Factorize lpc code slightly.
...
Originally committed as revision 15393 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
faf6d6964b
Use SAMPLE_FMT_FLT instead of doing the float->int conversion in the
...
decoder. This changes the output very little and any difference should
be inaudible.
Originally committed as revision 15343 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
9547cadb8d
Cosmetics: line breaks
...
Originally committed as revision 15308 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
111734de09
Simplify: use a single history buffer for gain and a single one for
...
speech instead of having two for each in the context.
Originally committed as revision 15307 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
9c10ab6cd1
Cosmetics: align spec references
...
Originally committed as revision 15300 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago