[FFmpeg-devel] [PATCH] avcodec/vp9: use a buffer pool to allocate VP9Frame extradata
James Almer
jamrial at gmail.com
Thu Mar 26 16:35:45 EET 2020
On 3/26/2020 11:30 AM, Anton Khirnov wrote:
> Quoting James Almer (2020-03-06 01:09:39)
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>> libavcodec/vp9.c | 13 ++++++++++++-
>> libavcodec/vp9dec.h | 4 ++++
>> 2 files changed, 16 insertions(+), 1 deletion(-)
>>
>
> Looks reasonable. Any measurable performance difference?
Very noticeable when i use the START_TIMER/STOP_TIMER macros within the
function, of course, but despite only allocating about three buffers for
the entire decoding process instead of one per frame, i didn't notice
any reduction in overall decoding time.
Someone better at benchmarking may want to give it a try, though.
Will apply, thanks.
More information about the ffmpeg-devel
mailing list