| 68 | } |
| 69 | |
| 70 | static void GetImageLayerRenderImage(uint8* rgbaBytes, const AEGP_LayerH& layerHandle, |
| 71 | A_u_long srcStride, A_u_long dstStride, A_long width, |
| 72 | A_long height) { |
| 73 | const auto& Suites = GetSuites(); |
| 74 | const auto& PluginID = GetPluginID(); |
| 75 | |
| 76 | AEGP_ItemH itemHandle = GetLayerItemH(layerHandle); |
| 77 | AEGP_RenderOptionsH renderOptions = nullptr; |
| 78 | Suites->RenderOptionsSuite3()->AEGP_NewFromItem(PluginID, itemHandle, &renderOptions); |
| 79 | if (renderOptions == nullptr) { |
| 80 | return; |
| 81 | } |
| 82 | GetRenderFrame(rgbaBytes, srcStride, dstStride, width, height, renderOptions); |
| 83 | Suites->RenderOptionsSuite3()->AEGP_Dispose(renderOptions); |
| 84 | } |
| 85 | |
| 86 | void GetImageBytes(std::shared_ptr<PAGExportSession> session, pag::ImageBytes* imageBytes, |
| 87 | const AEGP_LayerH& layerHandle, bool isVideo, float factor) { |
no test coverage detected