Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6024947imu; Wed, 30 Jan 2019 07:32:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN4lsa1C8OOqwWqCW72yyae72hkwB9LgOkqvbztui5thJeqYHKzhczQEETKRYeBiwM2rnuOT X-Received: by 2002:a62:2c81:: with SMTP id s123mr30716923pfs.174.1548862377329; Wed, 30 Jan 2019 07:32:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548862377; cv=none; d=google.com; s=arc-20160816; b=Lv3ZC+rBNVLh7m1wiHZn9hw8rXiWMXg2AQUGjRfk6Q/Qj7xk40sg6VGucqs0gYsBj0 QJDopU/sLILFgTNAtNnN0F6jQjtuBA28ZeIIlpOoTpBi4luTsUpx1ixVzjw8s+eS+Rf0 UO1a/XryJAm56VqAJpfQzwj9cN/Uh9trVD42DXf2dZTIjbrdtXASBgqgSyFj9j52f54p yCHPpq6H735pP7PB0JvsvHKvZsP3LPpdFS2sV9PlRw1pZdXNR7crXnCgPek6UShqEVtz nImgF1JgPe93Ok+4Qo89e6zurKkCrUAN/LnAMsO/k9X3SVQbZJX8rWT7nQjx0olD8uL0 j/nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ogMbMWCbaPKXCxe13GQRtAoEFG/dyH2jH/CrprzGxr0=; b=e1XihwxoDhg1ZFYzBFWYHdSw6JrKDEq4L5AHmUm1ehob2mcd5Yc7rFe3cRVWqlYAla 98cQJBiV06s8xZZ5HtutUFONtULlw6es5JQqbNgPINqD2rR9o5caEbixZBkic8uUl5tG e4p5saZfMI7jwTb7FNNTrfm2xtexiW7hVyEqtDqlmfxzgDSkxkQjBT3DzCA4DMplqW+v qIOCNAd90fvtFSEqv7xSdIqibT745SCgREXad2civ5/ClEVdflDR9KUPD4JyM7RLbjri /OBgm0yyReCpdhhu3HX/kxQUWW8gaILwwNKp1oJ2qihbnadw/hCOFD4TTpOBwTwEuMIi uQRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=0w0jjpO4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y141si1879445pfc.180.2019.01.30.07.32.40; Wed, 30 Jan 2019 07:32:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=0w0jjpO4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731448AbfA3Pcc (ORCPT + 99 others); Wed, 30 Jan 2019 10:32:32 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42704 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727977AbfA3Pcc (ORCPT ); Wed, 30 Jan 2019 10:32:32 -0500 Received: by mail-qt1-f195.google.com with SMTP id d19so26628727qtq.9 for ; Wed, 30 Jan 2019 07:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=ogMbMWCbaPKXCxe13GQRtAoEFG/dyH2jH/CrprzGxr0=; b=0w0jjpO4fdNODtpHiNha+HZMbP1zY37miF06vcpSs4Q8y8Fc4dBEpJ7rQqlffiy+hs e2fawZtAwr+MPstTuEwB0s/byHTh7AONQMUADPrXbgHGuqZDG45kXq2F0JnAd9GYNsU7 2o/Tx+NJbt5rB4CdsqLZ2oFmK/iJpA1dDe8EV752GcT0j6GZ19cB4aUkgEbGraw6aYg9 gf4e70noWAYk2896OI0gixYSbKprCBAxYvh/lgtJkt0Hd60jBkWdWmhBomKLWdRY2AQM Qu6pH2Hk/E7ENOeLb1+iPS47d9nFmBG2evFYp00Z150NdLfz4+ZzlQ9uEPjhQdi/1cCH dGEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ogMbMWCbaPKXCxe13GQRtAoEFG/dyH2jH/CrprzGxr0=; b=H8sqXAtuSMLXdd34/z5zKy6X1IXYxInsUwUeECXChr6Gwm5PFL8tMPqkan3FM9tHlA xGVbqotteNEE5zf6c8ngDzy3juj/KHhPpNKqLRrpLeniokHbcy0ApVS4tu2TdU73dfvH ypxk2j8RELgvq4mrijKpQ7epTyQrXl7BAcMnGc2mM9n13U6vi9tvX7Sb4nr4UVlCcN0b K3EDVxgjwAWL/GlduBWFJZEjjhPLLat8zb76cz91pa+O3ya/eIpnxknoULDg6K0xNHit eXX+C6046jVcqZjII+b3840I8m0HB7WXayLdGSOgVEYPPEfyaNXyfBwccFY7x5V016PE m8Cg== X-Gm-Message-State: AJcUukeDBTwHUev2E346rC492wpju4a2qhQeBG1yzKfeY95pQtXMErUC e9Z/EqwbSDbD6OXyoUlJ1BaWDA== X-Received: by 2002:a0c:c138:: with SMTP id f53mr28955133qvh.225.1548862351152; Wed, 30 Jan 2019 07:32:31 -0800 (PST) Received: from skullcanyon ([192.222.193.21]) by smtp.gmail.com with ESMTPSA id t40sm1367912qth.46.2019.01.30.07.32.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 07:32:30 -0800 (PST) Message-ID: <57419418d377f32d0e6978f4e4171c0da7357cbb.camel@ndufresne.ca> Subject: Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API From: Nicolas Dufresne To: Tomasz Figa Cc: Stanimir Varbanov , Linux Media Mailing List , Mauro Carvalho Chehab , Hans Verkuil , Linux Kernel Mailing List , linux-arm-msm , Vikash Garodia , Alexandre Courbot , Malathi Gottam , Philipp Zabel Date: Wed, 30 Jan 2019 10:32:28 -0500 In-Reply-To: References: <20190117162008.25217-1-stanimir.varbanov@linaro.org> <20190117162008.25217-11-stanimir.varbanov@linaro.org> <28069a44-b188-6b89-2687-542fa762c00e@linaro.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.4 (3.30.4-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mercredi 30 janvier 2019 à 15:17 +0900, Tomasz Figa a écrit : > > I don't remember saying that, maybe I meant to say there might be a > > workaround ? > > > > For the fact, here we queue the headers (or first frame): > > > > https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/blob/master/sys/v4l2/gstv4l2videodec.c#L624 > > > > Then few line below this helper does G_FMT internally: > > > > https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/blob/master/sys/v4l2/gstv4l2videodec.c#L634 > > https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/blob/master/sys/v4l2/gstv4l2object.c#L3907 > > > > And just plainly fails if G_FMT returns an error of any type. This was > > how Kamil designed it initially for MFC driver. There was no other > > alternative back then (no EAGAIN yet either). > > Hmm, was that ffmpeg then? > > So would it just set the OUTPUT width and height to 0? Does it mean > that gstreamer doesn't work with coda and mtk-vcodec, which don't have > such wait in their g_fmt implementations? I don't know for MTK, I don't have the hardware and didn't integrate their vendor pixel format. For the CODA, I know it works, if there is no wait in the G_FMT, then I suppose we are being really lucky with the timing (it would be that the drivers process the SPS/PPS synchronously, and a simple lock in the G_FMT call is enough to wait). Adding Philipp in CC, he could explain how this works, I know they use GStreamer in production, and he would have fixed GStreamer already if that was causing important issue. Nicolas