UNPKG

@joergmittaglawo/dmvconfig

Version:

DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.

508 lines (505 loc) 18.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Enums = exports.All = exports.J2KDecoderStatistics = exports.J2KDecoderChannelAsNamedTableRow = exports.J2KDecoderChannel = exports.J2KDecoderRuntime = exports.J2KDecoderMetadataRuntime = exports.J2KDecoderAudioRuntime = exports.J2KDecoderVideoRuntime = exports.J2KDecoderJ2KRuntime = exports.J2KDecoderJ2KT2Runtime = exports.J2KDecoderMPT2Runtime = exports.MP2TPESAsTableRow = exports.MP2TPES = exports.TTr01J2kVideoDescriptor = exports.J2KDecoderRTPRuntime = exports.J2KDecoderConfiguration = exports.J2KDecoderSyncConfiguration = exports.J2KDecoderCRURuntime = exports.J2KDecoderCRURLAsArrayRow = exports.J2KDecoderCRURL = exports.J2KDecoderSyncConfigurationManual = exports.J2KDecoderMP2TConfiguration = exports.J2KDecoderRTPConfiguration = exports.lower = exports.lift = void 0; const VScript = require("vscript"); const _Audio = require("./Audio"); const _Video = require("./Video"); exports.lift = { J2KDecoderStatistics: (kwl, socket) => kwl ? (new J2KDecoderStatistics(new VScript.Subtree(socket, kwl))) : null, J2KDecoderChannel: (kwl, socket) => kwl ? (new J2KDecoderChannel(new VScript.Subtree(socket, kwl))) : null, J2KDecoderRuntime: (kwl, socket) => kwl ? (new J2KDecoderRuntime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderMetadataRuntime: (kwl, socket) => kwl ? (new J2KDecoderMetadataRuntime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderAudioRuntime: (kwl, socket) => kwl ? (new J2KDecoderAudioRuntime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderVideoRuntime: (kwl, socket) => kwl ? (new J2KDecoderVideoRuntime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderJ2KRuntime: (kwl, socket) => kwl ? (new J2KDecoderJ2KRuntime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderJ2KT2Runtime: (kwl, socket) => kwl ? (new J2KDecoderJ2KT2Runtime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderMPT2Runtime: (kwl, socket) => kwl ? (new J2KDecoderMPT2Runtime(new VScript.Subtree(socket, kwl))) : null, MP2TPES: (kwl, socket) => kwl ? (new MP2TPES(new VScript.Subtree(socket, kwl))) : null, TTr01J2kVideoDescriptor: (kwl, socket) => kwl ? (new TTr01J2kVideoDescriptor(new VScript.Subtree(socket, kwl))) : null, J2KDecoderRTPRuntime: (kwl, socket) => kwl ? (new J2KDecoderRTPRuntime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderConfiguration: (kwl, socket) => kwl ? (new J2KDecoderConfiguration(new VScript.Subtree(socket, kwl))) : null, J2KDecoderSyncConfiguration: (kwl, socket) => kwl ? (new J2KDecoderSyncConfiguration(new VScript.Subtree(socket, kwl))) : null, J2KDecoderCRURuntime: (kwl, socket) => kwl ? (new J2KDecoderCRURuntime(new VScript.Subtree(socket, kwl))) : null, J2KDecoderCRURL: (kwl, socket) => kwl ? (new J2KDecoderCRURL(new VScript.Subtree(socket, kwl))) : null, J2KDecoderSyncConfigurationManual: (kwl, socket) => kwl ? (new J2KDecoderSyncConfigurationManual(new VScript.Subtree(socket, kwl))) : null, J2KDecoderMP2TConfiguration: (kwl, socket) => kwl ? (new J2KDecoderMP2TConfiguration(new VScript.Subtree(socket, kwl))) : null, J2KDecoderRTPConfiguration: (kwl, socket) => kwl ? (new J2KDecoderRTPConfiguration(new VScript.Subtree(socket, kwl))) : null }; exports.lower = { J2KDecoderStatistics: (ref) => ref ? ref.raw.kwl : null, J2KDecoderChannel: (ref) => ref ? ref.raw.kwl : null, J2KDecoderRuntime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderMetadataRuntime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderAudioRuntime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderVideoRuntime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderJ2KRuntime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderJ2KT2Runtime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderMPT2Runtime: (ref) => ref ? ref.raw.kwl : null, MP2TPES: (ref) => ref ? ref.raw.kwl : null, TTr01J2kVideoDescriptor: (ref) => ref ? ref.raw.kwl : null, J2KDecoderRTPRuntime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderConfiguration: (ref) => ref ? ref.raw.kwl : null, J2KDecoderSyncConfiguration: (ref) => ref ? ref.raw.kwl : null, J2KDecoderCRURuntime: (ref) => ref ? ref.raw.kwl : null, J2KDecoderCRURL: (ref) => ref ? ref.raw.kwl : null, J2KDecoderSyncConfigurationManual: (ref) => ref ? ref.raw.kwl : null, J2KDecoderMP2TConfiguration: (ref) => ref ? ref.raw.kwl : null, J2KDecoderRTPConfiguration: (ref) => ref ? ref.raw.kwl : null }; class J2KDecoderRTPConfiguration { constructor(raw) { this.raw = raw; } get activate() { return new VScript.duplexKeyword(this, "activate"); } /** Primary source input ip address */ get src_ip_address() { return new VScript.rwKeyword(this, "src_ip_address"); } /** Primary destination input ip address */ get dest_ip_address() { return new VScript.rwKeyword(this, "dest_ip_address"); } /** Secondary source input ip address */ get secondary_src_ip_address() { return new VScript.rwKeyword(this, "secondary_src_ip_address"); } /** Secondary destination input ip address */ get secondary_dest_ip_address() { return new VScript.rwKeyword(this, "secondary_dest_ip_address"); } /** */ get read_delay() { return new VScript.rwKeyword(this, "read_delay"); } /** */ get audio_delay() { return new VScript.rwKeyword(this, "audio_delay"); } } exports.J2KDecoderRTPConfiguration = J2KDecoderRTPConfiguration; class J2KDecoderMP2TConfiguration { constructor(raw) { this.raw = raw; } get pmt_pid() { return new VScript.rwKeyword(this, "pmt_pid"); } get video_pid() { return new VScript.rwKeyword(this, "video_pid"); } get audio_pid_1() { return new VScript.rwKeyword(this, "audio_pid_1"); } get audio_pid_2() { return new VScript.rwKeyword(this, "audio_pid_2"); } get audio_pid_3() { return new VScript.rwKeyword(this, "audio_pid_3"); } get audio_pid_4() { return new VScript.rwKeyword(this, "audio_pid_4"); } get audio_pid_5() { return new VScript.rwKeyword(this, "audio_pid_5"); } get audio_pid_6() { return new VScript.rwKeyword(this, "audio_pid_6"); } get audio_pid_7() { return new VScript.rwKeyword(this, "audio_pid_7"); } get audio_pid_8() { return new VScript.rwKeyword(this, "audio_pid_8"); } } exports.J2KDecoderMP2TConfiguration = J2KDecoderMP2TConfiguration; class J2KDecoderSyncConfigurationManual { constructor(raw) { this.raw = raw; } get clock_drift() { return new VScript.rwKeyword(this, "clock_drift"); } get phase() { return new VScript.rwKeyword(this, "phase"); } } exports.J2KDecoderSyncConfigurationManual = J2KDecoderSyncConfigurationManual; class J2KDecoderCRURL { constructor(raw) { this.raw = raw; } get samples_num() { return new VScript.rKeyword(this, "samples_num"); } get frames_dist() { return new VScript.rKeyword(this, "frames_dist"); } get ktau() { return new VScript.rKeyword(this, "ktau"); } get drift() { return new VScript.rKeyword(this, "drift"); } } exports.J2KDecoderCRURL = J2KDecoderCRURL; class J2KDecoderCRURLAsArrayRow extends J2KDecoderCRURL { constructor(st, index, parent) { super(st); this.index = index; this.parent = parent; } } exports.J2KDecoderCRURLAsArrayRow = J2KDecoderCRURLAsArrayRow; class J2KDecoderCRURuntime { constructor(raw) { this.raw = raw; } get phase_offset() { return new VScript.rKeyword(this, "phase_offset"); } get phase_jitter() { return new VScript.rKeyword(this, "phase_jitter"); } get clock_drift() { return new VScript.rKeyword(this, "clock_drift"); } get r_l_s() { return new VScript.StronglyTypedArray(this, "r_l_s", (st, index, parent) => new J2KDecoderCRURLAsArrayRow(st, index, parent)); } } exports.J2KDecoderCRURuntime = J2KDecoderCRURuntime; class J2KDecoderSyncConfiguration { constructor(raw) { this.raw = raw; } /** Interval where phase should remain, if exceeded then hard jump executed. */ get phase_insensitive_interval() { return new VScript.rwKeyword(this, "phase_insensitive_interval"); } /** After which value */ get ktau_threshold() { return new VScript.rwKeyword(this, "ktau_threshold"); } } exports.J2KDecoderSyncConfiguration = J2KDecoderSyncConfiguration; class J2KDecoderConfiguration { constructor(raw) { this.raw = raw; } get rtp() { return new J2KDecoderRTPConfiguration(this.raw.find("rtp")); } get mp2t() { return new J2KDecoderMP2TConfiguration(this.raw.find("mp2t")); } get cru() { return new J2KDecoderSyncConfiguration(this.raw.find("cru")); } } exports.J2KDecoderConfiguration = J2KDecoderConfiguration; class J2KDecoderRTPRuntime { constructor(raw) { this.raw = raw; } get dummy() { return new VScript.rwKeyword(this, "dummy"); } get use_sdp() { return new VScript.rwKeyword(this, "use_sdp"); } get sdp() { return new VScript.rKeyword(this, "sdp"); } } exports.J2KDecoderRTPRuntime = J2KDecoderRTPRuntime; class TTr01J2kVideoDescriptor { constructor(raw) { this.raw = raw; } get extended_capability_flag() { return new VScript.rKeyword(this, "extended_capability_flag"); } get profile_and_level() { return new VScript.rKeyword(this, "profile_and_level"); } get horizontal_size() { return new VScript.rKeyword(this, "horizontal_size"); } get vertical_size() { return new VScript.rKeyword(this, "vertical_size"); } get max_bit_rate() { return new VScript.rKeyword(this, "max_bit_rate"); } get max_buffer_size() { return new VScript.rKeyword(this, "max_buffer_size"); } get d_e_n_frame_rate() { return new VScript.rKeyword(this, "d_e_n_frame_rate"); } get n_u_m_frame_rate() { return new VScript.rKeyword(this, "n_u_m_frame_rate"); } get stripe_flag() { return new VScript.rKeyword(this, "stripe_flag"); } get block_flag() { return new VScript.rKeyword(this, "block_flag"); } get mdm_flag() { return new VScript.rKeyword(this, "mdm_flag"); } get color_specification() { return new VScript.rKeyword(this, "color_specification"); } get still_mode() { return new VScript.rKeyword(this, "still_mode"); } get interlaced_video() { return new VScript.rKeyword(this, "interlaced_video"); } get colour_primaries() { return new VScript.rKeyword(this, "colour_primaries"); } get transfer_characteristics() { return new VScript.rKeyword(this, "transfer_characteristics"); } get matrix_coefficients() { return new VScript.rKeyword(this, "matrix_coefficients"); } get video_full_range_flag() { return new VScript.rKeyword(this, "video_full_range_flag"); } get strp_max_idx() { return new VScript.rKeyword(this, "strp_max_idx"); } get strp_height() { return new VScript.rKeyword(this, "strp_height"); } get full_horizontal_size() { return new VScript.rKeyword(this, "full_horizontal_size"); } get full_vertical_size() { return new VScript.rKeyword(this, "full_vertical_size"); } get blk_width() { return new VScript.rKeyword(this, "blk_width"); } get blk_height() { return new VScript.rKeyword(this, "blk_height"); } get max_blk_idx_h() { return new VScript.rKeyword(this, "max_blk_idx_h"); } get max_blk_idx_v() { return new VScript.rKeyword(this, "max_blk_idx_v"); } get blk_idx_h() { return new VScript.rKeyword(this, "blk_idx_h"); } get blk_idx_v() { return new VScript.rKeyword(this, "blk_idx_v"); } get x_c0() { return new VScript.rKeyword(this, "x_c0"); } get y_c0() { return new VScript.rKeyword(this, "y_c0"); } get x_c1() { return new VScript.rKeyword(this, "x_c1"); } get y_c1() { return new VScript.rKeyword(this, "y_c1"); } get x_c2() { return new VScript.rKeyword(this, "x_c2"); } get y_c2() { return new VScript.rKeyword(this, "y_c2"); } get x_wp() { return new VScript.rKeyword(this, "x_wp"); } get y_wp() { return new VScript.rKeyword(this, "y_wp"); } get l_max() { return new VScript.rKeyword(this, "l_max"); } get l_min() { return new VScript.rKeyword(this, "l_min"); } get max_c_l_l() { return new VScript.rKeyword(this, "max_c_l_l"); } get max_f_a_l_l() { return new VScript.rKeyword(this, "max_f_a_l_l"); } } exports.TTr01J2kVideoDescriptor = TTr01J2kVideoDescriptor; class MP2TPES { constructor(raw) { this.raw = raw; } get type() { return new VScript.rKeyword(this, "type"); } get pid() { return new VScript.rKeyword(this, "pid"); } } exports.MP2TPES = MP2TPES; class MP2TPESAsTableRow extends MP2TPES { constructor(raw_row, enclosing_table) { super(new VScript.Subtree(raw_row.socket, raw_row.kwl)); this.enclosing_table = enclosing_table; this.index = raw_row.index; } } exports.MP2TPESAsTableRow = MP2TPESAsTableRow; class J2KDecoderMPT2Runtime { constructor(raw) { this.raw = raw; } get p_e_s() { return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("p_e_s")), (row, enclosing_table) => new MP2TPESAsTableRow(row, enclosing_table)); } get j2k_video_descriptor() { return new TTr01J2kVideoDescriptor(this.raw.find("j2k_video_descriptor")); } } exports.J2KDecoderMPT2Runtime = J2KDecoderMPT2Runtime; class J2KDecoderJ2KT2Runtime { constructor(raw) { this.raw = raw; } get packets_num() { return new VScript.rKeyword(this, "packets_num"); } } exports.J2KDecoderJ2KT2Runtime = J2KDecoderJ2KT2Runtime; class J2KDecoderJ2KRuntime { constructor(raw) { this.raw = raw; } get t2() { return new J2KDecoderJ2KT2Runtime(this.raw.find("t2")); } } exports.J2KDecoderJ2KRuntime = J2KDecoderJ2KRuntime; class J2KDecoderVideoRuntime { constructor(raw) { this.raw = raw; } get video_standard() { return new VScript.rKeyword(this, "video_standard"); } get output() { return new _Video.Essence(this.raw.find("output")); } } exports.J2KDecoderVideoRuntime = J2KDecoderVideoRuntime; class J2KDecoderAudioRuntime { constructor(raw) { this.raw = raw; } get output() { return new _Audio.Essence(this.raw.find("output")); } get source_slice() { return new _Audio.SignalSourceSlice(this.raw.find("source_slice")); } } exports.J2KDecoderAudioRuntime = J2KDecoderAudioRuntime; class J2KDecoderMetadataRuntime { constructor(raw) { this.raw = raw; } get dummy() { return new VScript.rwKeyword(this, "dummy"); } } exports.J2KDecoderMetadataRuntime = J2KDecoderMetadataRuntime; class J2KDecoderRuntime { constructor(raw) { this.raw = raw; } get rtp() { return new J2KDecoderRTPRuntime(this.raw.find("rtp")); } get mpt2() { return new J2KDecoderMPT2Runtime(this.raw.find("mpt2")); } get cru() { return new J2KDecoderCRURuntime(this.raw.find("cru")); } get j2k() { return new J2KDecoderJ2KRuntime(this.raw.find("j2k")); } get video() { return new J2KDecoderVideoRuntime(this.raw.find("video")); } get audio() { return new J2KDecoderAudioRuntime(this.raw.find("audio")); } get metadata() { return new J2KDecoderMetadataRuntime(this.raw.find("metadata")); } } exports.J2KDecoderRuntime = J2KDecoderRuntime; class J2KDecoderChannel { constructor(raw) { this.raw = raw; } get configuration() { return new J2KDecoderConfiguration(this.raw.find("configuration")); } get runtime() { return new J2KDecoderRuntime(this.raw.find("runtime")); } } exports.J2KDecoderChannel = J2KDecoderChannel; class J2KDecoderChannelAsNamedTableRow extends J2KDecoderChannel { constructor(raw_row, enclosing_table) { super(new VScript.Subtree(raw_row.socket, raw_row.kwl)); this.raw_row = raw_row; this.enclosing_table = enclosing_table; this.index = raw_row.index; } async rename(name, opts) { await this.raw_row.rename(name, opts); } async delete(opts) { await this.raw_row.delete(opts); } } exports.J2KDecoderChannelAsNamedTableRow = J2KDecoderChannelAsNamedTableRow; class J2KDecoderStatistics { constructor(raw) { this.raw = raw; } get mem_band_max_gbits() { return new VScript.rKeyword(this, "mem_band_max_gbits"); } get mem_band_write_gbits() { return new VScript.rKeyword(this, "mem_band_write_gbits"); } get mem_band_read_gbits() { return new VScript.rKeyword(this, "mem_band_read_gbits"); } get t1_total_clks() { return new VScript.rKeyword(this, "t1_total_clks"); } get t1_active_clks() { return new VScript.rKeyword(this, "t1_active_clks"); } get t1_load() { return new VScript.rKeyword(this, "t1_load"); } } exports.J2KDecoderStatistics = J2KDecoderStatistics; class All { constructor(raw) { this.raw = raw; } get decoders() { return new VScript.StronglyTypedNamedTable(new VScript.NamedTable(this.raw.socket, this.raw.full_kwl("decoders")), (row, enclosing_table) => new J2KDecoderChannelAsNamedTableRow(row, enclosing_table)); } get statistics() { return new J2KDecoderStatistics(this.raw.find("statistics")); } } exports.All = All; exports.Enums = { SYNCMODE: ["AUTO", "MANUAL"] };