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
4d6a2363
Commit
4d6a2363
authored
Jun 27, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+a few changes for jp4 previewing in camvc
parent
c7d2aca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
jquery-jp4.js
src/jp4-canvas/jquery-jp4.js
+34
-2
No files found.
src/jp4-canvas/jquery-jp4.js
View file @
4d6a2363
...
...
@@ -107,7 +107,7 @@
send_request
();
}
//end
function
send_request
(){
var
rq
=
""
;
...
...
@@ -141,6 +141,36 @@
}
this
.
refresh
=
function
(){
send_request
();
}
this
.
resize
=
function
(
w
){
settings
.
width
=
w
;
send_request
();
}
this
.
setAddr
=
function
(
url
,
port
){
settings
.
port
=
port
;
settings
.
url
=
ip
;
return
0
;
}
this
.
getFormat
=
function
(){
return
this
.
format
;
}
this
.
getAddr
=
function
(){
return
Array
(
settings
.
ip
,
settings
.
port
);
}
function
process_image
(
imagedata
){
var
canvas
=
cnv_working
;
...
...
@@ -203,7 +233,7 @@
console
.
log
(
"#"
+
elem
.
attr
(
"id"
)
+
", raw image drawn time: "
+
(
Date
.
now
()
-
TX
)
/
1000
+
" s"
);
TX
=
Date
.
now
();
}
if
(
IMAGE_FORMAT
==
"JPEG"
){
// if JP4/JP46 it will work through webworker and exit later on workers message
...
...
@@ -387,6 +417,8 @@
//default:
}
obj
.
format
=
IMAGE_FORMAT
;
//var gains = Array();
//var blacks = Array();
var
gammas
=
Array
();
...
...
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