bool CFGFilterLAVVideo::Settings::GetSettings(CComQIPtr<ILAVVideoSettings> pLAVFSettings) { if (!pLAVFSettings) { return false; } bTrayIcon = pLAVFSettings->GetTrayIcon(); dwStreamAR = pLAVFSettings->GetStreamAR(); dwNumThreads = pLAVFSettings->GetNumThreads(); dwDeintFieldOrder = pLAVFSettings->GetDeintFieldOrder(); deintMode = pLAVFSettings->GetDeinterlacingMode(); dwRGBRange = pLAVFSettings->GetRGBOutputRange(); dwSWDeintMode = pLAVFSettings->GetSWDeintMode(); dwSWDeintOutput = pLAVFSettings->GetSWDeintOutput(); dwDitherMode = pLAVFSettings->GetDitherMode(); for (int i = 0; i < LAVOutPixFmt_NB; ++i) { bPixFmts[i] = pLAVFSettings->GetPixelFormat((LAVOutPixFmts)i); } dwHWAccel = pLAVFSettings->GetHWAccel(); for (int i = 0; i < HWCodec_NB; ++i) { bHWFormats[i] = pLAVFSettings->GetHWAccelCodec((LAVVideoHWCodec)i); } dwHWAccelResFlags = pLAVFSettings->GetHWAccelResolutionFlags(); dwHWDeintMode = pLAVFSettings->GetHWAccelDeintMode(); dwHWDeintOutput = pLAVFSettings->GetHWAccelDeintOutput(); bHWDeintHQ = pLAVFSettings->GetHWAccelDeintHQ(); return true; }