Skip to content

Commit

Permalink
gst-omx: Attempt at using realtek libraries with khronos headers
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Feb 1, 2023
1 parent bd1209e commit 6d7a020
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cross/gst-omx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ LICENSE = LGPLv2.1

CONFIGURE_ARGS += -Ddoc=disabled
CONFIGURE_ARGS += -Dexamples=disabled
CONFIGURE_ARGS += -Dheader_path=$(WORK_DIR)/$(PKG_DIR)/omx/openmax
CONFIGURE_ARGS += -Dheader_path=$(STAGING_INSTALL_PREFIX)/include/omx/khronos
CONFIGURE_ARGS += -Dtarget=generic

# Link in to realtek librarie
# Link in to realtek libraries
ADDITIONAL_LDFLAGS = -Wl,--rpath-link,$(STAGING_INSTALL_PREFIX)/lib/realtek -Wl,--rpath,$(INSTALL_PREFIX)/lib/realtek

POST_EXTRACT_TARGET = gst-omx_post_extract

include ../../mk/spksrc.cross-meson.mk

.PHONY: gst-omx_post_extract
gst-omx_post_extract:
mkdir $(WORK_DIR)/$(PKG_DIR)/config/realtek
cp $(STAGING_INSTALL_PREFIX)/etc/gstomx.conf $(WORK_DIR)/$(PKG_DIR)/config/realtek
echo "install_data (['gstomx.conf'], install_dir : omx_conf_dir)" > $(WORK_DIR)/$(PKG_DIR)/config/realtek/meson.build
30 changes: 30 additions & 0 deletions cross/gst-omx/patches/001-disable-h265enc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff -uprN ../gst-omx-1.20.3.orig/omx/gstomx.c ./omx/gstomx.c
--- ../gst-omx-1.20.3.orig/omx/gstomx.c 2022-06-15 22:36:22.000000000 +0000
+++ ./omx/gstomx.c 2023-02-01 01:35:38.186835742 +0000
@@ -3531,7 +3531,7 @@ static const GGetTypeFunction types[] =
, gst_omx_theora_dec_get_type
#endif
#ifdef HAVE_HEVC
- , gst_omx_h265_enc_get_type, gst_omx_h265_dec_get_type
+ , gst_omx_h265_dec_get_type
#endif
};

diff -uprN ../gst-omx-1.20.3.orig/omx/meson.build ./omx/meson.build
--- ../gst-omx-1.20.3.orig/omx/meson.build 2022-06-15 22:36:22.000000000 +0000
+++ ./omx/meson.build 2023-02-01 01:35:09.434496828 +0000
@@ -39,7 +39,6 @@ endif

if have_omx_hevc
omx_sources += 'gstomxh265utils.c'
- omx_sources += 'gstomxh265enc.c'
omx_sources += 'gstomxh265dec.c'
endif

@@ -60,4 +59,4 @@ gstomx = library('gstomx',
install_dir : plugins_install_dir,
)

-plugins = [gstomx]
\ No newline at end of file
+plugins = [gstomx]

0 comments on commit 6d7a020

Please sign in to comment.