@joergmittaglawo/dmvconfig
Version:
DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.
253 lines (252 loc) • 9.62 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Enums = exports.All = exports.ManifoldCoreAsArrayRow = exports.ManifoldCore = exports.ManifoldCoreOutputAsArrayRow = exports.ManifoldCoreOutput = exports.DistributedMultiviewer = exports.DMVInternal = exports.DMVMipMaps = exports.DMVMipMapsOutputAsArrayRow = exports.DMVMipMapsOutput = exports.DMVMipMapsInputAsArrayRow = exports.DMVMipMapsInput = exports.lower = exports.lift = void 0;
const VScript = require("vscript");
const _Video = require("./Video");
const _NetworkInterfaces = require("./NetworkInterfaces");
exports.lift = {
ManifoldCore: (kwl, socket) => kwl ? (new ManifoldCore(new VScript.Subtree(socket, kwl))) : null,
ManifoldCoreOutput: (kwl, socket) => kwl ? (new ManifoldCoreOutput(new VScript.Subtree(socket, kwl))) : null,
HSLCOLOUR: (x, _) => { return x ? { hue: x[0], saturation: x[1], lightness: x[2] } : null; },
DistributedMultiviewer: (kwl, socket) => kwl ? (new DistributedMultiviewer(new VScript.Subtree(socket, kwl))) : null,
DMVInternal: (kwl, socket) => kwl ? (new DMVInternal(new VScript.Subtree(socket, kwl))) : null,
DMVMipMaps: (kwl, socket) => kwl ? (new DMVMipMaps(new VScript.Subtree(socket, kwl))) : null,
DMVMipMapsOutput: (kwl, socket) => kwl ? (new DMVMipMapsOutput(new VScript.Subtree(socket, kwl))) : null,
PortInfo: (x, _) => { return x ? { port_line_id: x[0], port_line_stream_id: x[1] } : null; },
DMVMipMapsInput: (kwl, socket) => kwl ? (new DMVMipMapsInput(new VScript.Subtree(socket, kwl))) : null
};
exports.lower = {
ManifoldCore: (ref) => ref ? ref.raw.kwl : null,
ManifoldCoreOutput: (ref) => ref ? ref.raw.kwl : null,
HSLCOLOUR: (x) => x ? [x.hue, x.saturation, x.lightness] : null,
DistributedMultiviewer: (ref) => ref ? ref.raw.kwl : null,
DMVInternal: (ref) => ref ? ref.raw.kwl : null,
DMVMipMaps: (ref) => ref ? ref.raw.kwl : null,
DMVMipMapsOutput: (ref) => ref ? ref.raw.kwl : null,
PortInfo: (x) => x ? [x.port_line_id, x.port_line_stream_id] : null,
DMVMipMapsInput: (ref) => ref ? ref.raw.kwl : null
};
class DMVMipMapsInput {
constructor(raw) {
this.raw = raw;
}
get enable() {
return new VScript.rKeyword(this, "enable");
}
/**
IP address of the mipmap RTP stream
*/
get src_ip_address() {
return new VScript.rKeyword(this, "src_ip_address");
}
/**
IP address of the mipmap RTP stream
*/
get dest_ip_address() {
return new VScript.rKeyword(this, "dest_ip_address");
}
get interface() {
return new VScript.rKeyword(this, "interface", { lift: _NetworkInterfaces.lift.VirtualInterface, lower: _NetworkInterfaces.lower.VirtualInterface });
}
/**
IP address of the secondary mipmap RTP stream
*/
get secondary_src_ip_address() {
return new VScript.rKeyword(this, "secondary_src_ip_address");
}
/**
IP address of the secondary mipmap RTP stream
*/
get secondary_dest_ip_address() {
return new VScript.rKeyword(this, "secondary_dest_ip_address");
}
get secondary_interface() {
return new VScript.rKeyword(this, "secondary_interface", { lift: _NetworkInterfaces.lift.VirtualInterface, lower: _NetworkInterfaces.lower.VirtualInterface });
}
get metadata() {
return new VScript.rKeyword(this, "metadata");
}
get global_source_id() {
return new VScript.rKeyword(this, "global_source_id");
}
get global_source_rl_id() {
return new VScript.rKeyword(this, "global_source_rl_id");
}
}
exports.DMVMipMapsInput = DMVMipMapsInput;
class DMVMipMapsInputAsArrayRow extends DMVMipMapsInput {
constructor(st, index, parent) {
super(st);
this.index = index;
this.parent = parent;
}
}
exports.DMVMipMapsInputAsArrayRow = DMVMipMapsInputAsArrayRow;
class DMVMipMapsOutput {
constructor(raw) {
this.raw = raw;
}
get bytes_per_second() {
return new VScript.rKeyword(this, "bytes_per_second");
}
/**
IP address of the mipmap RTP stream for port 0
*/
get port_0_ip_address() {
return new VScript.rKeyword(this, "port_0_ip_address");
}
/**
IP address of the mipmap RTP stream for port 1
*/
get port_1_ip_address() {
return new VScript.rKeyword(this, "port_1_ip_address");
}
get port_info() {
return new VScript.rKeyword(this, "port_info", { lift: exports.lift.PortInfo, lower: exports.lower.PortInfo });
}
}
exports.DMVMipMapsOutput = DMVMipMapsOutput;
class DMVMipMapsOutputAsArrayRow extends DMVMipMapsOutput {
constructor(st, index, parent) {
super(st);
this.index = index;
this.parent = parent;
}
}
exports.DMVMipMapsOutputAsArrayRow = DMVMipMapsOutputAsArrayRow;
class DMVMipMaps {
constructor(raw) {
this.raw = raw;
}
get mipmaps_ins_ports() {
return new VScript.rKeyword(this, "mipmaps_ins_ports");
}
get inputs() {
return new VScript.StronglyTypedArray(this, "inputs", (st, index, parent) => new DMVMipMapsInputAsArrayRow(st, index, parent));
}
get outputs() {
return new VScript.StronglyTypedArray(this, "outputs", (st, index, parent) => new DMVMipMapsOutputAsArrayRow(st, index, parent));
}
}
exports.DMVMipMaps = DMVMipMaps;
class DMVInternal {
constructor(raw) {
this.raw = raw;
}
get mipmaps() { return new DMVMipMaps(this.raw.find("mipmaps")); }
}
exports.DMVInternal = DMVInternal;
class DistributedMultiviewer {
constructor(raw) {
this.raw = raw;
}
get enable() {
return new VScript.rwKeyword(this, "enable");
}
get internal() { return new DMVInternal(this.raw.find("internal")); }
}
exports.DistributedMultiviewer = DistributedMultiviewer;
class ManifoldCoreOutput {
constructor(raw) {
this.raw = raw;
}
get enable() {
return new VScript.rKeyword(this, "enable");
}
get standard() {
return new VScript.rKeyword(this, "standard");
}
get double_buffer_mode() {
return new VScript.rKeyword(this, "double_buffer_mode");
}
get current_double_buffer_mode() {
return new VScript.rKeyword(this, "current_double_buffer_mode");
}
get orientation() {
return new VScript.rKeyword(this, "orientation");
}
get streaming_enable() {
return new VScript.rKeyword(this, "streaming_enable");
}
get streaming_transport_format() {
return new VScript.rKeyword(this, "streaming_transport_format");
}
/**
Destination IP address of the Head stream
*/
get streaming_dest_ip_address() {
return new VScript.rKeyword(this, "streaming_dest_ip_address");
}
/**
Secondary Destination IP address of the Head stream
*/
get streaming_secondary_dest_ip_address() {
return new VScript.rKeyword(this, "streaming_secondary_dest_ip_address");
}
get bgnd_colour() {
return new VScript.rKeyword(this, "bgnd_colour", { lift: exports.lift.HSLCOLOUR, lower: exports.lower.HSLCOLOUR });
}
}
exports.ManifoldCoreOutput = ManifoldCoreOutput;
class ManifoldCoreOutputAsArrayRow extends ManifoldCoreOutput {
constructor(st, index, parent) {
super(st);
this.index = index;
this.parent = parent;
}
}
exports.ManifoldCoreOutputAsArrayRow = ManifoldCoreOutputAsArrayRow;
class ManifoldCore {
constructor(raw) {
this.raw = raw;
}
get tile_width() {
return new VScript.rwKeyword(this, "tile_width");
}
get tile_height() {
return new VScript.rwKeyword(this, "tile_height");
}
get rasterizers_num() {
return new VScript.rwKeyword(this, "rasterizers_num");
}
get read_grant_size() {
return new VScript.rwKeyword(this, "read_grant_size");
}
get write_grant_size() {
return new VScript.rwKeyword(this, "write_grant_size");
}
get outputs() {
return new VScript.StronglyTypedArray(this, "outputs", (st, index, parent) => new ManifoldCoreOutputAsArrayRow(st, index, parent));
}
}
exports.ManifoldCore = ManifoldCore;
class ManifoldCoreAsArrayRow extends ManifoldCore {
constructor(st, index, parent) {
super(st);
this.index = index;
this.parent = parent;
}
}
exports.ManifoldCoreAsArrayRow = ManifoldCoreAsArrayRow;
class All {
constructor(raw) {
this.raw = raw;
}
get distributed() {
return new DistributedMultiviewer(this.raw.find("distributed"));
}
get cores() {
return new VScript.StronglyTypedArray(this, "cores", (st, index, parent) => new ManifoldCoreAsArrayRow(st, index, parent));
}
get outputs() {
return new VScript.StronglyTypedArray(this, "outputs", (st, index, parent) => new _Video.EssenceAsArrayRow(st, index, parent));
}
}
exports.All = All;
exports.Enums = {
OUTPUTORIENTATION: ["HORIZONTAL", "HORIZONTAL_REVERSE", "VERTICAL", "VERTICAL_REVERSE"],
DOUBLEBUFFERMODE: ["ON", "OFF", "AUTO"],
VideoInterface: ["SD", "HD", "DualLink_HD", "SingleLink_3G_A", "SingleLink_3G_B_DL", "SingleLink_3G_B_DS", "DualLink_3G_B", "DualLink_3G_C", "QuadLink_3G_A", "QuadLink_3G_B", "SingleLink_12G"],
VideoRaster: ["NTSC", "PAL", "r720", "r1920x1080", "r2048x1080", "r3840x2160", "r4096x2160"],
MultiviewerHeadVideoStandard: ["HD1080p23_98", "HD1080p24", "HD1080p25", "HD1080p29_97", "HD1080p30", "HD1080p50", "HD1080p59_94", "HD1080p60", "HD2160p50", "HD2160p59_94", "HD2160p60"]
};