mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 10:53:21 +02:00
Integrate new minicap along with a moderate rewrite. What's currently missing is recovering from socket death.
This commit is contained in:
22
lib/units/device/plugins/screen/util/frameconfig.js
Normal file
22
lib/units/device/plugins/screen/util/frameconfig.js
Normal file
@@ -0,0 +1,22 @@
|
||||
var util = require('util')
|
||||
|
||||
function FrameConfig(real, virtual) {
|
||||
this.realWidth = real.width
|
||||
this.realHeight = real.height
|
||||
this.virtualWidth = virtual.width
|
||||
this.virtualHeight = virtual.height
|
||||
this.rotation = virtual.rotation
|
||||
}
|
||||
|
||||
FrameConfig.prototype.toString = function() {
|
||||
return util.format(
|
||||
'%dx%d@%dx%d/%d'
|
||||
, this.realWidth
|
||||
, this.realHeight
|
||||
, this.virtualWidth
|
||||
, this.virtualHeight
|
||||
, this.rotation
|
||||
)
|
||||
}
|
||||
|
||||
module.exports = FrameConfig
|
||||
Reference in New Issue
Block a user