summaryrefslogtreecommitdiff
path: root/libavcodec/mpc7data.h
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/mpc7: Apply offsets when creating VLCsAndreas Rheinhardt2020-12-081-2/+2
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/mpc7: Reduce size of tables used to initialize VLCsAndreas Rheinhardt2020-12-081-80/+76
| | | | | | | | By switching to ff_init_vlc_from_lengths() one can replace tables of codes of type uint16_t with tables of symbols of type uint8_t, saving space. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/mpc7, mpc7data: Avoid gaps in arrayAndreas Rheinhardt2020-09-151-54/+22
| | | | | | | | | | | | | | The Musepack decoder uses static VLC tables to parse the bitstream. There are 14 different quant tables VLCs and each of them has a varying number of codes. The maximum number is 63, the average number is 25.3. Up until now, the array containing the raw data was of type uint16_t [7][2][64 * 2] (the 14 tables come in pairs of two, hence [7][2] instead of [14]) and from this it follows that there were large gaps in said array. This commit changes this by making it a continuous array instead. Doing so saves about 2KB. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/mpc7, mpc7data: Make overlong arrays smallerAndreas Rheinhardt2020-09-151-1/+1
| | | | | | | For the VLC table arrays in mpc7_decode_init() this fixes a regression introduced in 1e40dc920a838e35f1483b20bfcd417437e68741. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* Globally rename the header inclusion guard names.Stefano Sabatini2008-08-311-3/+3
| | | | | | | | | Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split Musepack decoder into SV7 decoder and synth coreKostya Shishkov2007-11-021-0/+171
(for upcoming SV8 decoder) Originally committed as revision 10905 to svn://svn.ffmpeg.org/ffmpeg/trunk