public NSVideo() { t_stmp = 0; clock_ms = 90; m_pxBuf = null; m_szData = m_nszParm = 0; m_pQueue = new Queue(); m_pDecoder = MyDecoder.DCD_Create("h264"); //m_pRender = new ImageRender(); counter = 0; }
public bool SetDecoder(string name) { if (m_pDecoder != 0) { MyDecoder.DCD_Close(m_pDecoder); } m_pDecoder = MyDecoder.DCD_Create(name); int clock = 90000; clock_ms = (uint)clock / 1000; if (clock_ms == 0) clock_ms = 90; }