Justin Ruggles
2aebac6918
alac: cosmetics: rename some variables and function names
13 years ago
Andrew D'Addesio
1b3ef155d7
alac: multi-channel decoding support
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
81c9e2e6d0
alac: split element parsing into a separate function
...
This will make multi-channel implementation simpler.
Based partially on a patch by Andrew D'Addesio <modchipv12@gmail.com>.
13 years ago
Justin Ruggles
cd632619d9
alac: support a read sample size of up to 32
...
Use get_bits_long() in decode_scalar().
Use unsigned int for decoded value.
13 years ago
Justin Ruggles
73dc0db486
alac: output in planar sample format
...
Avoids unneeded interleaving and allows for reusing the AVFrame output buffer
as the internal buffer for 24-bit and 32-bit sample size.
13 years ago
Justin Ruggles
6482bd8831
alac: add 32-bit decoding support
13 years ago
Andrew D'Addesio
6cda74c155
alac: simplify channel interleaving
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
5138ff143f
alac: use AVPacket fields directly in alac_decode_frame()
13 years ago
Justin Ruggles
7a206eb32f
alac: fix check for valid max_samples_per_frame
13 years ago
Justin Ruggles
1193d3fedd
alac: use get_sbits() to read LPC coefficients instead of casting
13 years ago
Justin Ruggles
7a50ec6799
alac: move the current samples per frame to the ALACContext
...
This will simplify the multi-channel implementation.
13 years ago
Justin Ruggles
46043962ea
alac: avoid using a double-negative when checking if the frame is compressed
13 years ago
Justin Ruggles
9a6c528e08
alac: factor out output_size check in predictor_decompress_fir_adapt()
13 years ago
Justin Ruggles
ebd4c3add1
alac: factor out loading of next decoded sample in LPC prediction
13 years ago
Justin Ruggles
a4ecd41442
alac: use index into buffer_out instead of incrementing the pointer
13 years ago
Justin Ruggles
f2515cd629
alac: simplify lpc coefficient adaptation
13 years ago
Justin Ruggles
abc4376b31
alac: reduce the number of local variables needed in lpc prediction
13 years ago
Justin Ruggles
01880d287b
alac: simplify 1st order prediction and reading of warm-up samples
13 years ago
Justin Ruggles
d0c0bf0d3e
alac: cosmetics: reindent after last commit
13 years ago
Justin Ruggles
79def4c523
alac: remove unneeded conditionals in predictor_decompress_fir_adapt()
13 years ago
Justin Ruggles
4bcd637dcb
alac: use sizeof() instead of hardcoded data sizes
13 years ago
Justin Ruggles
91620a04f1
alac: make block_size signed
...
It does not need to be unsigned.
13 years ago
Justin Ruggles
2fc24b3273
alac: remove a duplicate local variable
13 years ago
Justin Ruggles
5177413d20
alac: conditionally set sign_modifier to 1
...
It is already unconditionally set to 0 prior to this, so we can modify it
only when needed.
13 years ago
Justin Ruggles
7e6593e977
alac: eliminate 2 unneeded local variables in bastardized_rice_decompress()
...
x_modified is just unnecessary, and final_val can be removed by simplifying
the unsigned-to-signed conversion.
13 years ago
Justin Ruggles
6fd8a28b59
alac: adjust conditions for updating entropy decoder history
...
avoids some unnecessary arithmetic in certain situations
13 years ago
Justin Ruggles
a06fdadd97
alac: cosmetics: reindent after last commit
13 years ago
Justin Ruggles
d9837434a9
alac: limit the rice param before passing to decode_scalar()
...
reduces the number of parameters to decode_scalar() and slightly simplifies
the code
13 years ago
Justin Ruggles
6e91f62256
alac: reduce the number of parameters to bastardized_rice_decompress()
...
Use the ALACContext fields directly instead.
13 years ago
Justin Ruggles
836e8b9ba0
alac: cosmetics: rename some ALACContext parameters
13 years ago
Justin Ruggles
2ac1737583
alac: clean up and update comments leftover from reverse-engineering
13 years ago
Justin Ruggles
3bab7cd128
avformat: move 'chan' tag parsing to mov_chan.c to share with the CAF demuxer
13 years ago
Justin Ruggles
c0196a14b9
caf: use int64_t for num_packets
...
It is used to store a value read by avio_rb64().
13 years ago
Justin Ruggles
f5a9c35f88
caf: fix 'pakt' chunk parsing
...
according to the CAF specification:
"... the value for mChunkSize can be greater than the actual valid content
of the packet table chunk"
13 years ago
Justin Ruggles
b0b77b9ca5
caf: support either old or new style ALAC magic kuki chunk
13 years ago
Mans Rullgard
45870f8b6e
Print full compiler identification, not only version number
...
This provides a more precise identification of the compiler used.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
bf1cf4d5a5
flacdec: reverse lpc coeff order, simplify filter
...
Reversing the lpc coefficient order simplifies indexing in
the filter.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
9f97af2688
x86: dsputil: drop some unused CPU flag debug code
13 years ago
Mans Rullgard
ffdd93a25e
ppc: fix build with altivec disabled
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
28f9ab7029
vp3: move idct and loop filter pointers to new vp3dsp context
...
This moves all VP3-specific function pointers from dsputil to a
new vp3dsp context. There is no reason to ever use the VP3 IDCT
where an MPEG2 IDCT is expected or vice versa.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
ab9f987661
build: add CONFIG_VP3DSP, reduce repetition in OBJS lists
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Kostya Shishkov
4cfb0d871d
tscc2: do not add/subtract 128 bias during DCT
...
It turns out that the reference decoder subtracts 128 from DC during block
decode but adds it back during reordering block with zigzag pattern.
Transforming block with incorrect DC caused heavy visual artifacts for
many quantisers.
13 years ago
Kostya Shishkov
3c6c19184c
tscc2: fix typo in DCT
13 years ago
Diego Biurrun
c547e5ff98
configure: clarify external library section of help output
13 years ago
Diego Biurrun
87246953d8
configure: mark libfdk-aac as nonfree
13 years ago
Diego Biurrun
47876d661a
configure: cosmetics: drop some unnecessary backslashes
13 years ago
Diego Biurrun
7a249625fd
os_support: K&R formatting cosmetics
13 years ago
Michael Bradshaw
453c02f971
libopenjpeg: introduce encoding support
...
Based on FFmpeg version from
commit 713a7854e0
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Michael Bradshaw
b43a7bb4f9
libopenjpeg: rename decoder source file.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Samuel Pitoiset
86991ce2dd
RTMPTS protocol support
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago