| 79 | } |
| 80 | |
| 81 | bool HDR10Test::DoIndexing(std::string file_name) { |
| 82 | indexer = FFMS_CreateIndexer(file_name.c_str(), &E); |
| 83 | NULL_CHECK(indexer); |
| 84 | FFMS_TrackTypeIndexSettings(indexer, FFMS_TYPE_VIDEO, 1, 0); |
| 85 | |
| 86 | index = FFMS_DoIndexing2(indexer, 0, &E); |
| 87 | NULL_CHECK(index); |
| 88 | |
| 89 | video_track_idx = FFMS_GetFirstTrackOfType(index, FFMS_TYPE_VIDEO, &E); |
| 90 | EXPECT_GE(0, video_track_idx); |
| 91 | |
| 92 | video_source = FFMS_CreateVideoSource(file_name.c_str(), video_track_idx, index, 1, FFMS_SEEK_NORMAL, &E); |
| 93 | NULL_CHECK(video_source); |
| 94 | |
| 95 | VP = FFMS_GetVideoProperties(video_source); // Can't fail |
| 96 | |
| 97 | return true; |
| 98 | } |
| 99 | |
| 100 | TEST_F(HDR10Test, StreamData) { |
| 101 | std::string FilePath = SamplesDir + "/hdr10tags-stream.mp4"; |
nothing calls this directly
no test coverage detected