Ronald S. Bultje
95c89da36e
Use ptrdiff_t instead of int for intra pred "stride" function parameter.
...
This way, SIMD-optimized functions don't have to sign-extend their
stride argument manually to be able to do pointer arithmetic.
2012-10-29 17:49:13 -07:00
Ronald S. Bultje
bad8e33dc9
x86: use PRED4x4/8x8/8x8L/16x16 macros to declare intrapred prototypes.
2012-10-29 17:48:23 -07:00
Ronald S. Bultje
c285edd06e
Remove usage of INIT_AVX in h264_intrapred_10bit.asm.
...
Replace INIT_AVX by INIT_XMM avx. Port the whole file to use cpuflag
based function declarations. Remove (now unused) cputype argument in
function declaration macros. Change function prototypes to have mmx2
instead of mmxext as suffix, since that's required by cpuflags.
2012-10-29 14:10:51 -07:00
Martin Storsjö
9b500b8f6c
avcodec: Add a RFC 3389 comfort noise codec
...
This isn't too useful as a normal codec, but can be used in
voip style applications. The decoder updates the noise
generator parameters when a packet is given to it for decoding,
but if called with an empty packet, it generates more noise
according to the last parameters.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-29 22:00:43 +02:00
Martin Storsjö
8b25a20efb
lpc: Add a function for calculating reflection coefficients from samples
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-29 21:53:16 +02:00
Justin Ruggles
39ef66f530
lpc: Add a function for calculating reflection coefficients from autocorrelation coefficients
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-29 21:53:13 +02:00
Anton Khirnov
bff5e5f8b3
indeo3: remove duplicate capabilities line.
2012-10-29 20:04:56 +01:00
Diego Biurrun
72c758f1fd
aacenc: Drop some unused function arguments
2012-10-29 18:27:54 +01:00
Anton Khirnov
f174fbac3c
lavc: add CODEC_CAP_DR1 to all video decoders missing them
2012-10-29 09:51:23 +01:00
Mans Rullgard
4471a24207
vp8: fix memset() crossing array boundary
...
Indexing across array boundaries is not allowed by C99.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-27 17:02:46 +01:00
Mans Rullgard
c4cccc8d3f
h264: fix invalid pointer arithmetic
...
Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:
If both the pointer operand and the result point to elements of the
same array object, or one past the last element of the array object,
the evaluation shall not produce an overflow; otherwise, the
behavior is undefined.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-27 17:02:46 +01:00
Mans Rullgard
50be207759
amrwbdec: fix invalid pointer arithmetic
...
Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:
If both the pointer operand and the result point to elements of the
same array object, or one past the last element of the array object,
the evaluation shall not produce an overflow; otherwise, the
behavior is undefined.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-27 17:02:45 +01:00
Diego Biurrun
87cdd7c694
ivi_common: Drop unused function parameter from decode_band()
2012-10-26 18:28:38 +02:00
Diego Biurrun
707f58f515
cook: Remove some silly Doxygen comments
2012-10-26 18:28:38 +02:00
Diego Biurrun
8a61ba0e81
cook: Remove senseless maybe_reformat_buffer32() function
2012-10-26 18:28:38 +02:00
Diego Biurrun
f23b4a0682
cook: cosmetics: Better names for joint_decode() function parameters
2012-10-26 18:28:38 +02:00
Diego Biurrun
20015379a4
cook: cosmetics: Better name for ccpl COOKSubpacket member
2012-10-26 18:28:38 +02:00
Janne Grunau
154ff81870
h263: avoid memcpys over array bound in motion vector caching for obmc
...
Fixes CID602232.
2012-10-26 17:38:07 +02:00
Luca Barbato
22f7942fe7
ffv1: set the range coder state in decode_slice_header
2001-01-01 01:06:41 +01:00
Diego Biurrun
5bac2d0c30
avutil: Move memcpy_backptr() to mem.c
...
The function is used elsewhere and does not belong with the LZO code.
2012-10-25 11:36:57 +02:00
Anton Khirnov
5a9567631a
g.723.1: add missing CODEC_CAP_DR1
2012-10-24 08:46:45 +02:00
Anton Khirnov
1bc64c2814
lavc: initialize output AVFrame before decoding.
...
Avoids memleaks with audio when extended_data is nontrivial and the user
doesn't reset the frame.
Shouldn't have any effect for video for now, but might be useful in the
future.
2012-10-24 08:46:45 +02:00
Justin Ruggles
c68317ebbe
lavc: fix documentation for AVCodecContext.delay
2012-10-23 14:35:27 -04:00
Justin Ruggles
44d854a518
atrac3: return an error if extradata_size is not a specific known size
...
Also fixes 3 compiler warnings about using uninitialized variables.
2012-10-23 14:35:27 -04:00
Justin Ruggles
a5ef830b12
lavc: use the correct API version guard macro for avcodec_encode_audio()
2012-10-23 14:35:27 -04:00
Mans Rullgard
a153e45b95
dfa: use av_memcpy_backptr() where previously impossible
...
Since the requirement for output padding has been lifted, we can
use av_memcpy_backptr() here as well.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-23 18:57:24 +01:00
Diego Biurrun
e831b3b852
av_memcpy_backptr: Drop no longer necessary malloc padding
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-23 18:57:24 +01:00
Diego Biurrun
330b864cda
dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU
2012-10-23 16:54:17 +02:00
Diego Biurrun
aa91fe8091
dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16
2012-10-23 16:53:42 +02:00
Luca Barbato
9ab0874ea8
mp3: properly forward mp_decode_frame errors
...
The function can return either a parsing error or a memory management
error.
2012-10-23 14:22:16 +02:00
Luca Barbato
0c03cc6838
mp3: exit on parsing error in mp_decode_frame
...
Properly forward mp_decode_layer3 errors, mp_decode_layer1 and
mp_decode_layer2 do not return errors.
Based on a patch by Michael Niedermayer.
2012-10-23 14:22:16 +02:00
Mans Rullgard
fab0a8b2c6
libm: add fallbacks for various single-precision functions
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-23 12:00:21 +01:00
Michael Niedermayer
ec444c84cf
mpegaudiodec: Fix buffer handling on random access
2012-10-23 10:52:25 +02:00
Diego Biurrun
2f17f265ed
mpegaudio: Refactor mp3on4 flush function
2012-10-23 10:52:25 +02:00
Diego Biurrun
8f4c414df6
Improve wording and spelling of av_log_missing_feature messages.
2012-10-23 10:28:40 +02:00
Anton Khirnov
c6b25d1d5e
Revert "avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility"
...
This reverts commit d15c21e5fa3961f10026da1a3080a3aa3cf4cec9.
After the major bump this is no longer necessary.
2012-10-23 07:33:05 +02:00
Justin Ruggles
a1f4cd371a
atrac3: replace a calculation with FFALIGN()
...
This allocates 4 bytes less than the previous code if avctx->block_align is
a multiple of 4, but the extra 4 bytes is not really needed.
2012-10-22 10:10:08 -04:00
Justin Ruggles
808686fc1e
atrac3: remove unused ATRAC3Context field, sample_rate
2012-10-22 10:10:08 -04:00
Justin Ruggles
89a6c32bc1
atrac3: use sizeof(variable) instead of sizeof(type)
2012-10-22 10:10:08 -04:00
Justin Ruggles
327747de15
atrac3: simplify MDCT window calculation
2012-10-22 10:10:08 -04:00
Justin Ruggles
5d1007f74d
atrac3: initialize static tables in AVCodec.init_static_data()
2012-10-22 10:10:08 -04:00
Justin Ruggles
78edce3f19
atrac3: separate window initialization from IMDCT initialization
2012-10-22 10:10:08 -04:00
Justin Ruggles
c51311b907
atrac3: move the 'frame_factor' field from ATRAC3Context to where it is used
2012-10-22 10:10:08 -04:00
Justin Ruggles
7e76f27081
atrac3: remove unused ATRAC3Context field, bit_rate
2012-10-22 10:10:07 -04:00
Justin Ruggles
a2664c91fb
atrac3: move the 'samples_per_frame' field from ATRAC3Context to where it is used
2012-10-22 10:10:07 -04:00
Justin Ruggles
7c1f93afe6
atrac3: remove unused ATRAC3Context field, samples_per_channel
2012-10-22 10:10:07 -04:00
Justin Ruggles
cdd0e0de81
atrac3: use AVCodecContext.block_align instead of keeping a private copy
2012-10-22 10:10:07 -04:00
Justin Ruggles
64ebbb8f89
atrac3: move the 'delay' field from ATRAC3Context to where it is used
2012-10-22 10:10:07 -04:00
Justin Ruggles
56a9d2b44e
atrac3: move the 'version' field from ATRAC3Context to where it is used
2012-10-22 10:10:06 -04:00
Justin Ruggles
5ac673b553
atrac3: use AVCodecContext.channels instead of keeping a private copy
2012-10-22 10:10:06 -04:00