Skip to main content
Inspiring
April 17, 2018
Question

Is it possible to access all input pixels in smartFX if the input is offscreen?

  • April 17, 2018
  • 1 reply
  • 940 views

Hi. To optimise things, I think smartFX discards input pixels if they are outside the output buffer. I need to access all of them regardless if the input is partially offscreen. Is this possible? Non smartFX does this but I'm hoping to do it in smartFX. Thanks!

This topic has been closed for replies.

1 reply

Community Expert
April 17, 2018

isn't it just a matter of declaring your output rect size during prerender?

here are another things to try (i don't remember if these do the trick or

not):

1. in PF_RenderRequest, set "preserve_rgb_of_zero_alpha" to "true".

2. use PF_RenderOutputFlag_RETURNS_EXTRA_PIXELS.

James Whiffin
Legend
July 21, 2021

Sorry for my (3 year) late reply. If I understand correctly, those two suggestions will expand the output buffer. But the only way to ask smartFX for any input pixels that were out of the comp buffer bounds is to use the params[INPUT]->u.ld instead of checkout_layer_pixels?

James Whiffin
Legend
July 21, 2021

I should have clarified, I'm applying this to layers that have continuous rasterization on (like text layers). From my experiments, it's not possible to access these layers out-of-bounds, as their out of-bounds-pixel were never drawn by AE in the first place.