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

Method GetFilteredFormatCount

decoder/LAVVideo/LAVPixFmtConverter.cpp:190–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190int CLAVPixFmtConverter::GetFilteredFormatCount()
191{
192 LAV_INOUT_PIXFMT_MAP *pixFmtMap = lookupFormatMap(m_InputPixFmt, m_InBpp);
193 int count = 0;
194 for (int i = 0; i < LAVOutPixFmt_NB; ++i)
195 {
196 if (m_pSettings->GetPixelFormat(pixFmtMap->lav_pix_fmts[i]))
197 count++;
198 }
199
200 if (count == 0)
201 count = LAVOutPixFmt_NB;
202
203 return count;
204}
205
206LAVOutPixFmts CLAVPixFmtConverter::GetFilteredFormat(int index)
207{

Callers

nothing calls this directly

Calls 2

lookupFormatMapFunction · 0.85
GetPixelFormatMethod · 0.45

Tested by

no test coverage detected