Added image proc demo files
authorCasey Smith <c-smith@ti.com>
Wed, 8 May 2013 20:56:46 +0000 (16:56 -0400)
committerCasey Smith <c-smith@ti.com>
Wed, 8 May 2013 20:56:46 +0000 (16:56 -0400)
images/dspchip.png [new file with mode: 0644]
images/utilities-imageproc.png [new file with mode: 0644]
utility_apps/utility_imageproc/desc_utility_imageproc.html [new file with mode: 0644]
utility_apps/utility_imageproc/run_dsp.sh [new file with mode: 0644]
utility_apps/utility_imageproc/utility_imageproc.desktop [new file with mode: 0644]
utility_apps/utility_imageproc/utility_imageproc.html [new file with mode: 0644]
utility_apps/utility_imageproc/utility_imageproc.sh [new file with mode: 0644]

diff --git a/images/dspchip.png b/images/dspchip.png
new file mode 100644 (file)
index 0000000..55630d9
Binary files /dev/null and b/images/dspchip.png differ
diff --git a/images/utilities-imageproc.png b/images/utilities-imageproc.png
new file mode 100644 (file)
index 0000000..db2b759
Binary files /dev/null and b/images/utilities-imageproc.png differ
diff --git a/utility_apps/utility_imageproc/desc_utility_imageproc.html b/utility_apps/utility_imageproc/desc_utility_imageproc.html
new file mode 100644 (file)
index 0000000..079bbb3
--- /dev/null
@@ -0,0 +1,5 @@
+<h1> Image Processing Demo </h1>
+
+<p> This application will launch the Image Processing Demo.</p>
+
+
diff --git a/utility_apps/utility_imageproc/run_dsp.sh b/utility_apps/utility_imageproc/run_dsp.sh
new file mode 100644 (file)
index 0000000..65d18d9
--- /dev/null
@@ -0,0 +1,27 @@
+export SLAVE_DIR=/usr/share/matrix-gui-2.0/apps/utility_apps/utility_imageproc/bin
+
+mpmcl reset dsp0
+mpmcl reset dsp1
+mpmcl reset dsp2
+mpmcl reset dsp3
+mpmcl reset dsp4
+mpmcl reset dsp5
+mpmcl reset dsp6
+mpmcl reset dsp7
+mpmcl load dsp0 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl load dsp1 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl load dsp2 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl load dsp3 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl load dsp4 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl load dsp5 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl load dsp6 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl load dsp7 $SLAVE_DIR/image_processing_evmtci6638k2k_slave.out
+mpmcl run dsp0
+mpmcl run dsp1
+mpmcl run dsp2
+mpmcl run dsp3
+mpmcl run dsp4
+mpmcl run dsp5
+mpmcl run dsp6
+mpmcl run dsp7
+
diff --git a/utility_apps/utility_imageproc/utility_imageproc.desktop b/utility_apps/utility_imageproc/utility_imageproc.desktop
new file mode 100644 (file)
index 0000000..eb83b05
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Name=Image Processing Demo
+GenericName=Image Processing Demo
+Icon=/usr/share/matrix-gui-2.0/apps/images/utilities-imageproc.png
+Type=Application
+Exec=/usr/share/matrix-gui-2.0/apps/utility_apps/utility_imageproc/utility_imageproc.sh
+Categories=utilities
+ProgramType=console
+X-MATRIX-Description=/usr/share/matrix-gui-2.0/apps/utility_apps/utility_imageproc/desc_utility_imageproc.html
+X-MATRIX-DisplayPriority=1
diff --git a/utility_apps/utility_imageproc/utility_imageproc.html b/utility_apps/utility_imageproc/utility_imageproc.html
new file mode 100644 (file)
index 0000000..e9099ff
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Multicore Image Processing Demonstration</title>
+
+<script type="text/javascript" language="javascript">
+function CheckExtentionBMP(){
+var FileExt = document.userinput.imagefile.value;
+FileExt = FileExt.substring(FileExt.length - 4, FileExt.length);
+if(FileExt != '.bmp') { alert("Only BMP file type is allowed.");
+return false;
+} else {
+return true;
+}
+}
+</script></head>
+<body style="font-family: helvetica;" onload="document.userinput.imagefile.focus()">
+<!--<div align="center">-->
+<table style="text-align: left; background-color: white" border="0" cellpadding="0" cellspacing="0">
+<tbody>
+<tr>
+<td style="width: 147px; text-align: center;"><img src="apps/images/dspchip.png" alt=""></td>
+<td><span style="font-size:200%;">Multicore Image Processing Demonstration</span></td>
+</tr>
+</tbody>
+</table>
+<!--</div>-->
+<!--<div align="center">-->
+<form enctype="multipart/form-data" method="post" name="userinput" onsubmit="return CheckExtentionBMP();" action="apps/utility_apps/utility_imageproc/cgi-bin/process.out"><br>
+<table cellspacing="10">
+<tbody>
+<tr>
+<td>
+<table style="float: left; text-align: left;" border="0" cellpadding="2" cellspacing="2">
+<tbody>
+<tr>
+<td style="width: 200px;"><span style="font-weight: bold;">Number of Cores</span></td>
+<td>
+<select name="numberofcores">
+<option selected value="1">One</option>
+<option value="2">Two</option>
+<option value="3">Three</option>
+<option value="4">Four</option>
+<option value="5">Five</option>
+<option value="6">Six</option>
+<option value="7">Seven</option>
+<option value="8">Eight</option>
+</select>
+</td>
+</tr>
+</tbody>
+</table>
+</td>
+</tr>
+<tr>
+<td>
+<table style="float: left; text-align: left;" border="0" cellpadding="2" cellspacing="2">
+<tbody>
+<tr>
+<td style="width: 200px;"><span style="font-weight: bold;">Image processing function</span></td>
+<td><input name="processingtype" value="Edge Detection" checked="checked" type="radio">Edge Detection</td>
+</tr>
+</tbody>
+</table>
+</td>
+</tr>
+<tr>
+<th align="left">Select Image to Process</th>
+</tr>
+<tr>
+<td><input name="imagefile" accept="image/bmp" size="60" type="file"></td>
+</tr>
+<tr>
+<td><input value="Process" type="submit"></td>
+</tr>
+<tr>
+<td><strong>Note:</strong> 8/24 bit <a href="http://en.wikipedia.org/wiki/BMP_file_format" target="_blank">bitmap
+(BMP)</a> images are supported
+</td>
+</tr>
+</tbody>
+</table>
+<br>
+<br>
+<small><i>BIOS MCSDK Image Processing Demonstration Version 1.00.00.03</i><small>
+</form>
+<!--</div>-->
+<br>
+<br>
+</body></html>
diff --git a/utility_apps/utility_imageproc/utility_imageproc.sh b/utility_apps/utility_imageproc/utility_imageproc.sh
new file mode 100644 (file)
index 0000000..131b558
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Module: utilities_main
+#
+# Description: This script is used to run the utilities application demo
+# 
+# Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
+#
+#  Redistribution and use in source and binary forms, with or withou
+#  modification, are permitted provided that the following conditions
+#  are met:
+#
+#  Redistributions of source code must retain the above copyright
+#  notice, this list of conditions and the following disclaimer.
+#  
+#  Redistributions in binary form must reproduce the above copyright
+#  notice, this list of conditions and the following disclaimer in the
+#  documentation and/or other materials provided with the
+#  distribution.
+#
+#  Neither the name of Texas Instruments Incorporated nor the names of
+#  its contributors may be used to endorse or promote products derived
+#  from this software without specific prior written permission.
+#
+#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+#  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+#  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+#  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+#  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+#  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+/usr/share/matrix-gui-2.0/apps/utility_apps/utility_imageproc/run_dsp.sh $2> /dev/null
+
+cat /usr/share/matrix-gui-2.0/apps/utility_apps/utility_imageproc/utility_imageproc.html