Esempio n. 1
0
        protected _Engine(MediaType mediaType, ContainerType inputFileContainerType, EncodingType inputFileEncondingType, String inputFilePath, String outputFilePath)
        {
            if (mediaType != MediaType.Video || inputFileContainerType != ContainerType.Raw || inputFileEncondingType != EncodingType.H264)
            {
                throw new NotSupportedException("Requested media type not implemented yet");
            }

            mFileInput  = new MediaFileInfo(mediaType, inputFileContainerType, inputFileEncondingType, inputFilePath);
            mFileOutput = new MediaFileInfo(mediaType, ContainerType.Raw, EncodingType.I420, outputFilePath);
            m_Hdrs      = new MyObservableCollection <Hdr>(true);
            m_Thumbs    = new MyObservableCollection <Thumb>(true);

            mDecoder = new H264Decoder(mFileInput, mFileOutput);
            mDecoder.HdrParser.onEvent     += HdrParser_onEvent;
            mDecoder.HdrParser.onEventData += HdrParser_onEventData;
        }