Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
4ff8c216
Commit
4ff8c216
authored
Nov 16, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved to lib
parent
129d9d9a
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
871 additions
and
344 deletions
+871
-344
Makefile
src/jp4-canvas/Makefile
+2
-1
elphel.js
src/jp4-canvas/elphel.js
+602
-0
get-image.php
src/jp4-canvas/get-image.php
+8
-1
jp4-canvas.html
src/jp4-canvas/jp4-canvas.html
+4
-3
jp4-canvas.js
src/jp4-canvas/jp4-canvas.js
+13
-4
jquery-jp4.js
src/jp4-canvas/jquery-jp4.js
+242
-335
No files found.
src/jp4-canvas/Makefile
View file @
4ff8c216
...
...
@@ -5,7 +5,8 @@ INSTALL = install
DOCS
=
jp4-canvas.html
\
jp4-canvas.js
LIBS
=
exif.js
\
LIBS
=
elphel.js
\
exif.js
\
jquery-jp4.js
\
jcanvas.min.js
...
...
src/jp4-canvas/elphel.js
0 → 100644
View file @
4ff8c216
This diff is collapsed.
Click to expand it.
src/jp4-canvas/get-image.php
View file @
4ff8c216
...
...
@@ -10,7 +10,14 @@ if (isset($_GET['rel']))
else
die
();
/*
header("Location: http://{$_SERVER['HTTP_HOST']}:$port/$rel");
die();
*/
header
(
'Content-type:image/jpeg'
);
echo
file_get_contents
(
"http://localhost:
$port
/
$rel
"
);
die
();
?>
src/jp4-canvas/jp4-canvas.html
View file @
4ff8c216
...
...
@@ -7,18 +7,19 @@
<body>
<table>
<tr>
<td><div
id=
'test1'
></div></td>
<td><div
id=
'test2'
></div></td>
<td><div
id=
'test4'
></div></td>
</tr>
<tr>
<td><div
id=
'test1'
></div></td>
<td><div
id=
'test3'
></div></td>
<td><div
id=
'test4'
></div></td>
</tr>
</table>
<script
src=
"js/elphel.js"
></script>
<script
src=
"js/jquery-2.2.3.min.js"
></script>
<script
src=
"js/jcanvas.min.js"
></script>
<script
src=
"js/exif.js"
></script>
<script
src=
"jp4-canvas.js"
></script>
<script
src=
"js/jquery-jp4.js"
></script>
<script
src=
"jp4-canvas.js"
></script>
</body>
</html>
src/jp4-canvas/jp4-canvas.js
View file @
4ff8c216
...
...
@@ -8,8 +8,17 @@ Copyright (C) 2016 Elphel, Inc.
*/
$
(
function
(){
$
(
"#test1"
).
jp4
({
port
:
2323
,
width
:
600
});
$
(
"#test2"
).
jp4
({
port
:
2324
,
width
:
600
});
$
(
"#test3"
).
jp4
({
port
:
2325
,
width
:
600
});
$
(
"#test4"
).
jp4
({
port
:
2326
,
width
:
600
});
var
t1
=
$
(
"#test1"
).
jp4
({
port
:
2323
,
width
:
600
,
image
:
"images/elphelimg_lowpass_1.jp4"
,
fast
:
true
});
var
t2
=
$
(
"#test2"
).
jp4
({
port
:
2323
,
width
:
600
,
image
:
"images/elphelimg_lowpass_1.jp4"
,
precise
:
true
});
t1
.
cnv
.
on
(
"canvas_ready"
,
function
(){
console
.
log
(
"canvas1 ready"
);
});
t2
.
cnv
.
on
(
"canvas_ready"
,
function
(){
console
.
log
(
"canvas2 ready"
);
});
});
src/jp4-canvas/jquery-jp4.js
View file @
4ff8c216
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment