MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / SetHWAccelCodec

Method SetHWAccelCodec

decoder/LAVVideo/LAVVideo.cpp:2697–2704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2695}
2696
2697STDMETHODIMP CLAVVideo::SetHWAccelCodec(LAVVideoHWCodec hwAccelCodec, BOOL bEnabled)
2698{
2699 if (hwAccelCodec < 0 || hwAccelCodec >= HWCodec_NB)
2700 return E_FAIL;
2701
2702 m_settings.bHWFormats[hwAccelCodec] = bEnabled;
2703 return SaveSettings();
2704}
2705
2706STDMETHODIMP_(BOOL) CLAVVideo::GetHWAccelCodec(LAVVideoHWCodec hwAccelCodec)
2707{

Callers 1

OnApplyChangesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected