MCPcopy Create free account
hub / github.com/Tencent/libpag / CheckLayerImageFillRule

Function CheckLayerImageFillRule

exporter/src/export/ExportVerify.cpp:324–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static void CheckLayerImageFillRule(std::shared_ptr<PAGExportSession> session, pag::Layer* layer,
325 void*) {
326 auto imageFillRule = static_cast<pag::ImageLayer*>(layer)->imageFillRule;
327 if (imageFillRule == nullptr) {
328 return;
329 }
330 if (imageFillRule->timeRemap == nullptr || !imageFillRule->timeRemap->animatable()) {
331 return;
332 }
333 auto timeRemap = static_cast<pag::AnimatableProperty<pag::Frame>*>(imageFillRule->timeRemap);
334 ZeroingTimeRemapOffset(timeRemap);
335 CheckTimeRemapPlaySpeed(session, timeRemap);
336 CheckTimeRemapPlayBackwards(session, timeRemap);
337}
338
339static void CheckImageFillRule(std::shared_ptr<PAGExportSession> session,
340 pag::Composition* composition) {

Callers

nothing calls this directly

Calls 4

ZeroingTimeRemapOffsetFunction · 0.85
CheckTimeRemapPlaySpeedFunction · 0.85
animatableMethod · 0.45

Tested by

no test coverage detected