From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF8FA319875 for ; Thu, 8 Jan 2026 19:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767900362; cv=none; b=utuebrN3YDPhKCFrUQ4GqoBQwDVIBtYyeyhw9ELLNVYaiN2rFxKurPhfLMb1nggj3JGd/SL+R10uPDQLGXhb7uw49uisiO9zmXH7DHQIUG7Tt5Fr6E/ThfZZkYUy3ETqaaKknlU/Fr535h7t99ydqMfuvzWt7GdHh2fayxnklTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767900362; c=relaxed/simple; bh=oqsQIyOfdUN10ZWmBSlaRzwDqJBFA0k+bK+3KGaBWCU=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=qDtprSZ92qLD681NULA+t6EoEB7Z3jm4IociacesHwN9khMZKfrY5a079Ao3qUl9YymLQFol0PaE1VkfHC4DUkcUs/WjzxK8PcEzkusSuBenJIPEPMTwHUR5GTD9YjD6USFH99yZf3uJrhMFBchx/F915JNFrpXw1f2fbrIhDpw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=wafQxpAz; arc=none smtp.client-ip=91.218.175.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="wafQxpAz" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1767900348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QPy2moNpfXyKzpsuRRn1WphpzYdcy/N6eUTrP8hh2hA=; b=wafQxpAzYW9sPN/Dvw9WZcDJvO9nTsgn3nIfVeGpCh8Zc3XmG0iAYeO2gdpnnJXKJJ9LXp wO42jELc3pCtwJ5XWuDh57I23n9QlsnuY6n8fch/4n6Up8CsoNLxTfUjV9YJWhL6vqeN25 FE3qL6oZ14QQYb6i3z5+XVbYf/DwriCX2wXqyb9gFKRqHtgS3UZPKc2JsPuRhQgP16oup8 IPESH7hM1oNzXPj17ay/BnPLLoJGA22Mw2HIkNjSvBzRMG0/4u9hXFGUXat+x9wAqG/Kgj 3HFu64r1l5n2LRyzVsJOa/XekejcAWyHIJmclfLkqmRbAYMC7xws8c66LcHzHQ== Date: Thu, 8 Jan 2026 16:25:30 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Val Packett Subject: Re: [PATCH v10 0/5] Enable support for AV1 stateful decoder To: Deepa Guthyappa Madivalara , Bryan O'Donoghue , Mauro Carvalho Chehab , Vikash Garodia , Dikshita Agarwal , Abhinav Kumar Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bryan O'Donoghue , Nicolas Dufresne , Hans Verkuil References: <20251210-av1d_stateful_v3-v10-0-cf4379a3dcff@oss.qualcomm.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 1/2/26 3:59 PM, Deepa Guthyappa Madivalara wrote: > > On 1/2/2026 3:01 AM, Val Packett wrote: >> >> On 1/2/26 7:44 AM, Bryan O'Donoghue wrote: >>> On 02/01/2026 10:43, Val Packett wrote: >>>> >>>> On 12/10/25 3:59 PM, Deepa Guthyappa Madivalara wrote: >>>>> Hi all, >>>>> >>>>> This patch series adds initial support for the AV1 stateful decoder >>>>> codecs in iris decoder. Also it adds support for AV1 stateful decoder >>>>> in V4l2. The objective of this work is to extend the Iris decoder's >>>>> capabilities to handle AV1 format codec streams, including necessary >>>>> format handling and buffer management. >>>> >>>> This is awesome, thanks! >>>> >>>> I've tested it with rpi-ffmpeg as well, and it works great (only >>>> required one interesting logic change.. >>>> https://github.com/jc-kynesim/rpi-ffmpeg/pull/108) \o/ BTW, the rpi-ffmpeg maintainer is asking, > for that flag_last code to trigger we have to have received an empty > capture buffer, which is the legacy method of signalling EOS, so > flag_last is a legitimate response. Is there something about AV1 > stateful that means it is legitimate to receive empty capture buffers > mid stream? (grain & no-grain buffers spring to mind with an empty > frame if grain isn't enabled but that is pure speculation on my part > not supported by the documentation I've read). Now I'll grant that if > we get an EOS signalled this way we probably shouldn't attempt to > dequeue an event, but the "correct" answer of simply signalling EOS > back down the chain isn't what you want either? (`flag_last` being an internal variable for an end-of-stream condition, so basically, I needed to make ffmpeg *not* interpret an empty capture buffer as an end-of-stream. I never saw those with H264/H265/VP9, but with AV1 one arrives after the first frame) ~val