Пример #1
0
        /// <summary>
        /// Initialize this instance.
        /// </summary>
        /// <param name="consumer">Related transport stream.</param>
        /// <param name="pid">Corresponding transport stream identifier.</param>
        /// <param name="isPCR">Set if this stream provides the PCR from the PTS information
        /// in the PES headers.</param>
        protected StreamBase(IStreamConsumer consumer, short pid, bool isPCR)
        {
            // Remember
            m_Consumer2 = consumer as IStreamConsumer2;
            Consumer    = consumer;
            IsPCR       = isPCR;
            PID         = pid;

            // Configure
            EnableDataFlow = !AwaitKeyFrame || !IsPCR;
        }
Пример #2
0
        /// <summary>
        /// Initialize this instance.
        /// </summary>
        /// <param name="consumer">Related transport stream.</param>
        /// <param name="pid">Corresponding transport stream identifier.</param>
        /// <param name="isPCR">Set if this stream provides the PCR from the PTS information
        /// in the PES headers.</param>
        protected StreamBase( IStreamConsumer consumer, short pid, bool isPCR )
        {
            // Remember
            m_Consumer2 = consumer as IStreamConsumer2;
            Consumer = consumer;
            IsPCR = isPCR;
            PID = pid;

            // Configure
            EnableDataFlow = !AwaitKeyFrame || !IsPCR;
        }