From patchwork Tue Aug 20 12:56:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CCDCC3DA4A for ; Tue, 20 Aug 2024 12:56:51 +0000 (UTC) Received: from smtp-bc0f.mail.infomaniak.ch (smtp-bc0f.mail.infomaniak.ch [45.157.188.15]) by mx.groups.io with SMTP id smtpd.web11.18663.1724158610421466717 for ; Tue, 20 Aug 2024 05:56:51 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 45.157.188.15, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cK11Bkzlv9; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cJ6Ck6ztBM; Tue, 20 Aug 2024 14:56:48 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:26 +0200 Subject: [meta-rockchip PATCH 3/9] rk3399: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-3-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:56:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/526 From: Quentin Schulz RK3399 has a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was tested with weston on an RK3399 Puma with Haikou: $ gst-launch-1.0 filesrc location=$FILE ! parsebin ! v4l2slh264dec ! waylandsink with FILE storing the path to any h264 file, e.g. https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov https://download.blender.org/demo/movies/BBB/bbb_sunflower_2160p_30fps_normal.mp4.zip Needed packages are: - weston - gstreamer1.0-plugins-bad (for waylandsink and v4l2codecs) - gstreamer1.0-plugins-base (for parsebin) CPU load was ~1-3% according to top for the files above. Signed-off-by: Quentin Schulz --- conf/machine/include/rk3399.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/rk3399.inc b/conf/machine/include/rk3399.inc index 47f0560..8650d0a 100644 --- a/conf/machine/include/rk3399.inc +++ b/conf/machine/include/rk3399.inc @@ -20,3 +20,5 @@ TFA_BUILD_TARGET = "bl31" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000" + +HAS_HANTRO = "1"