[FFmpeg-devel] [PATCH V3 1/2] avcodec: add av1 hardware acceleration decoder

James Almer jamrial at gmail.com
Sat Sep 12 20:01:27 EEST 2020


On 9/9/2020 10:23 PM, Wang, Fei W wrote:
> 
>> On 9/9/2020 12:39 AM, Fei Wang wrote:
>>> This av1 decoder is now only used for av1 hardware acceleration
>>> decoder. Consider it can be extend to a local decoder like hevc or vp9
>>> in the future, so define its name as "av1" and put it into external
>>> libraries codec list.
>>>
>>> Signed-off-by: Fei Wang <fei.w.wang at intel.com>
>>> ---
>>> update:
>>> 1. reuse buffer for tile_group_info.
>>> 2. set avctx/frame props from sequence and frame header.
>>> 3. refine ref/unref for s->seq_ref/s->header_ref.
>>> 4. refine av1_decode_frame to reduce duplicated code.
>>>
>>>  Changelog              |   1 +
>>>  configure              |   1 +
>>>  libavcodec/Makefile    |   1 +
>>>  libavcodec/allcodecs.c |   1 +
>>>  libavcodec/av1dec.c    | 860
>> +++++++++++++++++++++++++++++++++++++++++
>>>  libavcodec/av1dec.h    |  70 ++++
>>>  libavcodec/version.h   |   2 +-
>>>  7 files changed, 935 insertions(+), 1 deletion(-)  create mode 100644
>>> libavcodec/av1dec.c  create mode 100644 libavcodec/av1dec.h
>>
>> It's mostly good now. A few issues like a pointer leak on failure if
>> av_realloc_array() fails, but i can fix those before pushing.
>>
>> I'll let Mark review the vaapi patch and apply this one soon, since apparently
>> there are other hwaccels implementations waiting for this to land.
> 
> That's great! Thanks all for reviewing my patch to improve it!

Applied.


More information about the ffmpeg-devel mailing list