Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1865716ima; Sun, 21 Oct 2018 23:14:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5dXg5pGiTut0oSB/mn/KAxlgox12Z5BpzPGB0PxA/mZtq3SU+gIwbuJZcN4yS8YMN/IBDnr X-Received: by 2002:a17:902:ab:: with SMTP id a40-v6mr3899257pla.296.1540188867493; Sun, 21 Oct 2018 23:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540188867; cv=none; d=google.com; s=arc-20160816; b=qddVArgdNeK94eeoEQbNrewLuRemBsYabSTV0oCQrK5eNNdqmXs6oWfsFhAzlLXqtk RZ6Z/Wm2X78IQmY/1oOI6ompbXOszVeGCmi75jcHE+B+uANy/sg27rg+Mc8rNwvEpRRG qCi+xblS6gKetp+PhbrkgqFIPhutFRPx0QUpS73Kh0xVABZtHzCuZrYnBrv8GancxVKB kK/t9uuv3DA/WaCvwCwcOlBrcJcUpOsjJ2829sp57ES0I2BhrBKMXGdwyEK6hSqU1qs/ 5KVJvdvmhgFEYdLOGMGuHMCmegsCVmgOzLepxUdgzr5URopNZ/SPYxeSwp0MS5KmFwQS QOiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TdZqYtfO2uNg3Rpzca+BzwU37rN472GnIztkPMEBTyo=; b=URSr5iWvtt0c6N54jgrHK0m8O5+N43fdMZx1j4AXFsKzlMnBURGqF5/laQQHc8UMag Cm4U0f75rZPn1HfhKvT1eoQ6x9Ag4M+P0ofx+U9mVrLbdyU8XFGaO2M00axHUGppKIKV DSb+xyg+MOrbD9ttfcgh47jPRLpwsvP3xaA/q3cADQbQx0ObmmR6e1xusPDEAr6QWV5q 6T421tZvC0evSzZbV2+Hp0l8xps+55vtSIrUkmPqjP8r9/qi+x2EbX2Pt5G2u6ASd4Ib hHPqJhp9ZHvWyGbHV5H+4JTvechOnfFxzZo5zL0vbbzeKXRC/yd2nbrVyZhegMC59prD CX5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FnwZNttj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8-v6si31566124plt.434.2018.10.21.23.14.12; Sun, 21 Oct 2018 23:14:27 -0700 (PDT) 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=@chromium.org header.s=google header.b=FnwZNttj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727610AbeJVO3Z (ORCPT + 99 others); Mon, 22 Oct 2018 10:29:25 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:45284 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbeJVO3Z (ORCPT ); Mon, 22 Oct 2018 10:29:25 -0400 Received: by mail-oi1-f195.google.com with SMTP id e17-v6so31248126oig.12 for ; Sun, 21 Oct 2018 23:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TdZqYtfO2uNg3Rpzca+BzwU37rN472GnIztkPMEBTyo=; b=FnwZNttjsQo2v60pVZaYZ/qEaxOTHibETGeKViRcG3Z7CmpSN9u6kCBzOZhQ9uViBM C9FyKj6yruuwQ+vtRWZNTt8BwKcnXC8hSRlubN0U2gqMSCKAT8KP6ZbzQFev6j7wPUFY Dhd9FdXySQ37PTAtcG5ac8fkb2fwIyWLKYTB4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TdZqYtfO2uNg3Rpzca+BzwU37rN472GnIztkPMEBTyo=; b=jN/xjpwvx8LvrGEZNfVLUDb0YOf9XKBC5EV+0nHjytQ2c0bMpmdk5F8ZAQHVc7V4kg 9TVdJnZDvJaZ3uQFMsn9iM/ecS9pd/mLI7kj/vtdJLT211JGo8VBewmxcH0kkpyKLOld At5M9+NASCuw2UkJYjin9rTpr29deRIAO6F+dt17gmC62qylpGXVUuOmbcgxV/MtxSi4 5o5nFI9ui3CP9sF24BxWBhI7rJDFRDH4ai/4ihv+LmvxCFs4U8H5omHuIb8BwUNldrS0 bmAIOtcQZppoCdirMNZSvGFY62K2d1cVQmT85TgIJrMNc+OMlTwOLyEJzbyMLtumhUHE q8LA== X-Gm-Message-State: ABuFfog8uTSeJ+UKZlgyOtGEYecPagKbszIQ+nMzDdAYPJ1ksQV9FnCv mD2oWCQuh2Wwq+MMggAXxF5JtEPBUie0TOT0 X-Received: by 2002:aca:3083:: with SMTP id w125-v6mr24595225oiw.67.1540188738875; Sun, 21 Oct 2018 23:12:18 -0700 (PDT) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com. [209.85.210.48]) by smtp.gmail.com with ESMTPSA id l56sm10935156otb.65.2018.10.21.23.12.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 23:12:18 -0700 (PDT) Received: by mail-ot1-f48.google.com with SMTP id l1so38834604otj.5 for ; Sun, 21 Oct 2018 23:12:17 -0700 (PDT) X-Received: by 2002:a9d:5b6:: with SMTP id 51mr27258007otd.221.1540188737699; Sun, 21 Oct 2018 23:12:17 -0700 (PDT) MIME-Version: 1.0 References: <1539071530-1441-1-git-send-email-mgottam@codeaurora.org> In-Reply-To: <1539071530-1441-1-git-send-email-mgottam@codeaurora.org> From: Alexandre Courbot Date: Mon, 22 Oct 2018 15:12:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] media: venus: amend buffer size for bitstream plane To: mgottam@codeaurora.org Cc: Stanimir Varbanov , Hans Verkuil , Mauro Carvalho Chehab , Linux Media Mailing List , LKML , linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 9, 2018 at 4:52 PM Malathi Gottam wrote: > > For lower resolutions, incase of encoder, the compressed > frame size is more than half of the corresponding input > YUV. Keep the size as same as YUV considering worst case. > > Signed-off-by: Malathi Gottam This fixes some issues we had with low-resolution VP8 encoding. Maybe this can be refined some more for higher resolutions, but the current version at least works. Tested-by: Alexandre Courbot > --- > drivers/media/platform/qcom/venus/helpers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c > index 2679adb..05c5423 100644 > --- a/drivers/media/platform/qcom/venus/helpers.c > +++ b/drivers/media/platform/qcom/venus/helpers.c > @@ -649,7 +649,7 @@ u32 venus_helper_get_framesz(u32 v4l2_fmt, u32 width, u32 height) > } > > if (compressed) { > - sz = ALIGN(height, 32) * ALIGN(width, 32) * 3 / 2 / 2; > + sz = ALIGN(height, 32) * ALIGN(width, 32) * 3 / 2; > return ALIGN(sz, SZ_4K); > } > > -- > 1.9.1 >