示例#1
0
        /// <summary>
        /// Upon receipt of the GetEncoderParameters action, the DRIT SHALL report the current configuration of the audio
        /// and video encoder in less than 1s.
        /// </summary>
        /// <param name="currentAudioMax">This argument provides the value of the AudioBitrateMax state variable when the action response is created.</param>
        /// <param name="currentAudioMin">This argument provides the value of the AudioBitrateMin state variable when the action response is created.</param>
        /// <param name="currentAudioMode">This argument provides the value of the AudioBitrateMode state variable when the action response is created.</param>
        /// <param name="currentAudioStepping">This argument provides the value of the AudioBitrateStepping state variable when the action response is created.</param>
        /// <param name="currentAudioBitrate">This argument provides the value of the AudioBitrateTarget state variable when the action response is created.</param>
        /// <param name="currentAudioMethod">This argument provides the value of the AudioEncoderMethodNumber state variable when the action response is created.</param>
        /// <param name="currentMuteStatus">This argument provides the value of the AudioMute state variable when the action response is created.</param>
        /// <param name="currentFieldOrder">This argument provides the value of the FieldOrdering state variable when the action response is created.</param>
        /// <param name="currentSignalSource">This argument provides the value of the InputSelection state variable when the action response is created.</param>
        /// <param name="currentNoiseFilter">This argument provides the value of the NoiseReduction state variable when the action response is created.</param>
        /// <param name="currentPulldownStatus">This argument provides the value of the PulldownDetection state variable when the action response is created.</param>
        /// <param name="currentPulldownSetting">This argument provides the value of the PulldownSelection state variable when the action response is created.</param>
        /// <param name="currentSapStatus">This argument provides the value of the SAPDetection state variable when the action response is created.</param>
        /// <param name="currentSapSetting">This argument provides the value of the SAPSelection state variable when the action response is created.</param>
        /// <param name="currentVideoMax">This argument provides the value of the VideoBitrateMax state variable when the action response is created.</param>
        /// <param name="currentVideoMin">This argument provides the value of the VideoBitrateMin state variable when the action response is created.</param>
        /// <param name="currentVideoMode">This argument provides the value of the VideoBitrateMode state variable when the action response is created.</param>
        /// <param name="currentVideoBitrate">This argument provides the value of the VideoBitrateStepping state variable when the action response is created.</param>
        /// <param name="currentVideoStepping">This argument provides the value of the VideoBitrateTarget state variable when the action response is created.</param>
        /// <param name="currentVideoMethod">This argument provides the value of the VideoEncoderMethodNumber state variable when the action response is created.</param>
        public void GetEncoderParameters(out UInt32 currentAudioMax, out UInt32 currentAudioMin, out DriEncoderAudioMode currentAudioMode,
                                         out UInt32 currentAudioStepping, out UInt32 currentAudioBitrate, out byte currentAudioMethod,
                                         out bool currentMuteStatus, out DriEncoderFieldOrder currentFieldOrder,
                                         out DriEncoderInputSelection currentSignalSource, out bool currentNoiseFilter,
                                         out bool currentPulldownStatus, out bool currentPulldownSetting, out bool currentSapStatus,
                                         out bool currentSapSetting, out UInt32 currentVideoMax, out UInt32 currentVideoMin,
                                         out DriEncoderVideoMode currentVideoMode, out UInt32 currentVideoBitrate,
                                         out UInt32 currentVideoStepping, out byte currentVideoMethod)
        {
            IList <object> outParams = _getEncoderParametersAction.InvokeAction(null);

            currentAudioMax        = (uint)outParams[0];
            currentAudioMin        = (uint)outParams[1];
            currentAudioMode       = (DriEncoderAudioMode)Enum.Parse(typeof(DriEncoderAudioMode), (string)outParams[2]);
            currentAudioStepping   = (uint)outParams[3];
            currentAudioBitrate    = (uint)outParams[4];
            currentAudioMethod     = (byte)outParams[5];
            currentMuteStatus      = (bool)outParams[6];
            currentFieldOrder      = (DriEncoderFieldOrder)Enum.Parse(typeof(DriEncoderFieldOrder), (string)outParams[7]);
            currentSignalSource    = (DriEncoderInputSelection)Enum.Parse(typeof(DriEncoderInputSelection), (string)outParams[8]);
            currentNoiseFilter     = (bool)outParams[9];
            currentPulldownStatus  = (bool)outParams[10];
            currentPulldownSetting = (bool)outParams[11];
            currentSapStatus       = (bool)outParams[12];
            currentSapSetting      = (bool)outParams[13];
            currentVideoMax        = (uint)outParams[14];
            currentVideoMin        = (uint)outParams[15];
            currentVideoMode       = (DriEncoderVideoMode)Enum.Parse(typeof(DriEncoderVideoMode), (string)outParams[16]);
            currentVideoBitrate    = (uint)outParams[17];
            currentVideoStepping   = (uint)outParams[18];
            currentVideoMethod     = (byte)outParams[19];
        }
