[FFmpeg-devel] avcodec/proresenc_aw : improve speed by replacing PutBitContext for codeword encoding

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Mar 6 09:57:36 EET 2019


2019-02-27 17:50 GMT+01:00, Martin Vignali <martin.vignali at gmail.com>:
>>
>> Shouldn’t there be a 64Bit PutBitContext instead so other encoders can
>> also profit?
>
> I only use here a small part of putbitcontext, and in an "unsafe" mode (the
> buffer of the prores aw encoder is big enough to not check it, and write 64
> bits during the flush even if less can be use (to keep code more simple))

Not sure if this justifies not adding the new code to PutBitContext: it doesn't
have to work for all situations, only for the encoder that initially uses it.

Carl Eugen


More information about the ffmpeg-devel mailing list