Skip to contentSkip to conversation

Add video codec recipes

PATCH New Randy Li 1 participant 4 messages May 29, 2017 Arm Rockchip

lore
Share & tools
lore

Randy Li

author
#0 lore raw

v4 cover Add video codec recipes

Those packages are the userspace libraries for the Rockchip Android video codec driver.

Also a minimal image used for verified the media framework is included.

changelog
v4:
1. fixup the author name
2. rename the rockchip-vpu to rockchip-mpp-vpu
v3:
1. update a few packages
2. remove some unused build rules
v2:
1. update a few packages
v1:
1. The first version

Randy Li (3):
recipes-multimedia: add Rockchip MPP library
recipes-multimedia: add gstreamer rockchip support
recipes-multimedia: images: add rockchip media image

 .../gstreamer/gstreamer1.0-rockchip.inc            | 32 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-rockchip_20170516.bb    |  9 ++++++
 .../gstreamer/gstreamer1.0-rockchip_git.bb         | 13 +++++++++
 recipes-multimedia/images/rockchip-media-image.bb  | 21 ++++++++++++++
 recipes-multimedia/rockchip-mpp/rockchip-mpp.inc   | 21 ++++++++++++++
 .../rockchip-mpp/rockchip-mpp_20170412.bb          |  9 ++++++
 .../rockchip-mpp/rockchip-mpp_git.bb               | 16 +++++++++++
 7 files changed, 121 insertions(+)
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip.inc
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip_20170516.bb
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip_git.bb
 create mode 100644 recipes-multimedia/images/rockchip-media-image.bb
 create mode 100644 recipes-multimedia/rockchip-mpp/rockchip-mpp.inc
 create mode 100644 recipes-multimedia/rockchip-mpp/rockchip-mpp_20170412.bb
 create mode 100644 recipes-multimedia/rockchip-mpp/rockchip-mpp_git.bb
Signature · 1 line
2.9.4
author
#1 lore raw

PATCH v4 1/3 recipes-multimedia: add Rockchip MPP library

MPP means Media Process Platform. The MPP is a middleware for the other video encoder/decoder interface, translating the video information into the hardware registers.

---
 recipes-multimedia/rockchip-mpp/rockchip-mpp.inc    | 21 +++++++++++++++++++++
 .../rockchip-mpp/rockchip-mpp_20170412.bb           |  9 +++++++++
 recipes-multimedia/rockchip-mpp/rockchip-mpp_git.bb | 16 ++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 recipes-multimedia/rockchip-mpp/rockchip-mpp.inc
 create mode 100644 recipes-multimedia/rockchip-mpp/rockchip-mpp_20170412.bb
 create mode 100644 recipes-multimedia/rockchip-mpp/rockchip-mpp_git.bb
recipes-multimedia/rockchip-mpp/rockchip-mpp.inc new file +21 -0
new file mode 100644
index 0000000..77d2ce9
@@ -0,0 +1,21 @@
+# Copyright (C) 2016 - 2017 Randy Li <[email protected]>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://inc/rk_mpi.h;beginline=4;endline=14;md5=acbba394ae5639b0c786f60c1f48e3d6"
+
+inherit pkgconfig cmake
+
+EXTRA_OECMAKE = "     \
+    -DRKPLATFORM=ON   \
+    -DHAVE_DRM=ON     \
+"
+
+PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN} ${PN}-vpu"
+FILES_${PN}-vpu = "${libdir}/lib*vpu${SOLIBS}"
+FILES_${PN} = "${libdir}/lib*mpp${SOLIBS}"
+FILES_${PN}-dev = "${libdir}/lib*${SOLIBSDEV} ${includedir} ${libdir}/pkgconfig"
+SECTION_${PN}-dev = "devel"
+FILES_${PN}-staticdev = "${libdir}/*.a"
+SECTION_${PN}-staticdev = "devel"
recipes-multimedia/rockchip-mpp/rockchip-mpp_20170412.bb new file +9 -0
new file mode 100644
index 0000000..501306a
@@ -0,0 +1,9 @@
+# Copyright (C) 2016 - 2017 Randy Li <[email protected]>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+include rockchip-mpp.inc
+
+TAG = "release_${PV}"
+SRC_URI = "git://github.com/rockchip-linux/mpp.git;tag=${TAG};nobranch=1"
+
+S = "${WORKDIR}/git"
recipes-multimedia/rockchip-mpp/rockchip-mpp_git.bb new file +16 -0
new file mode 100644
index 0000000..23f3f15
@@ -0,0 +1,16 @@
+# Copyright (C) 2016 - 2017 Randy Li <[email protected]>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+
+DEFAULT_PREFERENCE = "-1"
+
+include rockchip-mpp.inc
+DEPENDS = "git-replacement-native"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+FILESPATH_prepend := "${THISDIR}/${PN}:"
+
+SRCREV = "${AUTOREV}"
+SRC_URI = "git://github.com/rockchip-linux/mpp.git;branch=develop"
+
+S = "${WORKDIR}/git"
Signature · 1 line
2.9.4
author
#2 lore raw

