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

Method GetFrameDuration

decoder/LAVVideo/decoders/quicksync.cpp:863–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863STDMETHODIMP_(REFERENCE_TIME) CDecQuickSync::GetFrameDuration()
864{
865 CMediaType &mt = m_pCallback->GetInputMediaType();
866 REFERENCE_TIME rtDuration = 0;
867 videoFormatTypeHandler(mt.Format(), mt.FormatType(), nullptr, &rtDuration, nullptr, nullptr);
868 return (m_bInterlaced && m_bDI && m_pSettings->GetHWAccelDeintOutput() == DeintOutput_FramePerField)
869 ? rtDuration / 2
870 : rtDuration;
871}
872
873STDMETHODIMP_(BOOL) CDecQuickSync::IsInterlaced(BOOL bAllowGuess)
874{

Callers

nothing calls this directly

Calls 4

videoFormatTypeHandlerFunction · 0.85
FormatMethod · 0.80
FormatTypeMethod · 0.80
GetHWAccelDeintOutputMethod · 0.80

Tested by

no test coverage detected