| 146 | // clang-format on |
| 147 | |
| 148 | static 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 | |
| 162 | CLAVPixFmtConverter::CLAVPixFmtConverter() |
| 163 | { |
no outgoing calls
no test coverage detected