PATCH v4 2/3 recipes-multimedia: add gstreamer rockchip support

In reply to Randy Li

This Gstreamer plugin provides a encoder and decoder plugin for Gstreamer through the Rockchip MPP library.

---
 .../gstreamer/gstreamer1.0-rockchip.inc            | 32 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-rockchip_20170516.bb    |  9 ++++++
 .../gstreamer/gstreamer1.0-rockchip_git.bb         | 13 +++++++++
 3 files changed, 54 insertions(+)
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip.inc
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip_20170516.bb
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip_git.bb
recipes-multimedia/gstreamer/gstreamer1.0-rockchip.inc new file +32 -0
new file mode 100644
index 0000000..fd8fc98
@@ -0,0 +1,32 @@
+# Copyright (C) 2016 - 2017 Randy Li <[email protected]>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+
+require recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
+
+DESCRIPTION = "GStreamer 1.0 plugins for Rockchip platforms"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6d1e4aa87f6192354d3de840cf774d93"
+DEPENDS += "gstreamer1.0-plugins-base"
+
+inherit gettext autotools pkgconfig
+
+PACKAGECONFIG ??= " \
+    mpp             \
+"
+PACKAGECONFIG[mpp]    = "--enable-rockchipmpp,--disable-rockchipmpp,rockchip-mpp"
+PACKAGECONFIG[vpudec] = "--enable-vpudec,--disable-vpudec,rockchip-vpu"
+PACKAGECONFIG[drm]    = "--enable-drmrockchip,--disable-drmrockchip,libdrm-rockchip"
+
+EXTRA_OECONF += "    \
+    --disable-kms    \
+"
+EXTRA_OECONF_remove = "--disable-gtk-doc"
+
+do_configure[prefuncs] = " delete_pkg_m4_file"
+
+do_configure() {
+    NOCONFIGURE=true ${S}/autogen.sh
+    oe_runconf
+}
recipes-multimedia/gstreamer/gstreamer1.0-rockchip_20170516.bb new file +9 -0
new file mode 100644
index 0000000..e3fecaf
@@ -0,0 +1,9 @@
+# Copyright (C) 2016 - 2017 Randy Li <[email protected]>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+include gstreamer1.0-rockchip.inc
+
+TAG = "release_${PV}"
+SRC_URI = "git://github.com/rockchip-linux/gstreamer-rockchip.git;tag=${TAG};nobranch=1"
+
+S = "${WORKDIR}/git"
recipes-multimedia/gstreamer/gstreamer1.0-rockchip_git.bb new file +13 -0
new file mode 100644
index 0000000..bd20121
@@ -0,0 +1,13 @@
+# Copyright (C) 2016 - 2017 Randy Li <[email protected]>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+
+DEFAULT_PREFERENCE = "-1"
+
+include gstreamer1.0-rockchip.inc
+
+SRCBRANCH ?= "develop"
+SRCREV = "${AUTOREV}"
+SRC_URI = "git://github.com/rockchip-linux/gstreamer-rockchip.git;branch=develop"
+
+S = "${WORKDIR}/git"
Signature · 1 line
2.9.4
author
#3 lore raw

PATCH v4 3/3 recipes-multimedia: images: add rockchip media image

In reply to Randy Li

A image for debugging the hardware video encoder/decoder. I also use this image for developing the Gstreamer.

---
 recipes-multimedia/images/rockchip-media-image.bb | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 recipes-multimedia/images/rockchip-media-image.bb
recipes-multimedia/images/rockchip-media-image.bb new file +21 -0
new file mode 100644
index 0000000..ea993c1
@@ -0,0 +1,21 @@
+# Copyright (C) 2017 Randy Li <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+include recipes-core/images/core-image-minimal.bb
+
+LICENSE = "MIT"
+DESCRIPTION = "Multimedia image for Rockchip devices."
+
+IMAGE_FEATURES_append = " package-management ssh-server-dropbear"
+IMAGE_INSTALL_append = " gdbserver gstreamer1.0-rockchip      \
+ gstreamer1.0-meta-base gstreamer1.0-meta-video gstreamer1.0-meta-audio \
+ gstreamer1.0-plugins-good-isomp4 gstreamer1.0-plugins-good-multifile \
+ gstreamer1.0-plugins-good-imagefreeze \
+ gstreamer1.0-plugins-bad-autoconvert  gstreamer1.0-plugins-bad-camerabin2 \
+ gstreamer1.0-plugins-bad-kmssink gstreamer1.0-plugins-bad-rawparse \
+ gstreamer1.0-plugins-bad-videoparsersbad \
+ gstreamer1.0-plugins-bad-mpegtsdemux \
+ gstreamer1.0-meta-debug \
+"
+
+TOOLCHAIN_HOST_TASK += "nativesdk-cmake"
Signature · 1 line
2.9.4