Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach via buildroot <buildroot@buildroot.org>
To: "Sébastien Szymanski" <sebastien.szymanski@armadeus.com>
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>,
	"Yann E . MORIN" <yann.morin.1998@free.fr>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 2/3] package/libimxvpuapi2: new package
Date: Wed, 12 Jan 2022 12:31:58 +0200	[thread overview]
Message-ID: <87bl0hw8ek.fsf@tarshish> (raw)
In-Reply-To: <20220112094250.27022-2-sebastien.szymanski@armadeus.com>

Hi Sébastien,

On Wed, Jan 12 2022, Sébastien Szymanski wrote:
> This is version 2 of libimxvpuapi.
> The API has been rewritten, and is incompatible with the older one.
> Currently, the following platforms are supported (listed with their VPUs):
> * i.MX6 (Chips&Media CODA960 codec)
> * i.MX8m (Hantro G1/G2 decoder, no encoder)
> * i.MX8mm (Hantro G1/G2 decoder, Hantro H1 encoder)

Is there patch 1/3 in this series? I didn't show up in the list.

Thanks,
baruch

>
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
> ---
>  package/Config.in                        |  1 +
>  package/libimxvpuapi2/Config.in          | 48 ++++++++++++++++++++++++
>  package/libimxvpuapi2/libimxvpuapi2.hash |  3 ++
>  package/libimxvpuapi2/libimxvpuapi2.mk   | 28 ++++++++++++++
>  4 files changed, 80 insertions(+)
>  create mode 100644 package/libimxvpuapi2/Config.in
>  create mode 100644 package/libimxvpuapi2/libimxvpuapi2.hash
>  create mode 100644 package/libimxvpuapi2/libimxvpuapi2.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 8d844aa11e..009d2006f0 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1763,6 +1763,7 @@ menu "Multimedia"
>  	source "package/libebml/Config.in"
>  	source "package/libhdhomerun/Config.in"
>  	source "package/libimxvpuapi/Config.in"
> +	source "package/libimxvpuapi2/Config.in"
>  	source "package/libmatroska/Config.in"
>  	source "package/libmms/Config.in"
>  	source "package/libmpeg2/Config.in"
> diff --git a/package/libimxvpuapi2/Config.in b/package/libimxvpuapi2/Config.in
> new file mode 100644
> index 0000000000..0954718cc0
> --- /dev/null
> +++ b/package/libimxvpuapi2/Config.in
> @@ -0,0 +1,48 @@
> +comment "libimxvpuapi2 needs an i.MX platform with VPU support and libimxdmabuffer"
> +	depends on BR2_arm || BR2_aarch64
> +	depends on (!BR2_PACKAGE_FREESCALE_IMX_HAS_VPU \
> +		&& !BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO) \
> +		|| !BR2_PACKAGE_LIBIMXDMABUFFER
> +
> +config BR2_PACKAGE_LIBIMXVPUAPI2
> +	bool "libimxvpuapi2"
> +	depends on BR2_arm || BR2_aarch64 # Only relevant for i.MX
> +	depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU || BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
> +	depends on BR2_PACKAGE_LIBIMXDMABUFFER
> +	select BR2_PACKAGE_IMX_VPU if BR2_PACKAGE_FREESCALE_IMX_HAS_VPU
> +	select BR2_PACKAGE_IMX_VPU_HANTRO if BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
> +	help
> +	  This library provides an API for using hardware video codecs
> +	  on i.MX platforms. The API abstracts away platform specific
> +	  details and allows for using the same code with different
> +	  hardware video codecs on different i.MX platforms.
> +
> +	  This is version 2 of libimxvpuapi. The API has been rewritten,
> +	  and is incompatible with the older one.
> +
> +	  https://github.com/Freescale/libimxvpuapi
> +
> +if BR2_PACKAGE_LIBIMXVPUAPI2
> +choice
> +	prompt "Platform"
> +
> +config BR2_PACKAGE_LIBIMXVPUAPI2_IMX6
> +	bool "i.MX6 (Coda)"
> +	depends on BR2_PACKAGE_IMX_VPU
> +
> +config BR2_PACKAGE_LIBIMXVPUAPI2_IMX8M
> +	bool "i.MX8M (Hantro)"
> +	depends on BR2_PACKAGE_IMX_VPU_HANTRO
> +
> +config BR2_PACKAGE_LIBIMXVPUAPI2_IMX8MM
> +	bool "i.MX8MM (Hantro)"
> +	depends on BR2_PACKAGE_IMX_VPU_HANTRO
> +endchoice
> +
> +config BR2_PACKAGE_LIBIMXVPUAPI2_PLATFORM
> +	string
> +	default "imx6" if BR2_PACKAGE_LIBIMXVPUAPI2_IMX6
> +	default "imx8m" if BR2_PACKAGE_LIBIMXVPUAPI2_IMX8M
> +	default "imx8mm" if BR2_PACKAGE_LIBIMXVPUAPI2_IMX8MM
> +
> +endif
> diff --git a/package/libimxvpuapi2/libimxvpuapi2.hash b/package/libimxvpuapi2/libimxvpuapi2.hash
> new file mode 100644
> index 0000000000..d26cf8767b
> --- /dev/null
> +++ b/package/libimxvpuapi2/libimxvpuapi2.hash
> @@ -0,0 +1,3 @@
> +# locally computed hash
> +sha256  611a5176e37e5132d97817e6d6048acf229f67efd2201e3f4aab6f720e7b67d1  libimxvpuapi2-2.2.0.tar.gz
> +sha256  4bb33cc4cd956b56b779b501f18cae46a9e26f8c8500cca86ed758b8bc5e1788  LICENSE
> diff --git a/package/libimxvpuapi2/libimxvpuapi2.mk b/package/libimxvpuapi2/libimxvpuapi2.mk
> new file mode 100644
> index 0000000000..6957171ad3
> --- /dev/null
> +++ b/package/libimxvpuapi2/libimxvpuapi2.mk
> @@ -0,0 +1,28 @@
> +################################################################################
> +#
> +# libimxvpuapi2
> +#
> +################################################################################
> +
> +LIBIMXVPUAPI2_VERSION = 2.2.0
> +LIBIMXVPUAPI2_SITE = $(call github,Freescale,libimxvpuapi,$(LIBIMXVPUAPI2_VERSION))
> +LIBIMXVPUAPI2_LICENSE = LGPL-2.1+
> +LIBIMXVPUAPI2_LICENSE_FILES = LICENSE
> +LIBIMXVPUAPI2_DEPENDENCIES = host-pkgconf host-python3 libimxdmabuffer
> +LIBIMXVPUAPI2_INSTALL_STAGING = YES
> +LIBIMXVPUAPI2_NEEDS_EXTERNAL_WAF = NO
> +
> +ifeq ($(BR2_PACKAGE_LIBIMXVPUAPI2_IMX6),y)
> +LIBIMXVPUAPI2_DEPENDENCIES += imx-vpu
> +endif
> +
> +ifeq ($(BR2_PACKAGE_LIBIMXVPUAPI2_IMX8M)$(BR2_PACKAGE_LIBIMXVPUAPI2_IMX8MM),y)
> +LIBIMXVPUAPI2_DEPENDENCIES += imx-vpu-hantro
> +endif
> +
> +LIBIMXVPUAPI2_CONF_OPTS += \
> +	--imx-headers=$(STAGING_DIR)/usr/include/ \
> +	--sysroot-path=$(STAGING_DIR) \
> +	--imx-platform=$(BR2_PACKAGE_LIBIMXVPUAPI2_PLATFORM)
> +
> +$(eval $(waf-package))


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-01-12 10:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12  9:42 [Buildroot] [PATCH 1/3] package/libimxdmabuffer: new package Sébastien Szymanski
2022-01-12  9:42 ` [Buildroot] [PATCH 2/3] package/libimxvpuapi2: " Sébastien Szymanski
2022-01-12 10:31   ` Baruch Siach via buildroot [this message]
2022-01-12 12:53     ` Sébastien Szymanski
2022-07-28  8:36   ` Arnout Vandecappelle
2022-01-12  9:42 ` [Buildroot] [PATCH 3/3] package/gstreamer1/gst1-imx2: " Sébastien Szymanski
2022-01-14 17:44   ` Herve Codina
2022-01-17  9:37     ` Sébastien Szymanski
2022-07-28 19:51   ` Arnout Vandecappelle
2022-08-08 14:14     ` Sébastien Szymanski
2022-08-08 20:36       ` Arnout Vandecappelle
2022-08-09 12:50         ` Sébastien Szymanski
2022-07-28  8:23 ` [Buildroot] [PATCH 1/3] package/libimxdmabuffer: " Arnout Vandecappelle
2022-08-08 13:56   ` Sébastien Szymanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bl0hw8ek.fsf@tarshish \
    --to=buildroot@buildroot.org \
    --cc=baruch@tkos.co.il \
    --cc=eric.le.bihan.dev@free.fr \
    --cc=sebastien.szymanski@armadeus.com \
    --cc=yann.morin.1998@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox