「这是我参与11月更文挑战的第 16 天,活动详情查看:2021最后一次更文挑战」。
参加该活动的第 33 篇文章
正文
solid
如果输出中的每个像素都是完全不透明的,则设置为 TRUE。如果可能的话就设置它, 它支持某些优化。
solid
Set this
TRUEif every pixel in the output will be fully opaque. Set if possible; it enables certain optimizations.
reserved
忽略
reserved
Ignore.
flags
目前,唯一的标志是 PF_RenderOutputFlag_RETURNS_EXTRA_PIXELS,它告诉 After Effects 智能效果将返回比 After Effects 所请求的更多像素。
flags
Currently, the only flag is
PF_RenderOutputFlag_RETURNS_EXTRA_PIXELS, which tells After Effects that the smart effect will return more pixels than After Effects requested.
pre_render_data
将此指向 effect 在渲染期间想要访问的任何数据。
effects 也可以分配句柄并将它们存储在 out_data>frame_data 中,就像普通(非智能) effect 一样。
由于 PF_Cmd_SMART_PRE_RENDER 可以在没有相应的 PF_Cmd_SMART_RENDER 的情况下调用,因此 effects 绝不能删除这些数据本身;
一旦效果从 PF_Cmd_SMART_PRE_RENDER 返回,After Effects 拥有该数据并将处置这些数据(使用以下函数或标准的释放调用)。
pre_render_data
Point this at any data that the effect would like to access during rendering.
Effects can also allocate handles and store them in
out_data>frame_data, as with regular (non-smart) effects.Since PF_Cmd_SMART_PRE_RENDER can be called with no corresponding PF_Cmd_SMART_RENDER, effects must never delete this data themselves;
once the effect returns from PF_Cmd_SMART_PRE_RENDER, After Effects owns this data and will dispose of it (using either the following function or a standard free call).
delete_pre_render_data_func
将此指向一个最终将被调用以删除 pre_render_data 的函数。
delete_pre_render_data_func
Point this to a function that will eventually be called to delete the pre_render_data.
preserve_rgb_of_zero_alpha
preserve_rgb_of_zero_alpha 既用作效果的输入,告诉它要渲染什么,也用作效果的输出,描述它需要的输入(传递给 checkout 调用)。当在输入请求中设置 preserve_rgb_of_zero_alpha 时,effect 必须在进行 checkout 时递归地传递它,否则之前的 effect 和遮罩(蒙版)将消除 effect 所显示的那些像素。虽然在 CS3(8.0) 中仍然支持,但不鼓励使用这种方法。
preserve_rgb_of_zero_alpha
preserve_rgb_of_zero_alphais used both as input to the effect, to tell it what to render, and as output from the effect, to describe the input it needs (as passed to the checkout call). When preserve_rgb_of_zero_alpha is set in an input request, the effect must pass it recursively when making checkouts, otherwise prior effects and masking will eliminate those pixels that the effect would reveal. Use of this is discouraged, though still supported in CS3 (8.0).