| 155 | } |
| 156 | |
| 157 | void FileSourceTest::testFormatFromFilename() |
| 158 | { |
| 159 | QFETCH(QString, filename); |
| 160 | QFETCH(unsigned, width); |
| 161 | QFETCH(unsigned, height); |
| 162 | QFETCH(int, framerate); |
| 163 | QFETCH(unsigned, bitDepth); |
| 164 | QFETCH(bool, packed); |
| 165 | |
| 166 | FileSource file; |
| 167 | file.openFile(filename); |
| 168 | auto fileFormat = file.guessFormatFromFilename(); |
| 169 | |
| 170 | QCOMPARE(fileFormat.frameSize.width, width); |
| 171 | QCOMPARE(fileFormat.frameSize.height, height); |
| 172 | QCOMPARE(fileFormat.frameRate, framerate); |
| 173 | QCOMPARE(fileFormat.bitDepth, bitDepth); |
| 174 | QCOMPARE(fileFormat.packed, packed); |
| 175 | } |
| 176 | |
| 177 | QTEST_MAIN(FileSourceTest) |
| 178 |
nothing calls this directly
no test coverage detected