summaryrefslogtreecommitdiff
path: root/libavcodec/cfhdenc.c
Commit message (Collapse)AuthorAge
* Remove unnecessary avassert.h inclusionsAndreas Rheinhardt2021-07-22
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/encode: Always use intermediate buffer in ff_alloc_packet2()Andreas Rheinhardt2021-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now, ff_alloc_packet2() has a min_size parameter: It is supposed to be a lower bound on the final size of the packet to allocate. If it is not too far from the upper bound (namely, if it is at least half the upper bound), then ff_alloc_packet2() already allocates the final, already refcounted packet; if it is not, then the packet is not refcounted and its data only points to a buffer owned by the AVCodecContext (in this case, the packet will be made refcounted in encode_simple_internal() in libavcodec/encode.c). The goal of this was to avoid data copies and intermediate buffers if one has a precise lower bound. Yet those encoders for which precise lower bounds exist have recently been switched to ff_get_encode_buffer() (which automatically allocates final buffers), leaving only two encoders to actually set the min_size to something else than zero (namely aliaspixenc and hapenc). Both of these encoders use a very low lower bound that is not helpful in any nontrivial case. This commit therefore removes the min_size parameter as well as the codepath in ff_alloc_packet2() for the allocation of final buffers. Furthermore, the function has been renamed to ff_alloc_packet() and moved to encode.h alongside ff_get_encode_buffer(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/cfhdenc: Mark encoder as init-threadsafeAndreas Rheinhardt2021-05-02
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec: Constify AVCodecsAndreas Rheinhardt2021-04-27
| | | | | | | | | | Given that the AVCodec.next pointer has now been removed, most of the AVCodecs are not modified at all any more and can therefore be made const (as this patch does); the only exceptions are the very few codecs for external libraries that have a init_static_data callback. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* Avoid intermediate bitcount for number of bytes in PutBitContextAndreas Rheinhardt2021-03-30
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/cfhdenc: do not try to encode junkPaul B Mahol2021-02-24
|
* avcodec/cfhdenc: add padding to each decompositionPaul B Mahol2021-02-24
|
* avcodec/cfhdenc: refactor DSP code for CFHD encoderPaul B Mahol2021-02-24
| | | | This is needed to implement x86 SIMD.
* avcodec/cfhdenc: use pts instead of frame numberPaul B Mahol2021-02-19
| | | | Makes encodes bitexact with different number of threads.
* avcodec/cfhdenc: Fix leaks on allocation errorsAndreas Rheinhardt2020-09-14
| | | | | | | | | | The CineForm HD encoder attempts to allocate several buffers in its init function; yet if only some of these allocations succeed, the successfully allocated buffers leak. This is fixed by setting the FF_CODEC_CAP_INIT_CLEANUP flag. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec: extend CFHD descriptionPaul B Mahol2020-08-14
|
* avcodec/cfhdenc: mark filter as always inlinePaul B Mahol2020-08-11
|
* avcodec/cfhdenc: optimize writting of small runcodesPaul B Mahol2020-08-11
|
* avcodec/cfhdenc: improve quality vs size ratioPaul B Mahol2020-08-11
|
* avcodec/cfhdenc: free alpha buffer on closingPaul B Mahol2020-08-08
|
* avcodec/cfhdenc: add gbrap12 pixel format supportPaul B Mahol2020-08-08
|
* avcodec/cfhdenc: compand coefficientsPaul B Mahol2020-08-08
| | | | Also use -quality private option and add more modes.
* avcodec/cfhdenc: also write FrameNumber tagPaul B Mahol2020-08-08
|
* avcodec/cfhdenc: fix setting default compression levelPaul B Mahol2020-08-03
|
* avcodec/cfhdenc: extend quantization tablePaul B Mahol2020-08-03
| | | | Should give better quality.
* avcodec/cfhdenc: fix PrescaleTable for YUV422P10Paul B Mahol2020-08-03
|
* avcodec: add CFHD encoderPaul B Mahol2020-08-02