Beispiel #1
0
        private VideoSourceFilter(TrueSourceFilter trueSource, TextureSize?outputSize = null, bool?wantYuv = null)
            : base(outputSize ?? trueSource.Output.Size, trueSource)
        {
            m_TrueSource = trueSource;
            m_WantYuv    = wantYuv ?? trueSource.IsYuv();

            if (m_WantYuv)
            {
                m_TrueSource.WantYuv = true;         // Prefer enabling (generates less overhead)
            }
            m_TrueSource.PrescaleSize = Output.Size; // Try change source size, always use latest value
        }
Beispiel #2
0
        public VideoSourceFilter(TrueSourceFilter trueSource, TextureSize?outputSize = null, bool?wantYuv = null)
            : base(trueSource)
        {
            m_TrueSource = trueSource;
            m_OutputSize = outputSize ?? trueSource.OutputSize;
            m_WantYuv    = wantYuv ?? trueSource.WantYuv;

            if (m_WantYuv)
            {
                m_TrueSource.WantYuv = true;
            }
            m_TrueSource.OutputSize = m_OutputSize;
        }