示例#2
0
 /// <summary>
 /// Upon receipt of the SetEncoderParameters action, the DRIT SHALL configure the audio and video encoder based
 /// on the input parameters in less than 2s.
 /// </summary>
 /// <param name="audioMode">This argument sets the AudioBitrateMode state variable.</param>
 /// <param name="audioBitrate">This argument sets the AudioBitrateTarget state variable.</param>
 /// <param name="audioMethod">This argument defines the AudioEncoderMethodNumber state variable.</param>
 /// <param name="mute">This argument sets the AudioMute state variable.</param>
 /// <param name="fieldToggle">This argument sets the FieldOrdering state variable.</param>
 /// <param name="signalSource">This argument sets the InputSelection state variable.</param>
 /// <param name="noiseFilter">This argument sets the NoiseReduction state variable.</param>
 /// <param name="pulldown">This argument sets the PulldownSelection state variable.</param>
 /// <param name="sap">This argument set the SAPSelection state variable.</param>
 /// <param name="videoMode">This argument sets the VideoBitrateMode state variable.</param>
 /// <param name="videoBitrate">This argument defines the VideoBitrateTarget state variable.</param>
 /// <param name="videoMethod">This argument defines the VideoEncoderMethodNumber state variable.</param>
 public void SetEncoderParameters(DriEncoderAudioMode audioMode, UInt32 audioBitrate, byte audioMethod, bool mute,
                                  DriEncoderFieldOrder fieldToggle, DriEncoderInputSelection signalSource,
                                  bool noiseFilter, bool pulldown, bool sap, DriEncoderVideoMode videoMode,
                                  UInt32 videoBitrate, byte videoMethod)
 {
     _setEncoderParametersAction.InvokeAction(new List <object> {
         audioMode.ToString(), audioBitrate, audioMethod, mute, fieldToggle.ToString(), signalSource.ToString(),
         noiseFilter, pulldown, sap, videoMode.ToString(), videoBitrate, videoMethod
     });
 }
