Justin Ruggles
50969c0f46
g726: return AVERROR(EINVAL) instead of -1 for invalid channel count
14 years ago
Justin Ruggles
50c466d609
g726enc: use av_assert0() for sample_rate validation
This should never happen, but the check avoids a divide-by-zero.
14 years ago
Justin Ruggles
9e78d8cfdf
g726: treat sample rates other than 8kHz as unofficial.
14 years ago
Justin Ruggles
6e8d4a7afb
g726dec: remove the sample_rate validation
14 years ago
Justin Ruggles
6ac34eed54
g726: use bits_per_coded_sample instead of bitrate to determine mode
This requires some workarounds in the WAV muxer and demuxer. We need to write
the correct bits_per_coded_sample and block_align in the muxer. In the
demuxer, we cannot rely on the bits_per_coded_sample value, so we use the bit
rate and sample rate to determine the value.
This avoids having the decoder rely on AVCodecContext.bit_rate, which is not
required to be set by the user for decoding according to our API.
14 years ago
Justin Ruggles
d405237bae
g726: split the init function for the encoder and decoder
This also allows for not having a decoder close function.
14 years ago
Justin Ruggles
c8d36d254e
g726: pre-calculate the number of output samples.
Allows for checking output buffer size and simplification of decoding loop.
14 years ago
Justin Ruggles
e61a670b53
g726: use int16_t instead of short
14 years ago
Michael Niedermayer
bd2bcf97fa
dirac: drop unused END_HORIZONTAL
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e985d71926
dirac: fix horizontal_compose_dd97i_ssse3
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
754539a409
dirac: Fix mmx/sse haar wavelet compose
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
ee93363f8f
Fix compilation of dct-test on ia32.
14 years ago
Vladimir Voroshilov
f0506a8993
Two extra samples are required before top of the in buffer rather than out
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3e5ea9e471
dirac: disable ff_horizontal_compose_haar0i_sse2() the function is not bitexact
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
d2ea38ddb7
dirac: alignment for dirac_hpel_filter_v has been fixed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
18f2ae3b77
dirac: alignment for add_dirac_obmc has been fixed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
4debdee6ce
dirac: alignment for add_rect_clamped has been fixed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
66b6d7bcd7
dirac: alignment for put_signed_rect_clamped has been fixed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
2eecf63086
dirac: alignment for dirac_hpel_filter_v() has been fixed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
08bef053a0
dirac: fix stride alignment
This code was already added by Yuvi in c82cbea682
It was subsequently lost somehow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a14a0d7c2c
dirac: fix segfault in horizontal_compose_haar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
c0dbab964d
dirac: ff_diracdsp_init_mmx() is only compiled when yasm is available
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
171727d530
Bump libavcodec minor version for the Dirac decoder.
14 years ago
Michael Niedermayer
0bc5677e98
dirac: enable ff_spatial_idwt_init_mmx()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e8b891b7f0
dirac: enable diracdsp_mmx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3cb0686eea
dirac: ff_horizontal_compose_dd97i_ssse3 does not work yet, thus disable it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a1f3b18bf5
dirac: put_dirac_pixels8_mmx() does not work yet, thus disable it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
22fe93ea39
dirac: add_rect_clamped does currently not receive aligned data, thus use unaligned accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
d532e9223e
dirac: put_signed_rect_clamped does currently not receive aligned data, thus use unaligned accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
5f34092b13
dirac; dirac_hpel_filter_h does currently not receive aligned data thus use unaligned accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
f0d616e76f
dirac: dirac_hpel_filter_v does currently not receive aligned data, thus use unaligned accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Jordi Ortiz
49aa397414
Dirac: More formating
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Jordi Ortiz
ca239e1c37
Dirac: Doxygen comments and some formatting enhancements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Jordi Ortiz
4c150e3f4f
Dirac: allcodecs in alphabetical order
(cherry picked from commit b44c20e9f0 )
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Jordi Ortiz
e3cfe54145
Dirac now returns AVFrames instead of DiracFrames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
multiple authors
5d50fcc549
DIRAC Decoder stable version, MMX support removed.
Look for MMX_DISABLED to find the disabled functions.
Authors of this code are Marco Gerards <marco@gnu.org> and David Conrad <lessen42@gmail.com>
With changes from Jordi Ortiz <nenjordi@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
45235d69c2
libdirac/libschroedinger: Drop unnecessary symbol prefixes.
The names used in the libdirac/libschroedinger wrappers are long enough as-is.
Bloating them with unnecessary prefixes makes them even more unwieldy.
14 years ago
Stefano Sabatini
5b1a06b1c9
libmp3lame: log error message in case of invalid number of channels
Also return meaningful error number in place of -1.
Improve feedback.
14 years ago
Reimar Döffinger
b264e5ca13
Remove pointless per-frame malloc/free.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
14 years ago
David Conrad
25a6c59487
MMX put_no_rnd_pixels_l2
16 years ago
Michael Niedermayer
3c32a941b7
propresenc: fix missed LE pixfmt occurance
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
64a41dc21f
proresenc: the encoder expects native endian input.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
1af3571e05
mjpeg_parser: Rewrite to skip marker segments
Based on code by Aaron Miller <amiller@atlasdigital.tv>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
429b3cd6f5
mjpeg_parser: add MJPEGParserContext
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
0387ad892c
Be more verbose about unsupported H.264 bit-depths.
14 years ago
Justin Ruggles
7d1b17b833
cin audio: use sign_extend() instead of casting to int16_t
14 years ago
Justin Ruggles
405af43104
cin audio: restructure decoding loop to avoid a separate counter variable
Also check output buffer size instead of truncating output.
14 years ago
Justin Ruggles
859bdc33e4
cin audio: use local variable for delta value
14 years ago
Justin Ruggles
64e19ba48b
cin audio: remove unneeded cast from void*
14 years ago
Justin Ruggles
03381c12b3
cin audio: validate the channel count
14 years ago