MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / to_json

Method to_json

src/utility/src/timecode.cpp:172–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170bool Timecode::operator>=(const Timecode &t) const { return (*this > t || *this == t); }
171
172void xstudio::utility::to_json(nlohmann::json &j, const Timecode &tc) {
173 j["timecode"] = to_string(tc);
174 j["framerate"] = tc.framerate();
175 j["dropframe"] = tc.dropframe();
176}
177
178void xstudio::utility::from_json(const nlohmann::json &j, Timecode &tc) {
179 tc = Timecode(

Callers

nothing calls this directly

Calls 3

framerateMethod · 0.80
dropframeMethod · 0.80
to_stringFunction · 0.50

Tested by

no test coverage detected