| 471 | } |
| 472 | |
| 473 | static void CheckLayerFlags(std::shared_ptr<PAGExportSession> session, pag::Layer* layer) { |
| 474 | const auto& Suites = GetSuites(); |
| 475 | |
| 476 | auto layerHandle = session->layerHandleMap[layer->id]; |
| 477 | if (layerHandle == nullptr) { |
| 478 | return; |
| 479 | } |
| 480 | AEGP_LayerFlags layerFlags; |
| 481 | Suites->LayerSuite6()->AEGP_GetLayerFlags(layerHandle, &layerFlags); |
| 482 | if (layerFlags & AEGP_LayerFlag_ADJUSTMENT_LAYER) { |
| 483 | session->pushWarning(AlertInfoType::AdjustmentLayer); |
| 484 | } |
| 485 | if (layerFlags & AEGP_LayerFlag_TIME_REMAPPING) { |
| 486 | session->pushWarning(AlertInfoType::LayerTimeRemapping); |
| 487 | } |
| 488 | if ((layerFlags & AEGP_LayerFlag_LAYER_IS_3D) && |
| 489 | !session->configParam.isTagCodeSupport(pag::TagCode::Transform3D)) { |
| 490 | session->pushWarning(AlertInfoType::Layer3D); |
| 491 | } |
| 492 | if (layerFlags & AEGP_LayerFlag_MOTION_BLUR && |
| 493 | !session->configParam.isTagCodeSupport(pag::TagCode::LayerAttributesExtra)) { |
| 494 | session->pushWarning(AlertInfoType::TagLevelMotionBlur); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | static std::string TextSelectorBasedOnToString(pag::TextSelectorBasedOn basedOn) { |
| 499 | switch (basedOn) { |
no test coverage detected