[FFmpeg-devel] [PATCH] avcodec/xbmenc: Better xbm memory use
Jose Da Silva
digital at joescat.com
Mon Jan 11 00:11:39 EET 2021
Small memory reduction which uses approx 6/7th total memory.
Assuming \n is 2bytes, we first need {32+33+40+5}=110
but we also need to include the terminating zero => 110+1 = 111 (bug-fix).
Then assuming \n is 2bytes, data requires => height * (linesize * 6 + 2)
For example, " 0x00, 0x11, 0x22,\n"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-xbmenc-Better-xbm-memory-use.patch
Type: text/x-patch
Size: 1126 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210110/b5e0fbd9/attachment.bin>
More information about the ffmpeg-devel
mailing list