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

Function GetMotionTileEffect

exporter/src/export/data/Effect.cpp:265–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265static pag::Effect* GetMotionTileEffect(const AEGP_StreamRefH& streamHandle) {
266 auto effect = new pag::MotionTileEffect();
267 effect->tileCenter = GetProperty(streamHandle, "ADBE Tile-0001", AEStreamParser::PointParser);
268 effect->tileWidth = GetProperty(streamHandle, "ADBE Tile-0002", AEStreamParser::FloatParser);
269 effect->tileHeight = GetProperty(streamHandle, "ADBE Tile-0003", AEStreamParser::FloatParser);
270 effect->outputWidth = GetProperty(streamHandle, "ADBE Tile-0004", AEStreamParser::FloatParser);
271 effect->outputHeight = GetProperty(streamHandle, "ADBE Tile-0005", AEStreamParser::FloatParser);
272 effect->mirrorEdges = GetProperty(streamHandle, "ADBE Tile-0006", AEStreamParser::BooleanParser);
273 effect->phase = GetProperty(streamHandle, "ADBE Tile-0007", AEStreamParser::FloatParser);
274 effect->horizontalPhaseShift =
275 GetProperty(streamHandle, "ADBE Tile-0008", AEStreamParser::BooleanParser);
276 return effect;
277}
278
279static void InitEffect(const AEGP_StreamRefH& streamHandle, pag::Effect* effect) {
280 if (effect == nullptr) {

Callers 1

GetEffectByTypeFunction · 0.85

Calls 1

GetPropertyFunction · 0.85

Tested by

no test coverage detected