mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Use jpeg-turbo for decompressing the JPGs. It's super fast compared to
what it was before.
This commit is contained in:
parent
a98cc67e2c
commit
ced0bf99a7
4 changed files with 6 additions and 4 deletions
|
@ -65,6 +65,7 @@ As the product has evolved from an internal tool running in our internal network
|
||||||
* [GraphicsMagick](http://www.graphicsmagick.org/) (for resizing screenshots)
|
* [GraphicsMagick](http://www.graphicsmagick.org/) (for resizing screenshots)
|
||||||
* [ZeroMQ](http://zeromq.org/) libraries installed
|
* [ZeroMQ](http://zeromq.org/) libraries installed
|
||||||
* [Protocol Buffers](https://github.com/google/protobuf) libraries installed
|
* [Protocol Buffers](https://github.com/google/protobuf) libraries installed
|
||||||
|
* [jpeg-turbo](http://libjpeg-turbo.virtualgl.org/) libraries installed (for quick VNC format conversions)
|
||||||
* [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/) so that Node.js can find the libraries
|
* [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/) so that Node.js can find the libraries
|
||||||
|
|
||||||
Note that you need these dependencies even if you've installed STF directly from [NPM](https://www.npmjs.com/), because they can't be included.
|
Note that you need these dependencies even if you've installed STF directly from [NPM](https://www.npmjs.com/), because they can't be included.
|
||||||
|
@ -72,7 +73,7 @@ Note that you need these dependencies even if you've installed STF directly from
|
||||||
On OS X, you can use [homebrew](http://brew.sh/) to install most of the dependencies:
|
On OS X, you can use [homebrew](http://brew.sh/) to install most of the dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew install rethinkdb graphicsmagick zeromq protobuf pkg-config
|
brew install rethinkdb graphicsmagick zeromq protobuf jpeg-turbo pkg-config
|
||||||
```
|
```
|
||||||
|
|
||||||
On Windows you're on your own. In theory you might be able to get STF installed via [Cygwin](https://www.cygwin.com/) or similar, but we've never tried. In principle we will not provide any Windows installation support, but please do send a documentation pull request if you figure out what to do.
|
On Windows you're on your own. In theory you might be able to get STF installed via [Cygwin](https://www.cygwin.com/) or similar, but we've never tried. In principle we will not provide any Windows installation support, but please do send a documentation pull request if you figure out what to do.
|
||||||
|
|
|
@ -4,7 +4,7 @@ var util = require('util')
|
||||||
var syrup = require('stf-syrup')
|
var syrup = require('stf-syrup')
|
||||||
var Promise = require('bluebird')
|
var Promise = require('bluebird')
|
||||||
var uuid = require('node-uuid')
|
var uuid = require('node-uuid')
|
||||||
var jpeg = require('jpeg-js')
|
var jpeg = require('jpeg-turbo')
|
||||||
|
|
||||||
var logger = require('../../../../util/logger')
|
var logger = require('../../../../util/logger')
|
||||||
var lifecycle = require('../../../../util/lifecycle')
|
var lifecycle = require('../../../../util/lifecycle')
|
||||||
|
@ -113,7 +113,7 @@ module.exports = syrup.serial()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var decoded = jpeg.decode(connState.lastFrame)
|
var decoded = jpeg.decompressSync(connState.lastFrame)
|
||||||
conn.writeFramebufferUpdate([
|
conn.writeFramebufferUpdate([
|
||||||
{ xPosition: 0
|
{ xPosition: 0
|
||||||
, yPosition: 0
|
, yPosition: 0
|
||||||
|
|
|
@ -24,7 +24,7 @@ function VncConnection(conn, options) {
|
||||||
this._serverWidth = 1080
|
this._serverWidth = 1080
|
||||||
this._serverHeight = 1920
|
this._serverHeight = 1920
|
||||||
this._serverPixelFormat = new PixelFormat({
|
this._serverPixelFormat = new PixelFormat({
|
||||||
bitsPerPixel: 32
|
bitsPerPixel: 24
|
||||||
, depth: 24
|
, depth: 24
|
||||||
, bigEndianFlag: 0
|
, bigEndianFlag: 0
|
||||||
, trueColorFlag: 1
|
, trueColorFlag: 1
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"http-proxy": "^1.11.2",
|
"http-proxy": "^1.11.2",
|
||||||
"in-publish": "^2.0.0",
|
"in-publish": "^2.0.0",
|
||||||
"jade": "^1.9.2",
|
"jade": "^1.9.2",
|
||||||
|
"jpeg-turbo": "^0.1.1",
|
||||||
"jws": "^3.1.0",
|
"jws": "^3.1.0",
|
||||||
"ldapjs": "git+https://github.com/mcavage/node-ldapjs.git#acc1ca8f4314fd9d67561feabc8ce4c235076a5e",
|
"ldapjs": "git+https://github.com/mcavage/node-ldapjs.git#acc1ca8f4314fd9d67561feabc8ce4c235076a5e",
|
||||||
"lodash": "^3.10.1",
|
"lodash": "^3.10.1",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue