Lines Matching +full:- +full:m
2 * Copyright (c) 2023 - 2024 the ThorVG project. All rights reserved.
40 builder->update(comp, frameNo); in run()
49 builder->build(comp); in run()
97 w = static_cast<float>(comp->w); in header()
98 h = static_cast<float>(comp->h); in header()
99 frameDuration = comp->duration(); in header()
100 frameCnt = comp->frameCnt(); in header()
101 frameRate = comp->frameRate; in header()
122 --depth; in header()
192 frameCnt = (endFrame - startFrame); in header()
210 this->dirName = strdup("."); in open()
212 this->size = size; in open()
213 this->copy = copy; in open()
243 this->dirName = strDirname(path.c_str()); in open()
244 this->content = content; in open()
245 this->copy = true; in open()
255 auto sx = w / this->w; in resize()
256 auto sy = h / this->h; in resize()
257 Matrix m = {sx, 0, 0, 0, sy, 0, 0, 0, 1}; in resize() local
258 paint->transform(m); in resize()
262 paint->composite(&clipper); in resize()
263 if (clipper) const_cast<Paint*>(clipper)->transform(m); in resize()
287 comp->initiated = true; in paint()
288 return comp->root->scene; in paint()
294 if (!ready() || comp->slots.count == 0) return false; in override()
309 for (auto s = comp->slots.begin(); s < comp->slots.end(); ++s) { in override()
310 if (strcmp((*s)->sid, sid)) continue; in override()
322 for (auto s = comp->slots.begin(); s < comp->slots.end(); ++s) { in override()
323 (*s)->reset(); in override()
342 if (fabsf(this->frameNo - frameNo) <= 0.0009f) return false; in frame()
344 this->done(); in frame()
346 this->frameNo = frameNo; in frame()
362 return (segmentEnd - segmentBegin) * frameCnt; in totalFrame()
368 return frameNo - startFrame(); in curFrame()
375 return frameCnt * (segmentEnd - segmentBegin) / frameRate; in duration()
389 return ready() ? comp->markers.count : 0; in markersCnt()
395 if (!ready() || index >= comp->markers.count) return nullptr; in markers()
396 auto marker = comp->markers.begin() + index; in markers()
397 return (*marker)->name; in markers()
403 if (!ready() || comp->markers.count == 0) return false; in segment()
405 for (auto m = comp->markers.begin(); m < comp->markers.end(); ++m) { in segment() local
406 if (!strcmp(marker, (*m)->name)) { in segment()
407 begin = (*m)->time / frameCnt; in segment()
408 end = ((*m)->time + (*m)->duration) / frameCnt; in segment()