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

Mickaël Raulet mraulet at insa-rennes.fr
Thu Feb 5 09:48:34 CET 2015


2015-02-05 8:17 GMT+01:00 Christophe Gisquet <christophe.gisquet at gmail.com>:

> Hi,
>
> 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.
>


WPP try it out with thread_type=slice.

Mickaël


More information about the ffmpeg-devel mailing list