Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp393146imm; Thu, 31 May 2018 02:21:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIluO2dnZm00eeIzXiqM7iDgfz7Xso9xYRQ0AlBMuxxNvP0jXIKOXzeTfJBTUycWD3UU+sw X-Received: by 2002:a17:902:56e:: with SMTP id 101-v6mr6290634plf.25.1527758470475; Thu, 31 May 2018 02:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527758470; cv=none; d=google.com; s=arc-20160816; b=YunC+3UGfy5tQuWsDW3I7im2J9XPGKLqKd3/dTIi8e+NFCu/gEsD8QI+L7l+JDHYhK n6cgQUA87ecDDWYxrle3To3TauSwzYf4KmcjTWB9adxErQH280sDTefyakOzuUrAxUWv To1PULHj0PPBJjx6xK/BDFq+8riEkOYtabGjZwbFMO7VdZLpPZNLfJYQappOSZ4nmy28 ykK+tpOivWEfAsivtG04Cr3lzoOdO13wfFScnUz6eRsXyskImu3oJ4zfadZKI2W+9jZD 7YtF4+4hL8Dl/80d4iYgIw/fzkTCnTFGZVkCXlRkSR0pIfXSmrIlv1pTbWMpTOKw1BjP sx7w== 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 :arc-authentication-results; bh=YnCbXqGrYjI5Z9aRaO4Lrwyz5oSbHRm8zqckMPzVcM0=; b=ebMPxgJ5C6f+hNa1hHbJCawPivut5HIK+pgTKou4DELFpPeJXxzc0OSWW4Uo0CSBQS tbRW5KMAgpD2JoF+xmJvi4wDr3FKiprRR9twQC7soxUbgOC5geqU9qkp0ZO0IQNQxV4R 0PAZTrEJueq+rmcyfSg7b2KoXlV+2eUa3QaOq/DjwEJrDdw0sOt+kTdHiQixdFoMJcFC gkSosmeGyKF0WU/oZFxsjEqqqnWQLacwjiXwOB87oDzZJW7/EB13yHTNQ3v6Dzlmx0+J T9h0pnnNJ6s2VIxLTB31Y1gAX0tP9eYmfmKqMFB1eWQ/54QiLjjLp398YcL6PXZj3q4A xyag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WkgzsuaU; 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 q4-v6si36103473plb.312.2018.05.31.02.20.56; Thu, 31 May 2018 02:21:10 -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=WkgzsuaU; 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 S1754243AbeEaJUV (ORCPT + 99 others); Thu, 31 May 2018 05:20:21 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:41974 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbeEaJUT (ORCPT ); Thu, 31 May 2018 05:20:19 -0400 Received: by mail-ua0-f195.google.com with SMTP id a3-v6so14539240uad.8 for ; Thu, 31 May 2018 02:20:18 -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=YnCbXqGrYjI5Z9aRaO4Lrwyz5oSbHRm8zqckMPzVcM0=; b=WkgzsuaUQnbpUBoOi3Heo2Vcq6Kh3XhGQsAASTNvVXAq/JH0U+GX5tMt1jjd7saSmY jmmEJFCB0+9jYXKwpFnBnki6NFcdy/Neu64IKIeL7R/yabodoxvjiKhVwIkJ0NDvl5S2 cXthCHMpPujGyg0qUx54sUkSeTopYInwZfuec= 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=YnCbXqGrYjI5Z9aRaO4Lrwyz5oSbHRm8zqckMPzVcM0=; b=GKC94ZGhyty5gwVSI+vLcFnIrCJA7/n+CQLqzsiKDHjXqNabWVT8zQvvmoGg6208WV z5p6gUSyTyaKOHQiz9N5CcpK0HhXkESEwn4mqNpVXAWxa40IbwhEHVASAQmceAIy0FnD GIHoQjZGv7ocp84FJavT8CLpRUlwkbYGXM2+ZdeCzRF0jlxgqMT1hJ51SJg/xPdhVRni zgXPticqXnZwhbZALADxMuKoEXjoxVrSo32rJOuBGXYuFjHkDXTLi45XvdwNzqTmiIJr 9kMt68mypIUSUiDQC5pP0+rPAPBmyqDLVbC2to2YlNuXZ+Xd9rYreh+m7g47C7nMCq+6 p/pw== X-Gm-Message-State: ALKqPwco3rCwuQn1BHX/F+WOCDvYJc7C507DQFw1oCZ4tcZ2ucWsGI/x bwjF4r7/VrDR/nxID7rbwtbW2hjpkb0= X-Received: by 2002:ab0:14a3:: with SMTP id d32-v6mr4060618uae.10.1527758418110; Thu, 31 May 2018 02:20:18 -0700 (PDT) Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com. [209.85.213.43]) by smtp.gmail.com with ESMTPSA id y21-v6sm9925513vkb.48.2018.05.31.02.20.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 02:20:17 -0700 (PDT) Received: by mail-vk0-f43.google.com with SMTP id x66-v6so12914359vka.11 for ; Thu, 31 May 2018 02:20:17 -0700 (PDT) X-Received: by 2002:a1f:394b:: with SMTP id g72-v6mr3772108vka.97.1527758416558; Thu, 31 May 2018 02:20:16 -0700 (PDT) MIME-Version: 1.0 References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> <20180515075859.17217-24-stanimir.varbanov@linaro.org> In-Reply-To: <20180515075859.17217-24-stanimir.varbanov@linaro.org> From: Tomasz Figa Date: Thu, 31 May 2018 18:20:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 23/29] venus: helpers: add a helper to return opb buffer sizes To: Stanimir Varbanov Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , 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, May 15, 2018 at 5:02 PM Stanimir Varbanov wrote: > > Add a helper function to return current output picture buffer size. > OPB sizes can vary depending on the selected decoder output(s). > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/core.h | 10 ++++++++++ > drivers/media/platform/qcom/venus/helpers.c | 15 +++++++++++++++ > drivers/media/platform/qcom/venus/helpers.h | 1 + > 3 files changed, 26 insertions(+) > > diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h > index 255292899204..4d6c05f156c4 100644 > --- a/drivers/media/platform/qcom/venus/core.h > +++ b/drivers/media/platform/qcom/venus/core.h > @@ -234,6 +234,11 @@ struct venus_buffer { > * @num_output_bufs: holds number of output buffers > * @input_buf_size holds input buffer size > * @output_buf_size: holds output buffer size > + * @output2_buf_size: holds secondary decoder output buffer size > + * @dpb_buftype: decoded picture buffer type > + * @dpb_fmt: decodec picture buffre raw format typo: s/decodec/decoded/ and s/buffre/buffer/ > + * @opb_buftype: output picture buffer type > + * @opb_fmt: output picture buffer raw format > * @reconfig: a flag raised by decoder when the stream resolution changed > * @reconfig_width: holds the new width > * @reconfig_height: holds the new height > @@ -282,6 +287,11 @@ struct venus_inst { > unsigned int num_output_bufs; > unsigned int input_buf_size; > unsigned int output_buf_size; > + unsigned int output2_buf_size; > + u32 dpb_buftype; > + u32 dpb_fmt; These 2 don't seem to be used. Best regards, Tomasz