[FFmpeg-devel] [PATCH 4/7] avcodec/codec_internal: Use union for FFCodec decode/encode callbacks

Michael Niedermayer michael at niedermayer.cc
Sun May 1 00:50:10 EEST 2022


On Thu, Mar 31, 2022 at 12:49:55AM +0200, Andreas Rheinhardt wrote:
> This is possible, because every given FFCodec has to implement
> exactly one of these. Doing so decreases sizeof(FFCodec) and
> therefore decreases the size of the binary.
> Notice that in case of position-independent code the decrease
> is in .data.rel.ro, so that this translates to decreased
> memory consumption.

by how much did the space requirement decrease ?
iam asking because while a single such change isnt a issue
if we accumulate alot of this in the API, the API may become
actually hard to understand by new developers

[...]

thx

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"Nothing to hide" only works if the folks in power share the values of
you and everyone you know entirely and always will -- Tom Scott

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220430/54fd0a24/attachment.sig>


More information about the ffmpeg-devel mailing list