Add Multimedia Feature:

1. add starfive private packages: v4l2_test, pp_test, sf-gst-omx, sf-omx-il, stfisp_setfile, wave511, wave521
  v4l2_test: used to test v4l2 device
  pp_test: used to switch format and resolution for framebuffer framework
  sf-gst-omx: from gst-omx and compatible with the omx-il library
  sf-omx-il: starfive openmax il library for VPU hardware decode
  stfisp_setfile: this is the host build package, used to generate the isp registrer setting bin for v4l2 framework
  wave511: this is chip&media decode hardware wave511 vendor code building
  wave521: this is chip&media encode hardware wave521 vendor code building

2. Add the following gstreamer patch:
  add patch to support gstreamer plugin fbdevsink NV12 format
  add patch to support gst-play take priority to decoding h264/h265 with gst-omx plugin

Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com>
Signed-off-by: andy.hu <andy.hu@starfivetech.com>
Signed-off-by: michael.yan <michael.yan@starfivetech.com>
Signed-off-by: david.li <david.li@starfivetech.com>
Signed-off-by: Curry Zhang <curry.zhang@starfivetech.com>
Signed-off-by: keithzhao <keith.zhao@starfivetech.com>

(cherry picked from http://192.168.110.45/jh7100/buildroot/-/commit/fce6b25d98f81388fa4372739631c49222bf8eea)
This commit is contained in:
sw.multimedia
2021-08-27 16:40:43 +08:00
committed by Andy Hu
parent 725957a92c
commit da79fd844e
8 changed files with 258 additions and 1 deletions
+36
View File
@@ -0,0 +1,36 @@
################################################################################
#
# sf-gst-omx
#
################################################################################
SF_GST_OMX_VERSION = 1.18.5
SF_GST_OMX_SOURCE = gst-omx-$(GST_OMX_VERSION).tar.xz
SF_GST_OMX_SITE = https://gstreamer.freedesktop.org/src/gst-omx
SF_GST_OMX_LICENSE = LGPL-2.1
SF_GST_OMX_LICENSE_FILES = COPYING
SF_GST_OMX_CONF_OPTS = \
-Dexamples=disabled \
-Dtests=disabled \
-Dtools=disabled \
-Ddoc=disabled
SF_GST_OMX_VARIANT = stf
SF_GST_OMX_CONF_OPTS += -Dheader_path=$(STAGING_DIR)/usr/include/omx-il
SF_GST_OMX_CONF_OPTS += -Dtarget=$(SF_GST_OMX_VARIANT)
SF_GST_OMX_DEPENDENCIES = gstreamer1 gst1-plugins-base sf-omx-il
# adjust library paths to where buildroot installs them
define SF_GST_OMX_FIXUP_CONFIG_PATHS
find $(@D)/config -name gstomx.conf | \
xargs $(SED) 's|/usr/local|/usr|g' -e 's|/opt/vc|/usr|g'
endef
SF_GST_OMX_POST_PATCH_HOOKS += SF_GST_OMX_FIXUP_CONFIG_PATHS
$(eval $(meson-package))