diff options
author | ToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp> | 2020-03-30 09:24:26 +0900 |
---|---|---|
committer | ToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp> | 2020-03-30 09:24:26 +0900 |
commit | 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch) | |
tree | b4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /bsp/meta-boundary/recipes-boundary/video-input-icon | |
parent | 706ad73eb02caf8532deaf5d38995bd258725cb8 (diff) |
agl-basesystem
Diffstat (limited to 'bsp/meta-boundary/recipes-boundary/video-input-icon')
8 files changed, 102 insertions, 0 deletions
diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/files/COPYING b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/COPYING new file mode 100644 index 00000000..90978d50 --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/COPYING @@ -0,0 +1,12 @@ +Copyright (C) 2015 by Boundary Devices + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/files/OV5640-MIPI-Test.desktop b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/OV5640-MIPI-Test.desktop new file mode 100644 index 00000000..677e9bbc --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/OV5640-MIPI-Test.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=OV5640 MIPI Test +Comment=Launches gst-launch to show ov5640-mipi input on screen. +Exec=/usr/bin/ov5640-mipi-test +Icon=video-player +Terminal=true +Type=Application +StartupNotify=true +Categories=GTK;AudioVideo;Audio;Player; diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/files/OV5642.desktop b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/OV5642.desktop new file mode 100644 index 00000000..947f8b98 --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/OV5642.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=OV5642 Test +Comment=Launches gst-launch to show ov5642 input on screen. +Exec=/usr/bin/ov5642-test +Icon=video-player +Terminal=true +Type=Application +StartupNotify=true +Categories=GTK;AudioVideo;Audio;Player; diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/files/hdmi-input b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/hdmi-input new file mode 100755 index 00000000..f1fc27ea --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/hdmi-input @@ -0,0 +1 @@ +gst-launch-1.0 imxv4l2videosrc device=/dev/video3 ! autovideosink; diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/files/hdmi-input.desktop b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/hdmi-input.desktop new file mode 100644 index 00000000..89ed7565 --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/hdmi-input.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=HDMI Input Test +Comment=Launches gst-launch to show hdmi input on screen. +Exec=/usr/bin/hdmi-input +Icon=video-player +Terminal=true +Type=Application +StartupNotify=true +Categories=GTK;AudioVideo;Audio;Player; diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/files/ov5640-mipi-test b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/ov5640-mipi-test new file mode 100755 index 00000000..d1358fed --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/ov5640-mipi-test @@ -0,0 +1 @@ +gst-launch-1.0 imxv4l2videosrc device=/dev/video1 ! autovideosink; diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/files/ov5642-test b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/ov5642-test new file mode 100755 index 00000000..f9ce12c1 --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/files/ov5642-test @@ -0,0 +1 @@ +gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! autovideosink; diff --git a/bsp/meta-boundary/recipes-boundary/video-input-icon/video-input-icon.bb b/bsp/meta-boundary/recipes-boundary/video-input-icon/video-input-icon.bb new file mode 100644 index 00000000..98fdf136 --- /dev/null +++ b/bsp/meta-boundary/recipes-boundary/video-input-icon/video-input-icon.bb @@ -0,0 +1,60 @@ +# Simple recipe to add desktop icon and executable to run gstreamer +# command to display video input on screen in media player. + +DESCRIPTION = "Video Input Desktop Icon/Executable" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://COPYING;md5=b7a244440f5854ed05acee9962562ba4" + +PR = "r0" + +SRC_URI = " \ + file://hdmi-input \ + file://hdmi-input.desktop \ + file://OV5640-MIPI-Test.desktop \ + file://ov5640-mipi-test \ + file://OV5642.desktop \ + file://ov5642-test \ + file://COPYING \ +" + +S = "${WORKDIR}" + +do_install_nitrogen6x() { + mkdir -p ${D}/usr/bin/ + mkdir -p ${D}/usr/share/applications/ + cp ${S}/hdmi-input ${D}/usr/bin/ + cp ${S}/hdmi-input.desktop ${D}/usr/share/applications/ + cp ${S}/ov5640-mipi-test ${D}/usr/bin/ + cp ${S}/OV5640-MIPI-Test.desktop ${D}/usr/share/applications/ + cp ${S}/OV5642.desktop ${D}/usr/share/applications/ + cp ${S}/ov5642-test ${D}/usr/bin/ +} + +do_install_nitrogen6sx() { + mkdir -p ${D}/usr/bin/ + mkdir -p ${D}/usr/share/applications/ + cp ${S}/OV5642.desktop ${D}/usr/share/applications/ + cp ${S}/ov5642-test ${D}/usr/bin/ +} + +do_install_nitrogen7() { + mkdir -p ${D}/usr/bin/ + mkdir -p ${D}/usr/share/applications/ + cp ${S}/ov5640-mipi-test ${D}/usr/bin/ + cp ${S}/OV5640-MIPI-Test.desktop ${D}/usr/share/applications/ +} + +FILES_${PN}_nitrogen6x = " \ + /usr/bin/* \ + /usr/share/applications/* \ +" + +FILES_${PN}_nitrogen6sx = " \ + /usr/bin/ov5642-test \ + /usr/share/applications/OV5642.desktop \ +" + +FILES_${PN}_nitrogen7 = " \ + /usr/bin/ov5640-mipi-test \ + /usr/share/applications/OV5640-MIPI-Test.desktop \ +" |