[FFmpeg-devel] [PATCH v3] avcodec/videotoolbox: add AV1 hardware acceleration

Martin Storsjö martin at martin.st
Tue Oct 1 10:03:53 EEST 2024


On Fri, 27 Sep 2024, Cameron Gutman wrote:

> On Thu, Sep 26, 2024 at 4:25 PM Martin Storsjö <martin at martin.st> wrote:
>>
>> From: Jan Ekström <jeebjp at gmail.com>
>>
>> Use AV1DecContext's current_obu to access the original OBUs, and
>> feed them to videotoolbox, rather than the bare slice data passed
>> via decode_slice.
>>
>> This requires a small addition to AV1DecContext, for keeping track
>> of the current range of OBUs that belong to the current frame.
>>
>> Co-authored-by: Ruslan Chernenko <ractyfree at gmail.com>
>> Co-authored-by: Martin Storsjö <martin at martin.st>
>> ---
>> v3: Adjust where nb_unit/start_unit are set, add code comments explaining
>> the roles of nb_unit/start_unit.
>> ---
>
> I've got 3 positive reports from folks testing this version, so LGTM.

Thanks! If there's no further opposition to this, and James doesn't mind 
the changes to the generic code in av1dec.c/h, I'll go ahead and push this 
later today or tomorrow.

// Martin


More information about the ffmpeg-devel mailing list