[FFmpeg-devel] [PATCH] avcodec/hevc: reduce memory used by the SAO

Christophe Gisquet christophe.gisquet at gmail.com
Thu Feb 5 08:17:25 CET 2015


2015-02-05 7:29 GMT+01:00 Christophe Gisquet <christophe.gisquet at gmail.com>:
> We were previously reference-counting the sao-buffer. Should we do
> that for sao_pixel_buffer_[hv], then?

Something like the attached patch.

Note: I'm probably overallocating compared to previously, but that
doesn't look to be a big deal.

On the other hand, those are buffers sized 2*block_height*image_width
and 2*block_width*image_height.
The storing is maybe overzealous, as I don't see why just more than 1
or 2 lines/columns need to be stored.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hevc-sao-referenced-line-column-buffers.patch
Type: text/x-patch
Size: 7429 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150205/f23bb2b4/attachment.bin>

More information about the ffmpeg-devel mailing list