示例#3
0
 /// <summary>
 /// Upon receipt of the GetEncoderParameters action, the DRIT SHALL report the current configuration of the audio
 /// and video encoder in less than 1s.
 /// </summary>
 /// <param name="currentAudioMax">This argument provides the value of the AudioBitrateMax state variable when the action response is created.</param>
 /// <param name="currentAudioMin">This argument provides the value of the AudioBitrateMin state variable when the action response is created.</param>
 /// <param name="currentAudioMode">This argument provides the value of the AudioBitrateMode state variable when the action response is created.</param>
 /// <param name="currentAudioStepping">This argument provides the value of the AudioBitrateStepping state variable when the action response is created.</param>
 /// <param name="currentAudioBitrate">This argument provides the value of the AudioBitrateTarget state variable when the action response is created.</param>
 /// <param name="currentAudioMethod">This argument provides the value of the AudioEncoderMethodNumber state variable when the action response is created.</param>
 /// <param name="currentMuteStatus">This argument provides the value of the AudioMute state variable when the action response is created.</param>
 /// <param name="currentFieldOrder">This argument provides the value of the FieldOrdering state variable when the action response is created.</param>
 /// <param name="currentSignalSource">This argument provides the value of the InputSelection state variable when the action response is created.</param>
 /// <param name="currentNoiseFilter">This argument provides the value of the NoiseReduction state variable when the action response is created.</param>
 /// <param name="currentPulldownStatus">This argument provides the value of the PulldownDetection state variable when the action response is created.</param>
 /// <param name="currentPulldownSetting">This argument provides the value of the PulldownSelection state variable when the action response is created.</param>
 /// <param name="currentSapStatus">This argument provides the value of the SAPDetection state variable when the action response is created.</param>
 /// <param name="currentSapSetting">This argument provides the value of the SAPSelection state variable when the action response is created.</param>
 /// <param name="currentVideoMax">This argument provides the value of the VideoBitrateMax state variable when the action response is created.</param>
 /// <param name="currentVideoMin">This argument provides the value of the VideoBitrateMin state variable when the action response is created.</param>
 /// <param name="currentVideoMode">This argument provides the value of the VideoBitrateMode state variable when the action response is created.</param>
 /// <param name="currentVideoBitrate">This argument provides the value of the VideoBitrateStepping state variable when the action response is created.</param>
 /// <param name="currentVideoStepping">This argument provides the value of the VideoBitrateTarget state variable when the action response is created.</param>
 /// <param name="currentVideoMethod">This argument provides the value of the VideoEncoderMethodNumber state variable when the action response is created.</param>
 public void GetEncoderParameters(out UInt32 currentAudioMax, out UInt32 currentAudioMin, out DriEncoderAudioMode currentAudioMode,
                                 out UInt32 currentAudioStepping, out UInt32 currentAudioBitrate, out byte currentAudioMethod,
                                 out bool currentMuteStatus, out DriEncoderFieldOrder currentFieldOrder,
                                 out DriEncoderInputSelection currentSignalSource, out bool currentNoiseFilter,
                                 out bool currentPulldownStatus, out bool currentPulldownSetting, out bool currentSapStatus,
                                 out bool currentSapSetting, out UInt32 currentVideoMax, out UInt32 currentVideoMin,
                                 out DriEncoderVideoMode currentVideoMode, out UInt32 currentVideoBitrate,
                                 out UInt32 currentVideoStepping, out byte currentVideoMethod)
 {
   IList<object> outParams = _getEncoderParametersAction.InvokeAction(null);
   currentAudioMax = (uint)outParams[0];
   currentAudioMin = (uint)outParams[1];
   currentAudioMode = (DriEncoderAudioMode)Enum.Parse(typeof(DriEncoderAudioMode), (string)outParams[2]);
   currentAudioStepping = (uint)outParams[3];
   currentAudioBitrate = (uint)outParams[4];
   currentAudioMethod = (byte)outParams[5];
   currentMuteStatus = (bool)outParams[6];
   currentFieldOrder = (DriEncoderFieldOrder)Enum.Parse(typeof(DriEncoderFieldOrder), (string)outParams[7]);
   currentSignalSource = (DriEncoderInputSelection)Enum.Parse(typeof(DriEncoderInputSelection), (string)outParams[8]);
   currentNoiseFilter = (bool)outParams[9];
   currentPulldownStatus = (bool)outParams[10];
   currentPulldownSetting = (bool)outParams[11];
   currentSapStatus = (bool)outParams[12];
   currentSapSetting = (bool)outParams[13];
   currentVideoMax = (uint)outParams[14];
   currentVideoMin = (uint)outParams[15];
   currentVideoMode = (DriEncoderVideoMode)Enum.Parse(typeof(DriEncoderVideoMode), (string)outParams[16]);
   currentVideoBitrate = (uint)outParams[17];
   currentVideoStepping = (uint)outParams[18];
   currentVideoMethod = (byte)outParams[19];
 }
示例#4
0
 /// <summary>
 /// Upon receipt of the SetEncoderParameters action, the DRIT SHALL configure the audio and video encoder based
 /// on the input parameters in less than 2s.
 /// </summary>
 /// <param name="audioMode">This argument sets the AudioBitrateMode state variable.</param>
 /// <param name="audioBitrate">This argument sets the AudioBitrateTarget state variable.</param>
 /// <param name="audioMethod">This argument defines the AudioEncoderMethodNumber state variable.</param>
 /// <param name="mute">This argument sets the AudioMute state variable.</param>
 /// <param name="fieldToggle">This argument sets the FieldOrdering state variable.</param>
 /// <param name="signalSource">This argument sets the InputSelection state variable.</param>
 /// <param name="noiseFilter">This argument sets the NoiseReduction state variable.</param>
 /// <param name="pulldown">This argument sets the PulldownSelection state variable.</param>
 /// <param name="sap">This argument set the SAPSelection state variable.</param>
 /// <param name="videoMode">This argument sets the VideoBitrateMode state variable.</param>
 /// <param name="videoBitrate">This argument defines the VideoBitrateTarget state variable.</param>
 /// <param name="videoMethod">This argument defines the VideoEncoderMethodNumber state variable.</param>
 public void SetEncoderParameters(DriEncoderAudioMode audioMode, UInt32 audioBitrate, byte audioMethod, bool mute,
                                   DriEncoderFieldOrder fieldToggle, DriEncoderInputSelection signalSource,
                                   bool noiseFilter, bool pulldown, bool sap, DriEncoderVideoMode videoMode,
                                   UInt32 videoBitrate, byte videoMethod)
 {
   _setEncoderParametersAction.InvokeAction(new List<object> {
     audioMode.ToString(), audioBitrate, audioMethod, mute, fieldToggle.ToString(), signalSource.ToString(),
     noiseFilter, pulldown, sap, videoMode.ToString(), videoBitrate, videoMethod
   });
 }