Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-06dca_core: convert to lavu/txLynne
Thanks to Martin Storsjö <martin@martin.st> for fixing and testing the arm32 and aarch64 changes.
2022-09-16avcodec/dcahuff: Replace DCAVLC by ordinary VLCsAndreas Rheinhardt
This is possible now that the offsets are already applied when creating the VLC. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-16avcodec/dca_core: Don't use too big max_depth in get_vlc2()Andreas Rheinhardt
Most of the VLCs used here have a max_depth of two; some have a max_depth of one. Therefore one can just use two and avoid the runtime check for whether one should perform another round of LUT lookup in case the first read did not read a complete codeword. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-16avcodec/dca_core: Inline number of bits of scale factor VLCsAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-16avcodec/dcahuff, dca_core, dca_lbr: Apply offset during VLC creationAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-16avcodec/dcahuff: Always use three bits for transition mode VLCsAndreas Rheinhardt
It increases the size of one VLC from two to three bits, thereby requiring four more VLCEntries (16 bytes .bss), but it allows to inline the number of bits used when reading them. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-16avcodec/dca_core, dcahuff: Don't use DCAVLC unnecessarilyAndreas Rheinhardt
The ff_dca_vlc_transition_mode VLCs don't use an offset at all, so just use ordinary VLCs for them. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-11avcodec/dca_core: Only call emms_c() if neededAndreas Rheinhardt
It is not needed on x64, because the AV_COPY* and AV_ZERO* macros never use MMX on x64. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-08-27avcodec/internal: Move ff_side_data_update_matrix_encoding to decode.hAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-08-27avcodec/internal: Move ff_get_buffer() to decode.hAndreas Rheinhardt
Only used by decoders (encoders have ff_encode_alloc_frame()). Also clean up the other headers a bit while removing now redundant internal.h inclusions. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-04avcodec/dcadec: Treat the input packet's data as constAndreas Rheinhardt
A decoder's input packet need not be writable, so we must not modify the data. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-03-15dca: convert to new channel layout APIAnton Khirnov
Signed-off-by: James Almer <jamrial@gmail.com>
2022-02-08all: Remove unnecessary libavcodec/internal.h inclusionsAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-01-04avcodec/dca: Unavpriv dca_sample_ratesAndreas Rheinhardt
Said table is 64 bytes long and exported so that it can be used both in libavcodec and libavformat. This commit stops doing so and instead duplicates it for shared builds, because the overhead of exporting the symbol is bigger than 64 bytes. It consists of the length of the name of the symbol (2x24 bytes), two entries in .dynsym (2x24 bytes), two entries for symbol version (2x2 bytes), one hash value in the exporting library (4 bytes) in addition to one entry in the importing library's .got and .rela.dyn (8 + 24 bytes). (The above numbers are for a Linux/GNU/Elf system; the numbers for other platforms may be different.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-07-22avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt
Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2017-10-09avcodec/dca_core: always limit frame size to data sizefoo86
Silences pointless error message when decoding DTS-in-WAV stream with excessive frame size stored in header.
2017-07-21avcodec/dca: remove GetBitContext usage from ↵James Almer
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>
2017-07-19avcodec/dca: avoid using bitstream reader in a non-standard wayfoo86
Use proper get_bits.h functions instead of directly accessing index. Signed-off-by: James Almer <jamrial@gmail.com>
2017-07-19avcodec/dca_core: probe extension headers directlyfoo86
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>
2017-07-19avcodec/dca_core: switch to common frame header parsing functionfoo86
Signed-off-by: James Almer <jamrial@gmail.com>
2017-07-19avcodec/dca: move some enumeration typedefs into headersfoo86
These values will be used by the parser. Prefix them with DCA_ appropriately. Signed-off-by: James Almer <jamrial@gmail.com>
2017-05-08avcodec/dcaenc: Initial implementation of ADPCM encoding for DCA encoderDaniil Cherednik
2017-01-15dcaenc: Implementation of Huffman codes for DCA encoderDaniil Cherednik
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2016-05-20avcodec/dca: remove useless debug messagefoo86
Most DTS-in-WAV streams trigger this, making debug output hard to read. Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-03avcodec/dca: convert to AVCRCfoo86
Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-03avcodec/dca: fix sync word search error conditionfoo86
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>
2016-05-01avcodec/dca: move huffman data into separate object filefoo86
Signed-off-by: James Almer <jamrial@gmail.com>
2016-03-06avcodec/dca: clear X96 channels if nothing was decodedfoo86
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>
2016-02-03dca: add emms_c after usage of AV_COPY128Hendrik Leppkes
Similar to AV_ZERO128, AV_COPY128 can use MMX instructions in x86
2016-02-02dca: add emms_c after AV_ZERO128 macrosHendrik Leppkes
AV_ZERO64/128 can use MMX on x86. Reviewed-By: James Almer <jamrial@gmail.com>
2016-02-01avcodec/dca_core: rename get_vlc functionJames Almer
Fixes compilation with TRACE enabled Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-01-31avcodec/dca: add new decoder based on libdcadecfoo86