Changeset View
Changeset View
Standalone View
Standalone View
autotests/ffmpegextractortest.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 36 | { | |||
---|---|---|---|---|---|
45 | QCOMPARE(result.properties().value(Title).toString(), QStringLiteral("Title")); | 45 | QCOMPARE(result.properties().value(Title).toString(), QStringLiteral("Title")); | ||
46 | QCOMPARE(result.properties().value(Copyright).toString(), QStringLiteral("Copyright")); | 46 | QCOMPARE(result.properties().value(Copyright).toString(), QStringLiteral("Copyright")); | ||
47 | QCOMPARE(result.properties().value(Author).toString(), QStringLiteral("Author")); | 47 | QCOMPARE(result.properties().value(Author).toString(), QStringLiteral("Author")); | ||
48 | QCOMPARE(result.properties().value(ReleaseYear).toInt(), 2019); | 48 | QCOMPARE(result.properties().value(ReleaseYear).toInt(), 2019); | ||
49 | 49 | | |||
50 | QCOMPARE(result.properties().value(Width).toInt(), 1280); | 50 | QCOMPARE(result.properties().value(Width).toInt(), 1280); | ||
51 | QCOMPARE(result.properties().value(Height).toInt(), 720); | 51 | QCOMPARE(result.properties().value(Height).toInt(), 720); | ||
52 | QVERIFY(abs(result.properties().value(FrameRate).toDouble() - 23.976) < 1e-4); | 52 | QVERIFY(abs(result.properties().value(FrameRate).toDouble() - 23.976) < 1e-4); | ||
53 | QVERIFY(abs(result.properties().value(AspectRatio).toDouble() - 1.77778) < 1e-4); | ||||
bruns: 16.0/9 | |||||
53 | } | 54 | } | ||
54 | 55 | | |||
55 | QTEST_GUILESS_MAIN(ffmpegExtractorTest) | 56 | QTEST_GUILESS_MAIN(ffmpegExtractorTest) |
16.0/9