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

Function lookupFormatMap

decoder/LAVVideo/LAVPixFmtConverter.cpp:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146// clang-format on
147
148static LAV_INOUT_PIXFMT_MAP *lookupFormatMap(LAVPixelFormat informat, int bpp, BOOL bFallbackToDefault = TRUE)
149{
150 for (int i = 0; i < countof(lav_pixfmt_map); ++i)
151 {
152 if (lav_pixfmt_map[i].in_pix_fmt == informat && bpp <= lav_pixfmt_map[i].maxbpp)
153 {
154 return &lav_pixfmt_map[i];
155 }
156 }
157 if (bFallbackToDefault)
158 return &lav_pixfmt_map[0];
159 return nullptr;
160}
161
162CLAVPixFmtConverter::CLAVPixFmtConverter()
163{

Callers 2

GetFilteredFormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected