Commit 4d6a2363 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

+a few changes for jp4 previewing in camvc

parent c7d2aca7
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
send_request(); send_request();
} }
//end //end
function send_request(){ function send_request(){
var rq = ""; var rq = "";
...@@ -141,6 +141,36 @@ ...@@ -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){ function process_image(imagedata){
var canvas = cnv_working; var canvas = cnv_working;
...@@ -203,7 +233,7 @@ ...@@ -203,7 +233,7 @@
console.log("#"+elem.attr("id")+", raw image drawn time: "+(Date.now()-TX)/1000+" s"); console.log("#"+elem.attr("id")+", raw image drawn time: "+(Date.now()-TX)/1000+" s");
TX = Date.now(); TX = Date.now();
} }
if (IMAGE_FORMAT=="JPEG"){ if (IMAGE_FORMAT=="JPEG"){
// if JP4/JP46 it will work through webworker and exit later on workers message // if JP4/JP46 it will work through webworker and exit later on workers message
...@@ -387,6 +417,8 @@ ...@@ -387,6 +417,8 @@
//default: //default:
} }
obj.format = IMAGE_FORMAT;
//var gains = Array(); //var gains = Array();
//var blacks = Array(); //var blacks = Array();
var gammas = Array(); var gammas = Array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment