Lines Matching refs:play
62 void EmojiInteractions::play( in play() function in HistoryView::EmojiInteractions
69 play( in play()
87 void EmojiInteractions::play( in play() function in HistoryView::EmojiInteractions
199 for (auto &play : _plays) { in paint() local
200 if (!play.lottie->ready()) { in paint()
205 const auto rightAligned = play.view->hasOutLayout() in paint()
206 && !play.view->delegate()->elementIsChatWide(); in paint()
210 const auto frame = play.lottie->frameInfo(request); in paint()
211 play.frame = frame.index; in paint()
212 if (!play.framesCount) { in paint()
213 const auto &information = play.lottie->information(); in paint()
214 play.framesCount = information.framesCount; in paint()
215 play.frameRate = information.frameRate; in paint()
217 if (play.frame + 1 == play.framesCount) { in paint()
218 play.finished = true; in paint()
220 const auto rect = computeRect(play.view); in paint()
222 QRect(rect.topLeft() + play.shift, frame.image.size() / factor), in paint()
224 play.lottie->markFrameShown(); in paint()
236 for (const auto &play : _plays) { in checkDelayed() local
237 if (!play.framesCount in checkDelayed()
238 || !play.frameRate in checkDelayed()
239 || !play.frame in checkDelayed()
240 || (play.frame * crl::time(1000) in checkDelayed()
241 < kSmallDelay * play.frameRate)) { in checkDelayed()
244 } else if (play.frame * 2 > play.framesCount) { in checkDelayed()
263 play( in checkDelayed()