Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5549800pxb; Wed, 19 Jan 2022 22:44:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxE29lHlN5WmiZWNfpbpII4pMsLKGCKXBqMIzzhpSgSwxAKL0yJ7xMy1uwkCH+kApFHTOuh X-Received: by 2002:a17:90a:688d:: with SMTP id a13mr8944344pjd.164.1642661065825; Wed, 19 Jan 2022 22:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642661065; cv=none; d=google.com; s=arc-20160816; b=XU7sutv03X+MoDL7qR3zDadKFbcOL+lxQeWPJOo3kuh4tA0682fzYZ+7OEbv8MPf/5 zthNe16xnHqdvqIZjopf0DA6+v90h7qgRgEB+pwX+7FV9QjOBK6SPhDmq6HwI05ifOHf IEDCN3/+RyzjkjcDxgXA4WEmduu4LmOXGthGOW5vXAAr6mEJ6jU+2VHVwqZ9cS9sD224 J3nLf+E0jY+NzR7yncaWnK+cKGXNxKFuXX37IsjK1Mgmf3IXXPSC91HuaaWTyS2Xm0jS A9nxG/sn38eQDtperK+O1bnAiGoT/pbTt7ABv0tG4wZFvM6YZPdxtn8sjM+OKNpi08xO UsCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Oq4iCc0Wwww95pZLDL+Et/XTeCWCBjBihbZj50b8h3M=; b=pCHgEhHmaqBJ8zZgEoiPL020WhZ6zn1t8bF9em2fzE/ISBNu69mI8FykDozB2JQWiE kXiTIr9op59BGakKJeNADWL0cBYTSE1l6cBhPFn1UUDyCFqc8SzCYpe88Y1KVitZOm2v QmIkqCuksDWS4lC1GvSpds/oLQPwbZLTX/5xD0LdiwpEkVY2u8/FevWixYfqnjMc+Ch1 xxEOccEzDHJe+jZaRtpxq1Feu62hjz/Ek6FMqGQ099Xn17WrH9vqdzsjzra4A3GukvgT xmjEDAraZ6C39SXKd1kmpFlFNjcCdmRVsscVaBmv36ZVZSzJiuDbUV0TqDSfRUbeuDgG KrEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b6JxSCnc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si3380801pgu.358.2022.01.19.22.44.14; Wed, 19 Jan 2022 22:44:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b6JxSCnc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237794AbiARKnk (ORCPT + 99 others); Tue, 18 Jan 2022 05:43:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbiARKnj (ORCPT ); Tue, 18 Jan 2022 05:43:39 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AABF6C061574; Tue, 18 Jan 2022 02:43:38 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id m3so54792451lfu.0; Tue, 18 Jan 2022 02:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Oq4iCc0Wwww95pZLDL+Et/XTeCWCBjBihbZj50b8h3M=; b=b6JxSCncymDWIYKs/NDxFeWUhfO9T3aGxAmnNRbuKRFctelJmHrCxc4GgDoe3VLLb3 H+jk0CebLDbcWRvUDksG2L8oAF0Kd50Cd4Ccjby/eqY+ih62XseR6fDqnYjZOL1KcK5z RZkJMoz5oyrO9S3yTNCbP+eVb++NDCh6RMaF/Gxo1gEn6vnh4IZOYV6iEqjvBd07fEC5 u0pEF3fZWNJlluEyfQCdEp0W9j+28v7/OrxvLtFvE0/O6v/0fWneShjpSDGDZzO+S5Tv zEQoalJQmoyjPFcUIm99RMIPu4Ew29iK4JMB7TWEfmmJGy8H7VaroWLXy42yT2BiXqit HTqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Oq4iCc0Wwww95pZLDL+Et/XTeCWCBjBihbZj50b8h3M=; b=tRU+t8bKiSMcUWf2kBWh8+yNyMxFE/fU3P2edbUXXOabBAqX8bm6Ey5GgCtF5vVegk urUAaVolSSsekUL3urULBvUe9j1KRuRcESvRY7VdL7g6KI2sijbHiBmhJSzdpoWaVpj+ pBRU3GzSLHjLxlYzcvoT/eYkG0xCkqRjr3tWLC6rPm9lXYNiaJUOVeVOWQVvm8nvtc88 Yer0Vx7adMKf1OZzLlLLup20RSoYxhXa4bb5Zn+ICk5FP8eGj49V2k0LaBv6cVlPUSmr oWJ9b3+kfuadBmJyqI4lFQ0NP7JJTfy4kFSpe+OZXFENC1HWXiTHcHTeVWMW7dcmysEf IzyA== X-Gm-Message-State: AOAM533GhQyTQVv67SFufiFB+fFjgbC663PDKSyqGsGUE1tBKCUei6dT Aw6KYx7g0KSqvC5xSdYo5u4= X-Received: by 2002:a05:651c:19ab:: with SMTP id bx43mr9860035ljb.112.1642502617075; Tue, 18 Jan 2022 02:43:37 -0800 (PST) Received: from [192.168.2.145] (46-138-227-157.dynamic.spd-mgts.ru. [46.138.227.157]) by smtp.googlemail.com with ESMTPSA id q9sm1374535lfd.266.2022.01.18.02.43.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jan 2022 02:43:36 -0800 (PST) Message-ID: Date: Tue, 18 Jan 2022 13:43:35 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v1 2/2] media: staging: tegra-vde: Support V4L stateless video decoder API Content-Language: en-US To: Nicolas Dufresne , Thierry Reding , Jonathan Hunter , Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220112153952.1291-1-digetx@gmail.com> <20220112153952.1291-3-digetx@gmail.com> <0ae51264-8578-0b4f-4348-7f7a239c98dc@gmail.com> <26cd15bc1c5dfe3acf8bb280cf7542657cb8b291.camel@ndufresne.ca> From: Dmitry Osipenko In-Reply-To: <26cd15bc1c5dfe3acf8bb280cf7542657cb8b291.camel@ndufresne.ca> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 18.01.2022 05:43, Nicolas Dufresne пишет: > Le mercredi 12 janvier 2022 à 22:04 +0300, Dmitry Osipenko a écrit : >>> If so, I may suggest to drop this fallback, and propose an amendment to the >>> spec, we can require flagging KEYFRAME/PFRAME/BFRAME on the OUTPUT buffer, >>> this >>> won't break any drivers/userland on other HW, and will benefit possibly >>> other HW >>> in the future. I can volunteer to patch GStreamer and LibreELEC ffmpeg if we >>> agree to this. Not sure how it works for Chromium, or if it actually make >>> sense >>> to support here. >>> >>> (expecting feedback from Hans and Ezequiel here) >> >> Amending the spec will be great, although it's not clear how to flag >> frame that consists of slices having different types. > > As per spec, all slices of a frame must be of the same type. In short, there is > no problem, adding new flags to the decode_params.flags is fine, and is backward > compatible. I had a second thought that I'd probably prefer this over using the > v4l2_buffer flags, but either way seems backward compatible. > > In H264, but also other CODEC, slices are have two types of parameters, some of > the parameters are invariant between slices, but still duplicated so you can > decode some of the frame, even if the very first slice is lost. We tried our > best to place all the slice invariant parameters in decode_params to keep the > slice_params as small as we could. Could you please give a direct reference to the spec? (chapter / page or provide quote) I'm vaguely recalling that x264 encoder was able to generate such frames.