protected override IFilter <ITextureOutput <ITexture2D> > Optimize() { ITextureFilter result = m_TrueSource.Resize(Output.Size); if (m_TrueSource.IsYuv() && !m_WantYuv) { result = result.ConvertToRgb(); } if (!m_TrueSource.IsYuv() && m_WantYuv) { result = result.ConvertToYuv(); } return(result.Compile()); }
protected override IFilter <ITextureOutput <ITexture2D> > Optimize() { return(Result.Compile()); }