MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / TrackingMaskReader

Method TrackingMaskReader

tests/EffectMask.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 std::vector<int64_t> requests;
78
79 TrackingMaskReader(int fps_num, int fps_den, int64_t length_frames) {
80 info.has_video = true;
81 info.has_audio = false;
82 info.has_single_image = false;
83 info.width = width;
84 info.height = height;
85 info.fps = Fraction(fps_num, fps_den);
86 info.video_length = length_frames;
87 info.duration = static_cast<float>(length_frames / info.fps.ToDouble());
88 info.sample_rate = 48000;
89 info.channels = 2;
90 info.audio_stream_index = -1;
91 }
92
93 openshot::CacheBase* GetCache() override { return &cache; }
94 bool IsOpen() override { return is_open; }

Callers

nothing calls this directly

Calls 2

FractionClass · 0.85
ToDoubleMethod · 0.80

Tested by

no test coverage detected