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

Function GetLayerRenderFrameSize

exporter/src/utils/AEHelper.cpp:179–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void GetLayerRenderFrameSize(AEGP_LayerRenderOptionsH& renderOptions, A_u_long& stride,
180 A_long& width, A_long& height) {
181 Suites->LayerRenderOptionsSuite2()->AEGP_SetWorldType(renderOptions, AEGP_WorldType_8);
182 Suites->LayerRenderOptionsSuite2()->AEGP_SetDownsampleFactor(renderOptions, 1, 1);
183
184 AEGP_FrameReceiptH frameReceipt;
185 Suites->RenderSuite5()->AEGP_RenderAndCheckoutLayerFrame(renderOptions, nullptr, nullptr,
186 &frameReceipt);
187 AEGP_WorldH imageWorld;
188 Suites->RenderSuite5()->AEGP_GetReceiptWorld(frameReceipt, &imageWorld);
189 Suites->WorldSuite3()->AEGP_GetSize(imageWorld, &width, &height);
190 Suites->WorldSuite3()->AEGP_GetRowBytes(imageWorld, &stride);
191
192 Suites->RenderSuite5()->AEGP_CheckinFrame(frameReceipt);
193}
194
195std::vector<char> GetProjectFileBytes() {
196 std::vector<char> fileBytes = {};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected