Martin Storsjö
1a68e7ed15
adpcm: Fix a comment in the trellis heap code
...
This makes the wording consistent with how people usually talk about heaps.
Originally committed as revision 25775 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
78f9d35c9a
adpcm: Only increment heap_pos after finding a good enough sample
...
This increases the PSNR slightly (about 0.1 dB) for trellis sizes
below 8, and gives equal PSNR for sizes above that.
Originally committed as revision 25769 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
d764e3ece9
adpcm: Use a hash table to improve checking for duplicate samples
...
This lowers the run time from 158 to 21 seconds, for -trellis 8
with a 30 second sample on my machine.
This requires 64 KB additional memory.
Originally committed as revision 25768 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
86abf868ec
adpcm: Fix a comment
...
Originally committed as revision 25751 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
38b3bda18f
adpcm: Replace any of the leaf nodes in the heap
...
By not looking for the exactly largest node, we avoid an O(n) seek through
the leaf nodes. Just pick one (not the same one every time) and try replacing
that node with the new one.
For -trellis 8, this lowers the run time from 190 to 158 seconds,
for a 30 second 44 kHz mono sample, on my machine.
Originally committed as revision 25733 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
4106b7f1cd
Reindent
...
Originally committed as revision 25732 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
f82e8f3482
adpcm: Store the trellis nodes in a heap instead of a sorted array
...
This avoids having to memmove the large parts of the array when inserting into
it.
For -trellis 8, this lowers the run time from 245 seconds to 190 seconds,
for a 30 second 44 kHz mono sample, on my machine.
Originally committed as revision 25731 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
Martin Storsjö
e0ae6c17fe
Flush the PutBitsContext at the end of each block when encoding ADPCM IMA QT
...
Originally committed as revision 24938 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
b9542223a3
Only 4-bit ADPCM IMA WAV files are supported.
...
Originally committed as revision 24493 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
07ece20c69
adpcm: convert VLAs to malloc/free
...
Originally committed as revision 23819 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 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
Michael Niedermayer
9f72b23c5c
Revert Revision: 21362
...
Log:
Set CODEC_CAP_SUBFRAMES for adpcm decoders
This makes ffmpeg stop printing millions of
Multiple frames in a packet from stream 0
when decoding adpcm.
Reason: adpcm has no subframes, the flag does not belong there
Originally committed as revision 21481 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2a58e45724
Set CODEC_CAP_SUBFRAMES for adpcm decoders
...
This makes ffmpeg stop printing millions of
Multiple frames in a packet from stream 0
when decoding adpcm.
Originally committed as revision 21362 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
b74d42ee33
Build extradata in adpcm_ms encoder.
...
This fixes issue #1244 .
Originally committed as revision 20349 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
bb7d0e87ae
Indicate that AdaptCoeff1 and 2 are functions of the actual coefficients.
...
Originally committed as revision 20345 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
b5f09d31c2
Make sample_fmts and channel_layouts compound literals const to reduce size of
...
.data section.
Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
6816f8b8e4
ADPCM: remove unreachable break statement after return
...
Originally committed as revision 19312 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Carl Eugen Hoyos
1efe9fd5c0
Fix indentation after last commit.
...
Originally committed as revision 19238 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Yoshihisa Uchida
d8b2d83473
Fix yamaha adpcm stereo (issue 1117).
...
Patch by Yoshihisa Uchida, yoshihisa D uchida A gmail
Originally committed as revision 19237 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
6cf92f6d26
Check if there is enough bytes before reading the buffer in the EA ADPCM
...
decoder. Fix issue 990.
Originally committed as revision 18707 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
8a06cb14f9
Skip 0x0000 frame footer in EA ADPCM decoder.
...
Originally committed as revision 18706 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 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
Stefano Sabatini
b275500706
Split bitstream.h, put the bitstream writer stuff in the new file
...
put_bits.h.
Originally committed as revision 18461 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
Diego Biurrun
fd75cedd15
cosmetics: Reformat long_names so that "ADPCM" comes first.
...
Originally committed as revision 17720 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
0ffbc258aa
Change a bunch of codec long_names to be more consistent and descriptive.
...
Originally committed as revision 17716 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Daniel Verkamp
5ef251e504
Add missing av_cold in static init/close functions.
...
Patch by Daniel Verkamp daniel at drv dot nu.
Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
cc55c46498
check validity of pointer srcC
...
Originally committed as revision 16973 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
8915009813
remove duplicate tables
...
Originally committed as revision 16866 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
2ed421134e
avoid indeterminate order of accessing src
...
Originally committed as revision 16855 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
055dc116fc
added demuxer for FunCom ISS audio files,
...
extended ADPCM decoder by ISS specific IMA variant
Originally committed as revision 16658 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Peter Ross
fd76c37fd9
Modify all codecs to report their supported input and output sample format(s).
...
Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
6647ab80e3
bitstream: move put_sbits() from flacenc.c to bitstream.h and use it
...
throughout libavcodec.
Originally committed as revision 14204 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
f9bd305694
clip MS ADPCM predictor range to correct [0..6] range, not [0..7]
...
Originally committed as revision 14203 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
962fe7e1c4
Use bytestream and AV_RL* functions in ADPCM code where possible
...
Originally committed as revision 14202 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
ae8afab998
Fix MS ADPCM de- and encoding: first and second sample are swapped.
...
Noticeable better decoding of e.g. http://samples.mplayerhq.hu/A-codecs/msadpcm-stereo/dance-b5th.asf
Originally committed as revision 14201 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
8884b91898
100l, fix MS ADPCM decoding for e.g. http://samples.mplayerhq.hu/mov/qtaudio/surge-2-16-L-ms02.mov
...
First coefficient array must be unsigned to fit in 8 bits
Originally committed as revision 14175 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
ff2271267e
10l, forgot to replace a / 256 for r14173.
...
Fixes MS ADPCM regression test.
Originally committed as revision 14174 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
ddcf031f3b
Change MS ADPCM table so they fit into int8_t and change array type.
...
Originally committed as revision 14173 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
bbdfa06d43
Add a note to remind people that new PCM/ADPCM formats need to be added to
...
the Makefile as well to allow proper selective compilation.
Originally committed as revision 14072 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
fe4bf37455
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
...
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
909a9ad08d
Prevent 128*1<<trellis from becoming 0 and creating 0 sized arrays.
...
fixes CID84 RUN2
CID85 RUN2
CID86 RUN2
CID87 RUN2
CID88 RUN2
CID89 RUN2
CID90 RUN2
CID91 RUN2
CID92 RUN2
CID93 RUN2
CID94 RUN2
CID95 RUN2
CID96 RUN2
CID97 RUN2
CID98 RUN2
CID99 RUN2
CID100 RUN2
CID101 RUN2
CID102 RUN2
CID103 RUN2
CID104 RUN2
CID105 RUN2
CID106 RUN2
Originally committed as revision 13495 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
bcdab7e547
cosmetics: Fix typos in ADPCM codec long names.
...
Originally committed as revision 13173 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
d349334abc
ADPCM codec long names by Stefano Sabatini, stefano.sabatini-lala poste it
...
Originally committed as revision 13157 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
3b4eccabae
identation
...
Originally committed as revision 12969 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
e67fe90c40
remove no more needed field
...
Originally committed as revision 12968 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago