summaryrefslogtreecommitdiff
path: root/libavcodec/mqc.h
Commit message (Collapse)AuthorAge
* avcodec/mqcenc: Make ff_mqc_flush() staticAndreas Rheinhardt2021-09-08
| | | | | | | Only used as an auxiliary function for ff_mqc_flush_to() since 4624656797b667eb6405186682eb04e74dfd90fd. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/mqc: Hardcode tables to save spaceAndreas Rheinhardt2021-05-12
| | | | | | | | | | | | | | | | | | mqc currently initializes three arrays at runtime; each of them has 2 * 47 elements, one is uint16_t, two are uint8_t, so that their combined size is 8 * 47. The source data for these initializations is contained in an array of 47 elements of size six. Said array is only used in order to initialize the other arrays, so the savings are just 2 * 47B. Yet this is dwarfed by the size of the code for performing the initializations: It is 109B (GCC 10.2, x64, -O3 albeit in an av_cold function); this does not even include the size of the code in the callers. So just hardcode these tables. This also fixes a data race, because the encoder always initialized these tables during init, although they might already be used at the same time by already running encoder/decoder instances. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/mqcenc: Remove unused ff_mqc_lengthAndreas Rheinhardt2021-02-24
| | | | | | Unused since 4624656797b667eb6405186682eb04e74dfd90fd. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-21
|\ | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * jpeg2000: Initialize only once mqc arraysNicolas Bertrand2013-07-13
| | | | | | | | | | | | Improves decoding speed. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avcodec/mqcenc: Add ff_mqc_flush_to()Michael Niedermayer2015-06-17
| | | | | | | | | | | | | | This is needed to separate the end padding from the bitstream, allowing to end it multiple times without disturbing it. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mqcdec: Support raw bypass and non reseting initMichael Niedermayer2015-06-12
| | | | | | | | | | | | Some broken code that used the old mqc is removed Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | jpeg2000: Initialize only once mqc arraysNicolas Bertrand2013-07-12
| | | | | | | | | | | | Increases encoding and decoding speed Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-04-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avcodec: Bump minor for JPEG 2000 decoder JPEG 2000 decoder for DCinema The mqc code is merged, the rest is added independent of the existing jpeg2000 decoder and encoder. Conflicts: Changelog doc/general.texi libavcodec/Makefile libavcodec/allcodecs.c libavcodec/mqc.c libavcodec/mqc.h libavcodec/mqcdec.c libavcodec/version.h tests/fate/video.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * JPEG 2000 decoder for DCinemaNicolas Bertrand2013-04-22
| | | | | | | | Based on the 2007 GSoC project from Kamil Nowosad <k.nowosad@students.mimuw.edu.pl> Updated to current programming standards, style and many more small fixes by Diego Biurrun <diego@biurrun.de>. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add Kamil Nowosads j2k code.Kamil Nowosad2011-05-24
This needs work but it should not rot in soc svn.