Skip to main content
Inspiring
January 29, 2025
Question

result_rect and max_result_rect in SmartPrerender

  • January 29, 2025
  • 1 reply
  • 837 views

Hi, I'm trying to understand smartfx, specifically result_rec & max_result_rect.

If we examine Shifter.cpp example in sdk, and let's say output comp is 1920x1080, and layer we applied effect to is also 1920x1080, and we use offset, it will offset pixels properly, but if we apply effect to 4K footage, the footage effect has been applied to will be cut off if offset is used.

How to combat this? Thanks

1 reply

Kevin J. Monahan Jr.
Community Manager
Community Manager
January 30, 2025

Hello @mirza36163514e0ud,

Thanks for the post. While we await a response from an expert or the product team, if you have not already done so, can you check this document to see if it helps you understand how to solve your issue better? https://adobe.ly/4hc6yqT. I hope it helps. Let the community know.

 

Thanks,
Kevin

 

Kevin Monahan - Sr. Community and Engagement Strategist – Adobe Pro Video and Audio
Inspiring
January 30, 2025

I've read that many times (that section in particular). And I've looked in detail all examples which use smart render. When I come here, it's my last resort 🙂

Inspiring
February 1, 2025

Let me be a bit more specific. If someone could just write shortest possible example of pre-render and smart-render function, where:

1.) Input is trough layer param, not input itself (example: effect is applied to a solid, where dropdown chooses another layer for input pixels) 

2.) Smart render is rendering all layer input pixels (so, input is either larger than in_data.width or smaller)

Even in examples in sdk, if you have layer which you apply effect to which is 4K, and the composition size is 1920x1080, and you move it's position via param (x,y position slider), it will only render 1920x1080 + (10% I think), so, it's basically cut off, and I don't know how to encompass all pixels.