Skip to main content
Inspiring
March 29, 2022
Question

render composition and get frame data?

  • March 29, 2022
  • 1 reply
  • 290 views

Is there any way to render a composition and get the byte data of a frame image?

I guess it may be "render xxx suite", but I don't know how to do it.

This topic has been closed for replies.

1 reply

Mylenium
Legend
March 29, 2022

That would be the AEIO suites, the AEGP render suite or just dumping an effects buffer, depending on the situation...

 

Mylenium

Inspiring
March 29, 2022

thanks, I got the AEGP_WorldH with the render suite, how do I convert the AEGP_WorldH into an image and display it?

James Whiffin
Legend
April 4, 2022

From a layerH to pixels, you can use these:

    ERR(suites.LayerRenderOptionsSuite1()->AEGP_NewFromLayer(NULL, *layerH, &optionsH));
    ERR(suites.LayerRenderOptionsSuite1()->AEGP_GetTime(optionsH, &curTime));
    ERR(suites.RenderSuite5()->AEGP_RenderAndCheckoutLayerFrame(optionsH, NULL, NULL, &receipt));
    ERR(suites.RenderSuite4()->AEGP_GetReceiptWorld(receipt, &worldH));
    ERR(suites.WorldSuite3()->AEGP_FillOutPFEffectWorld(worldH, &world));
    ERR(suites.WorldSuite3()->AEGP_GetType(worldH, &depth));
    ERR(suites.RenderSuite4()->AEGP_CheckinFrame(receipt));

Does that suit your workflow?