Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jp4-canvas
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
jp4-canvas
Commits
eb6d3019
Commit
eb6d3019
authored
Oct 04, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass filename with URL
parent
098a4697
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
jp4-canvas.js
jp4-canvas.js
+14
-1
No files found.
jp4-canvas.js
View file @
eb6d3019
...
@@ -7,6 +7,8 @@ LICENSE: AGPL, see http://www.gnu.org/licenses/agpl.txt
...
@@ -7,6 +7,8 @@ LICENSE: AGPL, see http://www.gnu.org/licenses/agpl.txt
Copyright (C) 2015 Elphel, Inc.
Copyright (C) 2015 Elphel, Inc.
*/
*/
var
jp4name
=
"test.jp4"
var
FLIPV
=
0
;
var
FLIPV
=
0
;
var
FLIPH
=
0
;
var
FLIPH
=
0
;
...
@@ -23,12 +25,23 @@ var BayerMosaic = [
...
@@ -23,12 +25,23 @@ var BayerMosaic = [
];
];
$
(
function
(){
$
(
function
(){
parseURL
();
initCanvas
();
initCanvas
();
});
});
function
parseURL
()
{
var
parameters
=
location
.
href
.
replace
(
/
\?
/ig
,
"&"
).
split
(
"&"
);
for
(
var
i
=
0
;
i
<
parameters
.
length
;
i
++
)
parameters
[
i
]
=
parameters
[
i
].
split
(
"="
);
for
(
var
i
=
1
;
i
<
parameters
.
length
;
i
++
)
{
switch
(
parameters
[
i
][
0
])
{
case
"file"
:
jp4name
=
parameters
[
i
][
1
];
break
;
}
}
}
function
initCanvas
(){
function
initCanvas
(){
var
heavyImage
=
new
Image
();
var
heavyImage
=
new
Image
();
heavyImage
.
src
=
"test.jp4"
;
heavyImage
.
src
=
jp4name
;
var
canvas
=
$
(
"<canvas>"
,{
id
:
"canvas"
}).
css
({
var
canvas
=
$
(
"<canvas>"
,{
id
:
"canvas"
}).
css
({
position
:
"absolute"
,
position
:
"absolute"
,
...
...
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