kurento-module-chroma
Advanced tools
Comparing version 1.0.4-dev to 6.0.0
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -22,5 +21,8 @@ | ||
var disguise = kurentoClient.disguise; | ||
var checkType = kurentoClient.checkType; | ||
var ChecktypeError = checkType.ChecktypeError; | ||
var Transaction = kurentoClient.TransactionsManager.Transaction; | ||
@@ -30,2 +32,10 @@ | ||
function noop(error, result) { | ||
if (error) console.trace(error); | ||
return result | ||
}; | ||
/** | ||
@@ -35,3 +45,4 @@ * Create a {@link module:chroma.ChromaFilter ChromaFilter} | ||
* @classdesc | ||
* ChromaFilter interface. This type of {@link module:core/abstracts.Filter Filter} makes transparent a colour | ||
* ChromaFilter interface. This type of {@link module:core/abstracts.Filter | ||
* Filter} makes transparent a colour | ||
* range in the top layer, revealing another image behind | ||
@@ -49,2 +60,6 @@ * | ||
// | ||
// Public methods | ||
// | ||
/** | ||
@@ -70,6 +85,8 @@ * Sets the image to show on the detected chroma surface. | ||
var params = { | ||
uri: uri, | ||
uri: uri | ||
}; | ||
return this._invoke(transaction, 'setBackground', params, callback); | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'setBackground', params, callback), this) | ||
}; | ||
@@ -97,3 +114,5 @@ /** | ||
return this._invoke(transaction, 'unsetBackground', callback); | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'unsetBackground', callback), this) | ||
}; | ||
@@ -105,2 +124,3 @@ /** | ||
/** | ||
@@ -113,12 +133,12 @@ * @alias module:chroma.ChromaFilter.constructorParams | ||
* @property {module:core.MediaPipeline} mediaPipeline | ||
* the {@link module:core.MediaPipeline MediaPipeline} to which the filter belongs | ||
* the {@link module:core.MediaPipeline MediaPipeline} to which the filter | ||
* belongs | ||
* | ||
* @property {module:chroma/complexTypes.WindowParam} window | ||
* Window of replacement for the {@link module:chroma.ChromaFilter ChromaFilter} | ||
* Window of replacement for the {@link module:chroma.ChromaFilter | ||
* ChromaFilter} | ||
*/ | ||
ChromaFilter.constructorParams = { | ||
backgroundImage: { | ||
type: 'String', | ||
}, | ||
type: 'String' }, | ||
mediaPipeline: { | ||
@@ -128,7 +148,6 @@ type: 'MediaPipeline', | ||
}, | ||
window: { | ||
type: 'WindowParam', | ||
required: true | ||
}, | ||
} | ||
}; | ||
@@ -139,9 +158,16 @@ | ||
* | ||
* @extend module:core/abstracts.Filter.events | ||
* @extends module:core/abstracts.Filter.events | ||
*/ | ||
ChromaFilter.events = Filter.events; | ||
module.exports = ChromaFilter; | ||
ChromaFilter.check = function(key, value) | ||
/** | ||
* Checker for {@link chroma.ChromaFilter} | ||
* | ||
* @memberof module:chroma | ||
* | ||
* @param {external:String} key | ||
* @param {module:chroma.ChromaFilter} value | ||
*/ | ||
function checkChromaFilter(key, value) | ||
{ | ||
@@ -151,1 +177,6 @@ if(!(value instanceof ChromaFilter)) | ||
}; | ||
module.exports = ChromaFilter; | ||
ChromaFilter.check = checkChromaFilter; |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -23,3 +22,3 @@ | ||
* | ||
* @copyright 2013-2014 Kurento (http://kurento.org/) | ||
* @copyright 2013-2015 Kurento (http://kurento.org/) | ||
* @license LGPL | ||
@@ -26,0 +25,0 @@ */ |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
var checkType = require('kurento-client').checkType; | ||
var inherits = require('inherits'); | ||
/** | ||
* Checker for {@link chroma/complexTypes.WindowParam} | ||
* | ||
* @memberof module:chroma/complexTypes | ||
* | ||
* @param {external:String} key | ||
* @param {module:chroma/complexTypes.WindowParam} value | ||
*/ | ||
function checkWindowParam(key, value) | ||
{ | ||
checkType('int', key+'.topRightCornerX', value.topRightCornerX, true); | ||
checkType('int', key+'.topRightCornerY', value.topRightCornerY, true); | ||
checkType('int', key+'.width', value.width, true); | ||
checkType('int', key+'.height', value.height, true); | ||
}; | ||
var kurentoClient = require('kurento-client'); | ||
var checkType = kurentoClient.checkType; | ||
var ChecktypeError = checkType.ChecktypeError; | ||
var ComplexType = kurentoClient.register.complexTypes.ComplexType; | ||
/** | ||
* Parameter representing a window in a video stream. | ||
* It is used in command and constructor for media elements. | ||
* | ||
* All units are in pixels, X runs from left to right, Y from top to bottom. | ||
* | ||
* @memberof module:chroma/complexTypes | ||
* @constructor module:chroma/complexTypes.WindowParam | ||
* | ||
* @typedef chroma/complexTypes.WindowParam | ||
* | ||
* @type {Object} | ||
* @property {external:Integer} topRightCornerX | ||
@@ -57,4 +43,73 @@ * X coordinate of the left upper point of the window | ||
*/ | ||
function WindowParam(windowParamDict){ | ||
if(!(this instanceof WindowParam)) | ||
return new WindowParam(windowParamDict) | ||
windowParamDict = windowParamDict || {} | ||
module.exports = checkWindowParam; | ||
// Check windowParamDict has the required fields | ||
checkType('int', 'windowParamDict.topRightCornerX', windowParamDict.topRightCornerX, {required: true}); | ||
checkType('int', 'windowParamDict.topRightCornerY', windowParamDict.topRightCornerY, {required: true}); | ||
checkType('int', 'windowParamDict.width', windowParamDict.width, {required: true}); | ||
checkType('int', 'windowParamDict.height', windowParamDict.height, {required: true}); | ||
// Init parent class | ||
WindowParam.super_.call(this, windowParamDict) | ||
// Set object properties | ||
Object.defineProperties(this, { | ||
topRightCornerX: { | ||
writable: true, | ||
enumerable: true, | ||
value: windowParamDict.topRightCornerX | ||
}, | ||
topRightCornerY: { | ||
writable: true, | ||
enumerable: true, | ||
value: windowParamDict.topRightCornerY | ||
}, | ||
width: { | ||
writable: true, | ||
enumerable: true, | ||
value: windowParamDict.width | ||
}, | ||
height: { | ||
writable: true, | ||
enumerable: true, | ||
value: windowParamDict.height | ||
} | ||
}) | ||
} | ||
inherits(WindowParam, ComplexType) | ||
// Private identifiers to allow re-construction of the complexType on the server | ||
// They need to be enumerable so JSON.stringify() can access to them | ||
Object.defineProperties(WindowParam.prototype, { | ||
__module__: { | ||
enumerable: true, | ||
value: "chroma" | ||
}, | ||
__type__: { | ||
enumerable: true, | ||
value: "WindowParam" | ||
} | ||
}) | ||
/** | ||
* Checker for {@link chroma/complexTypes.WindowParam} | ||
* | ||
* @memberof module:chroma/complexTypes | ||
* | ||
* @param {external:String} key | ||
* @param {module:chroma/complexTypes.WindowParam} value | ||
*/ | ||
function checkWindowParam(key, value) | ||
{ | ||
if(!(value instanceof WindowParam)) | ||
throw ChecktypeError(key, WindowParam, value); | ||
}; | ||
module.exports = WindowParam; | ||
WindowParam.check = checkWindowParam; |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -23,6 +22,10 @@ | ||
* | ||
* @copyright 2013-2014 Kurento (http://kurento.org/) | ||
* @copyright 2013-2015 Kurento (http://kurento.org/) | ||
* @license LGPL | ||
*/ | ||
Object.defineProperty(exports, 'name', {value: 'chroma'}); | ||
Object.defineProperty(exports, 'version', {value: '6.0.0'}); | ||
var ChromaFilter = require('./ChromaFilter'); | ||
@@ -29,0 +32,0 @@ |
{ | ||
"name": "kurento-module-chroma", | ||
"version": "1.0.4-dev", | ||
"version": "6.0.0", | ||
"description": "Chroma Detector Filter", | ||
"main": "lib/index.js", | ||
"keywords": [ | ||
"Kurento" | ||
], | ||
"repository": { | ||
@@ -14,28 +11,26 @@ "type": "git", | ||
"scripts": { | ||
"prepublish": "node scripts/prepublish" | ||
"prepublish": "grunt" | ||
}, | ||
"dependencies": { | ||
"es6-promise": "^2.0.0", | ||
"es6-promise": "^2.0.1", | ||
"inherits": "^2.0.1", | ||
"promisecallback": "^0.0.2" | ||
"promisecallback": "^0.0.3" | ||
}, | ||
"devDependencies": { | ||
"kurento-client-core": "Kurento/kurento-client-core-js#develop", | ||
"kurento-client-elements": "Kurento/kurento-client-elements-js#develop", | ||
"kurento-client-filters": "Kurento/kurento-client-filters-js#develop", | ||
"bower": "~1.3.12", | ||
"bower": "~1.4.1", | ||
"grunt": "~0.4.5", | ||
"grunt-browserify": "^3.1.0", | ||
"grunt-browserify": "^3.6.0", | ||
"grunt-cli": "~0.1.13", | ||
"grunt-jsdoc": "~0.5.7", | ||
"grunt-npm2bower-sync": "^0.4.0", | ||
"jsonfile": "^2.0.0", | ||
"kurento-client": "Kurento/kurento-client-js#develop", | ||
"merge": "^1.2.0", | ||
"minifyify": "^4.4.0", | ||
"grunt-contrib-clean": "~0.6.0", | ||
"grunt-path-check": "^0.9.3", | ||
"grunt-shell": "^1.1.1" | ||
"grunt-jsdoc": "^0.6.3", | ||
"grunt-npm2bower-sync": "^0.9.1", | ||
"grunt-shell": "^1.1.2", | ||
"minifyify": "^6.4.0" | ||
}, | ||
"license": "LGPL", | ||
"keywords": [ | ||
"Kurento", | ||
"module", | ||
"plugin" | ||
], | ||
"license": "LGPL-2.1", | ||
"homepage": "http://www.kurento.com", | ||
@@ -45,6 +40,3 @@ "author": "Kurento <info@kurento.com> (http://kurento.org)", | ||
"email": "kurento@googlegroups.com" | ||
}, | ||
"peerDependencies": { | ||
"kurento-client": "^5.0.0" | ||
} | ||
} | ||
} |
{ | ||
"name": "chroma", | ||
"version": "1.0.4-dev", | ||
"kurentoVersion": "^5.0.0", | ||
"version": "6.0.0", | ||
"kurentoVersion": "^6.0.0", | ||
"imports": [ | ||
{ | ||
"name": "core", | ||
"version": "^5.0.0", | ||
"mavenVersion": "[5.0.0,6.0.0)", | ||
"npmVersion": ">=5.0.0 <6.0.0" | ||
"version": "^6.0.0", | ||
"mavenVersion": "[6.0.0,7.0.0-SNAPSHOT)", | ||
"npmVersion": ">=6.0.0 <7.0.0" | ||
}, | ||
{ | ||
"name": "elements", | ||
"version": "^5.0.0", | ||
"mavenVersion": "[5.0.0,6.0.0)", | ||
"npmVersion": ">=5.0.0 <6.0.0" | ||
"version": "^6.0.0", | ||
"mavenVersion": "[6.0.0,7.0.0-SNAPSHOT)", | ||
"npmVersion": ">=6.0.0 <7.0.0" | ||
}, | ||
{ | ||
"name": "filters", | ||
"version": "^5.0.0", | ||
"mavenVersion": "[5.0.0,6.0.0)", | ||
"npmVersion": ">=5.0.0 <6.0.0" | ||
"version": "^6.0.0", | ||
"mavenVersion": "[6.0.0,7.0.0-SNAPSHOT)", | ||
"npmVersion": ">=6.0.0 <7.0.0" | ||
} | ||
@@ -31,3 +31,3 @@ ], | ||
"npmGit": "Kurento/kurento-module-chroma-js", | ||
"npmVersion": "Kurento/kurento-module-chroma-js#develop" | ||
"npmVersion": "6.0.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "java": { | ||
"mavenArtifactId": "chroma", | ||
"mavenVersion": "1.0.4-SNAPSHOT" | ||
"mavenVersion": "6.0.0" | ||
} | ||
@@ -41,0 +41,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
119695
3
9
27
0
1092
2
8
1
+ Addedpromisecallback@0.0.3(transitive)
- Removedasync@0.9.2(transitive)
- Removedchecktype@0.0.5(transitive)
- Removedcommander@2.1.0(transitive)
- Removedes6-promise@2.0.0(transitive)
- Removedextend@2.0.2(transitive)
- Removedkurento-client@5.1.0(transitive)
- Removedkurento-jsonrpc@5.0.4(transitive)
- Removednan@1.0.0(transitive)
- Removedoptions@0.0.6(transitive)
- Removedpromisecallback@0.0.2(transitive)
- Removedtinycolor@0.0.1(transitive)
- Removedws@0.4.32(transitive)
Updatedes6-promise@^2.0.1
Updatedpromisecallback@^0.0.3