4cf0377617
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)
70 lines
2.3 KiB
Diff
70 lines
2.3 KiB
Diff
diff --git a/config/meson.build b/config/meson.build
|
|
index 1068c6d..7f8abe9 100755
|
|
--- a/config/meson.build
|
|
+++ b/config/meson.build
|
|
@@ -6,6 +6,8 @@ elif omx_target == 'zynqultrascaleplus'
|
|
sub = 'zynqultrascaleplus'
|
|
elif omx_target == 'tizonia'
|
|
sub = 'tizonia'
|
|
+ elif omx_target == 'stf'
|
|
+ sub = 'stf'
|
|
else
|
|
# No config file defined for the 'generic' target
|
|
sub = ''
|
|
diff --git a/config/stf/gstomx.conf b/config/stf/gstomx.conf
|
|
new file mode 100644
|
|
index 0000000..b4cdebb
|
|
--- /dev/null
|
|
+++ b/config/stf/gstomx.conf
|
|
@@ -0,0 +1,17 @@
|
|
+[omxh265dec]
|
|
+type-name=GstOMXH265Dec
|
|
+core-name=/usr/lib/libsf-omx-il.so
|
|
+component-name=sf.dec.decoder.h265
|
|
+in-port-index=0
|
|
+out-port-index=1
|
|
+rank=0
|
|
+hacks=pass-profile-to-decoder;pass-color-format-to-decoder;ensure-buffer-count-actual
|
|
+
|
|
+[omxh264dec]
|
|
+type-name=GstOMXH264Dec
|
|
+core-name=/usr/lib/libsf-omx-il.so
|
|
+component-name=sf.dec.decoder.h264
|
|
+in-port-index=0
|
|
+out-port-index=1
|
|
+rank=1
|
|
+hacks=pass-profile-to-decoder;pass-color-format-to-decoder;ensure-buffer-count-actual
|
|
diff --git a/config/stf/meson.build b/config/stf/meson.build
|
|
new file mode 100644
|
|
index 0000000..dc99c08
|
|
--- /dev/null
|
|
+++ b/config/stf/meson.build
|
|
@@ -0,0 +1 @@
|
|
+install_data (['gstomx.conf'], install_dir : omx_conf_dir)
|
|
diff --git a/meson.build b/meson.build
|
|
index 32c7fa7..aeda56a 100755
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -216,6 +216,8 @@ elif omx_target == 'tizonia'
|
|
tizil_includedir = tizil_dep.get_pkgconfig_variable('includedir')
|
|
gst_omx_args += ['-I' + tizil_includedir + '/tizonia']
|
|
omx_inc = []
|
|
+elif omx_target == 'stf'
|
|
+ warning('stf selected')
|
|
else
|
|
error ('Unsupported omx target specified. Use the -Dtarget option')
|
|
endif
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
|
index e18beb2..4fc6139 100755
|
|
--- a/meson_options.txt
|
|
+++ b/meson_options.txt
|
|
@@ -1,7 +1,7 @@
|
|
option('header_path', type : 'string', value : '',
|
|
description : 'An extra include directory to find the OpenMax headers')
|
|
option('target', type : 'combo',
|
|
- choices : ['none', 'generic', 'rpi', 'bellagio', 'tizonia', 'zynqultrascaleplus'], value : 'none',
|
|
+ choices : ['none', 'generic', 'rpi', 'bellagio', 'tizonia', 'zynqultrascaleplus', 'stf'], value : 'none',
|
|
description : 'The OMX platform to target')
|
|
option('struct_packing', type : 'combo',
|
|
choices : ['0', '1', '2', '4', '8'], value : '0',
|