summaryrefslogtreecommitdiff
path: root/libavcodec/cfhd.h
Commit message (Collapse)AuthorAge
* avcodec/cfhd, cfhddata: Free VLC as soon as it is not neededAndreas Rheinhardt2022-09-05
| | | | | | | The VLC is only used to initialize RL VLC. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary avassert.h inclusionsAndreas Rheinhardt2021-07-22
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/cfhd: Keep track of which subbands have been readMichael Niedermayer2021-04-03
| | | | | | | | | | | | | | This avoids use of uninitialized data also several checks are inside the band reading code so it is important that it is run at least once Fixes: out of array accesses Fixes: 28209/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5684714694377472 Fixes: 32124/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5425980681355264 Fixes: 30519/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-4558757155700736 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cfhd: Check transform_type consistentlyMichael Niedermayer2021-04-03
| | | | | | | | | | Fixes: out of array accesses Fixes: 29754/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-6333598414274560 Fixes: 30519/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-6298424511168512 Fixes: 30739/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5011292836462592 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cfhd: Replace a few literal numbers by named constantsMichael Niedermayer2020-08-30
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cfhd: add x86 SIMDPaul B Mahol2020-08-26
| | | | Overall speed changes for 1920x1080, yuv422p10le, 60fps from: 0.19x to 0.343x
* avcodec/cfhd: log version tags tooPaul B Mahol2020-08-09
|
* avcodec/cfhd: read prescale table tagPaul B Mahol2020-08-09
| | | | | Currently unused. Remove prescale shift tag as it is not part of this codec.
* avcodec/cfhd: add 3d transform supportPaul B Mahol2020-08-08
| | | | Based on Gagandeep Singh patch.
* avcodec/cfhd: remove some unused or only write itemsPaul B Mahol2020-08-08
|
* avcodec/cfhdenc: also write FrameNumber tagPaul B Mahol2020-08-08
|
* avcodec/cfhd: correct 71 tag usagePaul B Mahol2020-08-03
| | | | It stores input format and never codebook.
* avcodec/cfhd: use LUT for 9 and 18 codebook decompandingPaul B Mahol2020-08-03
| | | | | Also fix codebook 9 decompanding, fixing artifact with codebook 9 samples. Reused Gagandeep Singh patch.
* avcodec: add CFHD encoderPaul B Mahol2020-08-02
|
* avcodec/cfhd: Use bytestream2 for peaksMichael Niedermayer2018-07-18
| | | | | | | This fixes out of array accesses No testcase known Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/cfhd: interlaced frame decoding addedGagandeep Singh2018-05-27
| | | | ticket #5522 output of given samples significantly improved
* avcodec/cfhd: support cropped height tagJames Almer2017-10-18
| | | | | | | | | | | Ported from libav. Authored by one of the following: Anton Khirnov <anton@khirnov.net> Diego Biurrun <diego@biurrun.de> Vittorio Giovara <vittorio.giovara@gmail.com> Reviewed-by: kierank Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit '5f794aa1653aa04c1da7397e9ccacad947fadf5f'James Almer2017-10-17
|\ | | | | | | | | | | | | | | | | | | | | | | * commit '5f794aa1653aa04c1da7397e9ccacad947fadf5f': Add Cineform HD Decoder See 3485332bf99602910fe8830b0230d02fc653135d. Some cosmetics are merged. The refactoring is not merged at the request of Kieran Kunhya. Merged-by: James Almer <jamrial@gmail.com>
| * Add Cineform HD DecoderKieran Kunhya2017-03-09
| | | | | | | | | | Decodes YUV 4:2:2 10-bit and RGB 12-bit files. Older files with more subbands, skips, Bayer, alpha not supported. Further fixes and refactorings by Anton Khirnov <anton@khirnov.net>, Diego Biurrun <diego@biurrun.de>, Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cfhd: reallocate internal buffers on format change.Kieran Kunhya2016-02-27
| | | | Fixes some, but not all, of the threading fuzz crashes
* avcodec: Cineform HD DecoderKieran Kunhya2016-01-30
Decodes YUV 4:2:2 10-bit and RGB 12-bit files. Older files with more subbands, skips, Bayer, alpha not supported. Alpha requires addition of GBRAP12 pixel format.