示例#1
0
        private void Button_Click__CallDecoder(object sender, RoutedEventArgs e)
        {
            int    iRetVal       = 0;
            float  fFPS          = 0.0F;
            double dDecoderTime  = 0.0;
            int    iDecodedFrame = 0;
            string sDecoderInfo  = "Decoder performance: \n";

            iRetVal = vRTCCodec.Decode();

            if (0 == iRetVal)
            {
                fFPS             = vRTCCodec.GetDecFPS();
                dDecoderTime     = vRTCCodec.GetDecTime();
                iDecodedFrame    = vRTCCodec.GetDecodedFrameNum();
                sDecoderInfo    += "FPS         : " + fFPS.ToString() + "\n";
                sDecoderInfo    += "DecTime(sec): " + dDecoderTime.ToString() + "\n";
                sDecoderInfo    += "DecodedNum  : " + iDecodedFrame.ToString() + "\n";
                DecoderInfo.Text = sDecoderInfo;
            }
            else
            {
                DecoderInfo.Text = "decoded failed!...";
            }
        }