1
0
Fork 0
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:
Simo Kinnunen 2015-09-15 04:01:16 +09:00
parent a98cc67e2c
commit ced0bf99a7
4 changed files with 6 additions and 4 deletions

View file

@ -4,7 +4,7 @@ var util = require('util')
var syrup = require('stf-syrup')
var Promise = require('bluebird')
var uuid = require('node-uuid')
var jpeg = require('jpeg-js')
var jpeg = require('jpeg-turbo')
var logger = require('../../../../util/logger')
var lifecycle = require('../../../../util/lifecycle')
@ -113,7 +113,7 @@ module.exports = syrup.serial()
return
}
var decoded = jpeg.decode(connState.lastFrame)
var decoded = jpeg.decompressSync(connState.lastFrame)
conn.writeFramebufferUpdate([
{ xPosition: 0
, yPosition: 0

View file

@ -24,7 +24,7 @@ function VncConnection(conn, options) {
this._serverWidth = 1080
this._serverHeight = 1920
this._serverPixelFormat = new PixelFormat({
bitsPerPixel: 32
bitsPerPixel: 24
, depth: 24
, bigEndianFlag: 0
, trueColorFlag: 1