示例#1
0
        public override bool Equals(object obj)
        {
            Transcoding t = obj as Transcoding;

            if (t != null)
            {
                return((t.InputFormat == this.InputFormat) &&
                       (t.OutputFormat == this.OutputFormat));
            }

            return(false);
        }
示例#2
0
        private void InternalChangeEncoding(AudioMediaFormatType inputFormat, AudioMediaFormatType outputFormat, string file)
        {
            _transcoding = new Transcoding
            {
                InputFormat  = inputFormat,
                OutputFormat = outputFormat
            };

            if (_supportedTranscodings.Contains(_transcoding) == false)
            {
                throw new NotSupportedException(string.Format("TXT_UNSUPPORTED_TRANSCODING: {0}", _transcoding));
            }

            _transcoding.DoTranscoding(EncoderSettings, file);
        }
示例#3
0
        private void InternalChangeEncoding(AudioMediaFormatType inputFormat, AudioMediaFormatType outputFormat, string file)
        {
            _transcoding = new Transcoding
            {
                InputFormat = inputFormat,
                OutputFormat = outputFormat
            };

            if (_supportedTranscodings.Contains(_transcoding) == false)
                throw new NotSupportedException(string.Format("TXT_UNSUPPORTED_TRANSCODING: {0}", _transcoding));

            _transcoding.DoTranscoding(EncoderSettings, file);
        }