Message ID | 20220706182657.210650-1-ezequiel@vanguardiasur.com.ar (mailing list archive) |
---|---|
Headers |
Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from <linux-media-owner@vger.kernel.org>) id 1o99k0-00HMCp-35; Wed, 06 Jul 2022 18:27:12 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233998AbiGFS1J (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Wed, 6 Jul 2022 14:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233897AbiGFS1I (ORCPT <rfc822;linux-media@vger.kernel.org>); Wed, 6 Jul 2022 14:27:08 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 776CF1155 for <linux-media@vger.kernel.org>; Wed, 6 Jul 2022 11:27:06 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id j6so16000832vsi.0 for <linux-media@vger.kernel.org>; Wed, 06 Jul 2022 11:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uCuvC3KKARgxwjZu+UWwv64ohDgzISxggCsLmmOKaJg=; b=CW026Qhnh/Fg/pcdz5SXChnvNjXWW9GEWSXnDFiIJ2KUVgt7Yc+3C8zyJ/fesnlZWs 017Hyvi4L1ztyiqEG8QcTM/wCugeYn2jQHMZ882tSMwEeGudbwf7z13Xxwl3GwAg4Ofo stDgBo1K/Du4YZE80dzrdtXICRcNHZ7so8fKLe6YcCZ1GqqMMNeldsa4mj0AIWvr3WPz KfC8sGr/E5Gy/BguKD3Cnvg5+bRau7Q69HVynuyobysZx70HRjyzl3I5mDYgfId1QZgf u+I+GTpiGI05bfIfFecM1o1mBr40PVSaD4LR/H5PyGUUytI4ZLyLnjiTRYuV5oXpkLc6 7ivg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uCuvC3KKARgxwjZu+UWwv64ohDgzISxggCsLmmOKaJg=; b=UEUo1ZySmaP1lr/iRXoEMz/LGv8p2x2Boxwt9aZLhULMwepspMEpVIAE3wuT4UlbhX dvbBgLBAVa597pa+REy8pdi1EwtUqge2yt9YRQffyiAHDgw8od5qF/aqh0FWOFLVGxsg LgvqjlRuQF+3IS/63vsNajaDt2UV0U/Ezqn+VQpvbjoKJZUFiJS61s/RY+LdA0bjfUWR 5lgCzkMUus8AJPwdlMiyVS6VjNPfmWJu46de/mtj45Ns7gOFsvXcqvywwCkT3I02y9i7 ygNsTmlbeMnI+OoecpIk0KRopR8wCiC/NM7SC/ZmXMRQNWJ1dqotsUDOTUuL9LXgkdhi fQaw== X-Gm-Message-State: AJIora81KReqntCiCsXbvgXT5HUCJ4JDFpbifBKLKJgdRKyIbob/n7cp 8GOOl4WxhFu0bAUu02QD5NHZm88cx54snEL0 X-Google-Smtp-Source: AGRyM1s7Nq2UFcr8QMUWBH5PneMXg23yKHFlH21Yzq/ZtPRc3+93wCZfXf/5BjDupWoP35R+BA1gUw== X-Received: by 2002:a67:ba09:0:b0:354:5d45:67ed with SMTP id l9-20020a67ba09000000b003545d4567edmr23472142vsn.18.1657132025124; Wed, 06 Jul 2022 11:27:05 -0700 (PDT) Received: from zeta-build.. ([190.190.187.68]) by smtp.gmail.com with ESMTPSA id bl9-20020a056102508900b003563680212asm7445539vsb.27.2022.07.06.11.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 11:27:04 -0700 (PDT) From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>, Tomasz Figa <tfiga@chromium.org>, Marek Szyprowski <m.szyprowski@samsung.com>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Subject: [PATCH 0/8] videobuf2: Replace vb2_find_timestamp() with vb2_find_buffer() Date: Wed, 6 Jul 2022 15:26:49 -0300 Message-Id: <20220706182657.210650-1-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.34.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no |
Series |
videobuf2: Replace vb2_find_timestamp() with vb2_find_buffer()
|
|
Message
Ezequiel Garcia
July 6, 2022, 6:26 p.m. UTC
All users of vb2_find_timestamp() combine it with vb2_get_buffer() to retrieve a videobuf2 buffer, given a u64 timestamp. Therefore, this series removes vb2_find_timestamp() and instead introduces a vb2_find_buffer, which is more suitable, making videobuf2 API slightly cleaner. Ezequiel Garcia (8): videobuf2: Introduce vb2_find_buffer() mediatek: vcodec: Use vb2_find_buffer tegra-vde: Use vb2_find_buffer vicodec: Use vb2_find_buffer hantro: Use vb2_find_buffer rkvdec: Use vb2_find_buffer cedrus: Use vb2_find_buffer videobuf2: Remove vb2_find_timestamp() .../media/common/videobuf2/videobuf2-v4l2.c | 12 ++--- .../vcodec/vdec/vdec_h264_req_common.c | 7 ++- .../mediatek/vcodec/vdec/vdec_vp8_req_if.c | 7 ++- .../vcodec/vdec/vdec_vp9_req_lat_if.c | 8 +-- .../media/platform/nvidia/tegra-vde/h264.c | 9 ++-- .../media/test-drivers/vicodec/vicodec-core.c | 8 +-- drivers/staging/media/hantro/hantro_drv.c | 6 +-- .../staging/media/hantro/hantro_g2_vp9_dec.c | 10 ++-- drivers/staging/media/rkvdec/rkvdec-h264.c | 41 ++++++--------- drivers/staging/media/rkvdec/rkvdec-vp9.c | 10 ++-- drivers/staging/media/sunxi/cedrus/cedrus.h | 13 +---- .../staging/media/sunxi/cedrus/cedrus_h264.c | 16 +++--- .../staging/media/sunxi/cedrus/cedrus_h265.c | 16 +++--- .../staging/media/sunxi/cedrus/cedrus_mpeg2.c | 36 ++++++------- .../staging/media/sunxi/cedrus/cedrus_vp8.c | 50 ++++++------------- include/media/videobuf2-v4l2.h | 12 ++--- 16 files changed, 100 insertions(+), 161 deletions(-)
Comments
Hi Ezequiel, On Thu, Jul 7, 2022 at 3:27 AM Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> wrote: > > All users of vb2_find_timestamp() combine it with vb2_get_buffer() > to retrieve a videobuf2 buffer, given a u64 timestamp. > > Therefore, this series removes vb2_find_timestamp() and instead > introduces a vb2_find_buffer, which is more suitable, making > videobuf2 API slightly cleaner. > > Ezequiel Garcia (8): > videobuf2: Introduce vb2_find_buffer() > mediatek: vcodec: Use vb2_find_buffer > tegra-vde: Use vb2_find_buffer > vicodec: Use vb2_find_buffer > hantro: Use vb2_find_buffer > rkvdec: Use vb2_find_buffer > cedrus: Use vb2_find_buffer > videobuf2: Remove vb2_find_timestamp() > > .../media/common/videobuf2/videobuf2-v4l2.c | 12 ++--- > .../vcodec/vdec/vdec_h264_req_common.c | 7 ++- > .../mediatek/vcodec/vdec/vdec_vp8_req_if.c | 7 ++- > .../vcodec/vdec/vdec_vp9_req_lat_if.c | 8 +-- > .../media/platform/nvidia/tegra-vde/h264.c | 9 ++-- > .../media/test-drivers/vicodec/vicodec-core.c | 8 +-- > drivers/staging/media/hantro/hantro_drv.c | 6 +-- > .../staging/media/hantro/hantro_g2_vp9_dec.c | 10 ++-- > drivers/staging/media/rkvdec/rkvdec-h264.c | 41 ++++++--------- > drivers/staging/media/rkvdec/rkvdec-vp9.c | 10 ++-- > drivers/staging/media/sunxi/cedrus/cedrus.h | 13 +---- > .../staging/media/sunxi/cedrus/cedrus_h264.c | 16 +++--- > .../staging/media/sunxi/cedrus/cedrus_h265.c | 16 +++--- > .../staging/media/sunxi/cedrus/cedrus_mpeg2.c | 36 ++++++------- > .../staging/media/sunxi/cedrus/cedrus_vp8.c | 50 ++++++------------- > include/media/videobuf2-v4l2.h | 12 ++--- > 16 files changed, 100 insertions(+), 161 deletions(-) > > -- > 2.34.3 > Thanks for the series! I think it's a nice cleanup indeed, but please see a few comments in my replies to individual patches. Best regards, Tomasz
On Fri, Jul 8, 2022 at 1:47 PM Tomasz Figa <tfiga@chromium.org> wrote: > > Hi Ezequiel, > > On Thu, Jul 7, 2022 at 3:27 AM Ezequiel Garcia > <ezequiel@vanguardiasur.com.ar> wrote: > > > > All users of vb2_find_timestamp() combine it with vb2_get_buffer() > > to retrieve a videobuf2 buffer, given a u64 timestamp. > > > > Therefore, this series removes vb2_find_timestamp() and instead > > introduces a vb2_find_buffer, which is more suitable, making > > videobuf2 API slightly cleaner. > > > > Ezequiel Garcia (8): > > videobuf2: Introduce vb2_find_buffer() > > mediatek: vcodec: Use vb2_find_buffer > > tegra-vde: Use vb2_find_buffer > > vicodec: Use vb2_find_buffer > > hantro: Use vb2_find_buffer > > rkvdec: Use vb2_find_buffer > > cedrus: Use vb2_find_buffer > > videobuf2: Remove vb2_find_timestamp() > > > > .../media/common/videobuf2/videobuf2-v4l2.c | 12 ++--- > > .../vcodec/vdec/vdec_h264_req_common.c | 7 ++- > > .../mediatek/vcodec/vdec/vdec_vp8_req_if.c | 7 ++- > > .../vcodec/vdec/vdec_vp9_req_lat_if.c | 8 +-- > > .../media/platform/nvidia/tegra-vde/h264.c | 9 ++-- > > .../media/test-drivers/vicodec/vicodec-core.c | 8 +-- > > drivers/staging/media/hantro/hantro_drv.c | 6 +-- > > .../staging/media/hantro/hantro_g2_vp9_dec.c | 10 ++-- > > drivers/staging/media/rkvdec/rkvdec-h264.c | 41 ++++++--------- > > drivers/staging/media/rkvdec/rkvdec-vp9.c | 10 ++-- > > drivers/staging/media/sunxi/cedrus/cedrus.h | 13 +---- > > .../staging/media/sunxi/cedrus/cedrus_h264.c | 16 +++--- > > .../staging/media/sunxi/cedrus/cedrus_h265.c | 16 +++--- > > .../staging/media/sunxi/cedrus/cedrus_mpeg2.c | 36 ++++++------- > > .../staging/media/sunxi/cedrus/cedrus_vp8.c | 50 ++++++------------- > > include/media/videobuf2-v4l2.h | 12 ++--- > > 16 files changed, 100 insertions(+), 161 deletions(-) > > > > -- > > 2.34.3 > > > > Thanks for the series! I think it's a nice cleanup indeed, but please > see a few comments in my replies to individual patches. As we clarified my concern in one of the patches and the other one was purely stylistic, feel free to just add my Acked-by: Tomasz Figa <tfiga@chromium.org> to the entire series. The stylistic one can be ignored if there is no other change needed. Best regards, Tomasz