Andreas Rheinhardt
1be3d8a0cb
avcodec/avcodec: Stop including channel_layout.h in avcodec.h
...
Also include channel_layout.h directly wherever used.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
foo86
73789b85a7
avcodec/dca_core: always limit frame size to data size
...
Silences pointless error message when decoding DTS-in-WAV stream with
excessive frame size stored in header.
7 years ago
James Almer
7c9d2ad45f
avcodec/dca: remove GetBitContext usage from avpriv_dca_parse_core_frame_header()
...
This prevents potential ABI issues with GetBitContext.
Reviewed-by: foo86 <foobaz86@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
foo86
012620aa1b
avcodec/dca: avoid using bitstream reader in a non-standard way
...
Use proper get_bits.h functions instead of directly accessing index.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
foo86
902cd30e9b
avcodec/dca_core: probe extension headers directly
...
Avoid using bitstream reader in a non-standard way by directly accessing
index. Use bit shifting/masking operations instead.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
foo86
33fc6c17a6
avcodec/dca_core: switch to common frame header parsing function
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
foo86
f6b86b62f7
avcodec/dca: move some enumeration typedefs into headers
...
These values will be used by the parser. Prefix them with DCA_
appropriately.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Daniil Cherednik
b8c2b9c392
avcodec/dcaenc: Initial implementation of ADPCM encoding for DCA encoder
8 years ago
Daniil Cherednik
c2500d62c6
dcaenc: Implementation of Huffman codes for DCA encoder
...
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
foo86
b5cda23039
avcodec/dca: remove useless debug message
...
Most DTS-in-WAV streams trigger this, making debug output hard to read.
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
b7d267399b
avcodec/dca: convert to AVCRC
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
ce2f9fdb0a
avcodec/dca: fix sync word search error condition
...
This didn't actually check if sync word was found and always errored out
with "-err_detect explode" option enabled.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
foo86
2df7d4fa45
avcodec/dca: move huffman data into separate object file
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
db44b59980
avcodec/dca: clear X96 channels if nothing was decoded
...
The first X96 channel set can have more channels than core, causing X96
decoding to be skipped. Clear the number of decoded X96 channels to zero
in this rudimentary case.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Hendrik Leppkes
5fc310f7ca
dca: add emms_c after usage of AV_COPY128
...
Similar to AV_ZERO128, AV_COPY128 can use MMX instructions in x86
9 years ago
Hendrik Leppkes
0b1972d409
dca: add emms_c after AV_ZERO128 macros
...
AV_ZERO64/128 can use MMX on x86.
Reviewed-By: James Almer <jamrial@gmail.com>
9 years ago
James Almer
77b5b95247
avcodec/dca_core: rename get_vlc function
...
Fixes compilation with TRACE enabled
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
ae5b2c5250
avcodec/dca: add new decoder based on libdcadec
9 years ago