mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
Use jpeg-turbo for decompressing the JPGs. It's super fast compared to
what it was before.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user