summaryrefslogtreecommitdiff
path: root/libavcodec/cinepakenc.c
Commit message (Collapse)AuthorAge
* avcodec/cinepakenc: Cleanup generically after init failureAndreas Rheinhardt2020-08-30
| | | | | Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/cinepakenc: Fix invalid shiftsAndreas Rheinhardt2019-10-06
| | | | | | | | | | Fixes: left shift of 1 by 31 places cannot be represented in type 'int'. Affected the FATE-tests vsynth1-cinepak, vsynth2-cinepak and vsynth_lena-cinepak. Also fixes ticket #8220. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'ed3b2a999d189771c9b0ada9a9200117595fa474'James Almer2017-11-07
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ed3b2a999d189771c9b0ada9a9200117595fa474': cinepakenc: misc small changes cinepakenc: K&R formatting cosmetics cinepakenc: Stop using AVPicture cinepakenc: Drop broken debug code cinepakenc: add option handling for flexibility cinepakenc: fixes and improvements Add Cinepak encoder See 59dbc36f49db5cfd9d2ad4b00ef2e3336173ee8d 762c4dc082764896e27f3c53c14a65871d8fe910 bf23642dcc86890fa2e32697c3b930b3f1ac0d88 0ab25dac2f0b170ecc0e37530cf15f83b9f9e56d Merged-by: James Almer <jamrial@gmail.com>
| * cinepakenc: misc small changesDiego Biurrun2017-07-05
| | | | | | | | | | | | Avoid anonymously typedeffed structs and enums, drop an unused context member, fix a small wording mishap, sizeof(type) ---> sizeof(*variable), drop a needlessly verbose log message, use av_malloc_array() where appropriate.
| * cinepakenc: K&R formatting cosmeticsDiego Biurrun2017-07-05
| |
| * cinepakenc: Stop using AVPictureTimothy Gu2017-07-05
| |
| * cinepakenc: Drop broken debug codeDiego Biurrun2017-07-05
| |
| * cinepakenc: add option handling for flexibilityaddr-see-the-website@aetey.se2017-07-05
| | | | | | | | | | | | | | Now it is possible to adjust compression speed vs R/D when needed and also skip vintage player compatibility at will. Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * cinepakenc: fixes and improvementsaddr-see-the-website@aetey.se2017-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 2013-02-08 Rl - fixes/optimization in multistrip encoding and codebook size choice, quality/bitrate is now better than that of the binary proprietary encoder version 2013-02-12 Rl - separated codebook training sets, avoided the transfer of wasted bytes, which yields both better quality and smaller files - now using the correct colorspace (TODO: move conversion to libswscale) version 2013-02-14 Rl "Valentine's Day" version: - made strip division more robust - minimized bruteforcing the number of strips, (costs some R/D but speeds up compession a lot), the heuristic assumption is that score as a function of the number of strips has one wide minimum which moves slowly, of course not fully true - simplified codebook generation, the old code was meant for other optimizations than we actually do - optimized the codebook generation / error estimation for MODE_MC version 2013-04-28 Rl - bugfixed codebook optimization logic version 2014-01-20 Rl - made the encoder compatible with vintage decoders and added some yet unused code for possible future incremental codebook updates - fixed a small memory leak version 2014-01-21 Rl - believe it or not, now we get even smaller files, with better quality (which means I missed an optimization earlier :) Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * Add Cinepak encoderTomas Härdin2017-07-05
| | | | | | With permission of Tomas Härdin applied by Rl aetey.se Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cinepakenc: Move declaration out of for initialisation statementMark Thompson2017-10-21
| | | | (cherry picked from commit 92f0aceb36c6e4412d4cf346e70dc74b5a4069e9)
* libavcodec/cinepakenc.c: comments cleanup (contents)addr-see-the-website@aetey.se2017-02-02
| | | | | | | | Change the encoding of the original developer name from ISO-8859-1 to UTF-8. Remove the stale/completed TODO list. Fix two small typos. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cinepakenc: remove CVID from long descriptionPaul B Mahol2017-01-14
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* cinepakenc: Stop using AVPictureTimothy Gu2016-02-02
|
* avcodec: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch2015-12-04
|
* avcodec: Add a min size parameter to ff_alloc_packet2()Michael Niedermayer2015-07-27
| | | | | | | | This parameter can be used to inform the allocation code about how much downsizing might occur, and can be used to optimize how to allocate the packet Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Remove a few occurences of "long long" from the libraries.Carl Eugen Hoyos2015-06-13
|
* avcodec/cinepakenc: use av_malloc_array()Michael Niedermayer2014-05-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/cinepakenc: Fix "may be used uninitialized in this function" warningsMichael Niedermayer2014-05-08
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/cinepakenc: drop coded_frame initMichael Niedermayer2014-05-07
| | | | | | Fixes const being lost warning Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/cinepakenc: Zero AVPictures, silence "may be used uninitialized" ↵Michael Niedermayer2014-05-07
| | | | | | warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Cinepak encoder: adding option handling for flexibilityaddr-see-the-website@aetey.se2014-01-23
| | | | | | | Now it is possible to adjust compression speed vs R/D when needed and also skip vintage players compatibility at will. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/cinepakenc: fixes and improvementsaddr-see-the-website@aetey.se2014-01-22
| | | | | | | | | Fixed/improved multistrip adaptivity. Improved R/D by optimized codebook generation. Support for the correct color space. Vintage compatibility. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Adding Cinepak encoderTomas Härdin2014-01-22
With permission of Tomas Härdin applied by Rl aetey.se Signed-off-by: Michael Niedermayer <michaelni@gmx.at>