MCPcopy Create free account
hub / github.com/IENT/YUView / testFormatFromFilename

Method testFormatFromFilename

YUViewUnitTest/filesource/filesource/FilesourceTest.cpp:157–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void 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
177QTEST_MAIN(FileSourceTest)
178

Callers

nothing calls this directly

Calls 2

openFileMethod · 0.45

Tested by

no test coverage detected