Repository navigation
Releases
Releases · potistudio/aexlo
aexlo 0.3.0
Added
Observer::unsupportedhears about what the plugin asked for and aexlo
does not do (UnsupportedEvent, at everyObserveLevel): suites or
versions it does not serve (UnsupportedKind::MissingSuite), host
functions it only stubs (Stub) and calls it serves but declines for those
arguments (Declined). They are still logged as warnings.Loader::observerinstalls anObserverbeforePF_Cmd_GLOBAL_SETUP, so
setup commands, the suite calls they make and what they allocate are
observed too.PluginInstance::allocationslists the handles and worlds the plugin holds
(LiveAllocation) while an observer is installed or allocation tracking is
on, andPluginInstance::read_allocationcopies their bytes between
commands. Memory the plugin freed on another thread, such as an iterate
worker, is neither listed nor read.PluginInstance::statereturns anInstanceState: theglobal_dataand
sequence_datahandles, the next command's time, and thePF_OutDatathe
last command left.ObserveLevel::Argumentshands each suite call's arguments and result to
the observer (SuiteCallEvent::args,SuiteCallEvent::result); the lower
levels leave them empty and pay nothing for them. The Handle and Iterate
suites,AcquireSuite/ReleaseSuiteand the utility callbacks are now
reported as suite calls too.- Text layers:
PluginInstance::set_text_layerputs aTextLayeron the
effect's layer.AEGP_GetLayerObjectTypethen answers
AEGP_ObjectType_TEXT, and the new "AEGP Text Layer Suite" v1 hands out its
glyph outlines, which the PF Path Data Suite reads with absolute tangents as
After Effects gives them.TextLayer::layoutsets a string in a font
(TextStyle) andTextLayer::rasterizedraws it as the input layer, so
text effects such as TextGrad render.AexloError::Fontreports a font that
cannot be read. Pipl::readreads a plugin's PiPL resource without loading it: from a
Windows binary'sPIPLresource, a macOS bundle's.rsrcfiles (in their
data or resource fork), a Mach-O binary's__TEXT,__piplsection or its
resource fork; a.rsrcor__piplsection it cannot read is passed over
for the next place. Each
PiplPropertydecodes to aPiplValue, andPiplhas accessors for the
name, category, match name, entry point,eVER(EffectVersion) and
eGLO/eGL2.AexloError::InvalidPiplreports a malformed one.PluginInstance::versionreturns themy_versionthe plugin reported at
PF_Cmd_GLOBAL_SETUP, to compare withPipl::effect_version.PluginInstance::param_button_labelreturns the text on a button
parameter (PF_ButtonDef), which plugins often fill in place of the
parameter's name.- "AEGP Stream Suite" v11 (
AEGP_GetUniqueStreamID) and "AEGP Keyframe
Suite" v5 (keyframe label colours). RXXR applies its Preset popup through
them, and ten more fixtures that asked for Stream Suite v11 (the AOD
effects, Circle-Repeater, RainyDay) no longer report it missing. - The AEGP Utility, Persistent Data and PF Param Utils suites report their
calls to the observer, soaexlo inspectandaexlo compatsee them.
AEGP_ExecuteScript, andAEGP_GetPluginPlatformRefon macOS, report
themselves as stubs. - "AEGP Layer Mask Suite" v6 and v7 and "AEGP Mask Outline Suite" v3 and v5
read the masksPluginInstance::set_mask_pathsputs on the layer, and
AEGP_GetNewMaskStreamgives a mask's outline, opacity, feather and
expansion streams. Changing a mask is declined. BitonicPixelSorter, which
reads its Path through them once it is registered with AEGP, renders with
masks on the layer. AEGP_SetStreamValuesets an effect parameter's value, clamped to its valid
range (a color keeps its alpha), andAEGP_SetDynamicStreamFlaghides and
disables parameters (PF_PUI_INVISIBLE,PF_PUI_DISABLED), which
AEGP_GetDynamicStreamFlagsnow reports. Deep Glow's and TextGrad's Reset
and Swap buttons work through them, and Deep Glow's
PF_Cmd_UPDATE_PARAMS_UIno longer fails.
Fixed
- The published crate includes the MIT license text.
- The text a plugin reports (
PF_Cmd_ABOUT, a dialog's message, an error)
comes back whole. Line breaks are\ninstead of After Effects'\r, which
made each line overwrite the one before in a terminal, and text that is not
UTF-8 is read as Latin-1, so a©stays one. The ANSI suite'ssprintf
formats with the C library'svsnprintf(at most 256 bytes) instead of
knowing only%dand%s: a format that was not UTF-8 (Deep Glow 2,
TextGrad, Displacer Pro) wrote nothing, and%.120s(Cosmic) was printed
as is. - On macOS the loader now finds the entry point the PiPL names, as it
already did on Windows, before trying the usual symbol names. - "AEGP Utility Suite" serves each version at its own layout: v3–7
(AEGP_UtilitySuite1–3), v10–11 (4–5) and v13 (6). One table
served every version from 1 to 18, so a v11 plugin calling
AEGP_RegisterWithAEGPreachedAEGP_EndUndoGroup, and a v13 plugin
callingAEGP_StartUndoGroupreachedAEGP_RegisterWithAEGP. Every
other slot returned success without doing anything; the calls now do
what the SDK says (versions, quiet errors, palette colours, HSF ratios,
AEGP_GetSuppressInteractiveUIfromAppHost::is_render_engine, the
APPpath ofAEGP_GetPluginPaths).AEGP_IsScriptingAvailableanswers
false, since aexlo runs no scripts. Versions the SDK never defined are
refused. AEGP_GetDataHandleandAEGP_SetDataHandlekeep their data in the
Persistent Data store instead of returning nothing and dropping it.- An arbitrary-data parameter starts as a copy of its default
(PF_Arbitrary_COPY_FUNCofdephault), as in After Effects, and falls back
toPF_Arbitrary_NEW_FUNConly without a default or when the copy fails.
Plugins whoseNEW_FUNCmakes an empty placeholder (TextGrad's gradient)
rendered nothing. AEGP_DisposeColorProfilerefuses a pointer it did not hand out instead of
freeing it. A plugin that bailed out of a failed call disposed an
uninitialised profile, which aborted the process.
aexlo 0.2.0
Changed (breaking)
aexlo::sysgives every SDK enum constant aexlo uses the type of its SDK
typedef (PF_Err_NONEis aPF_Err,PF_Cmd_RENDERaPF_Cmd, ...), so a
constant has the same type on Windows and macOS. The rawafter-effects-sys
types themi32on Windows andu32on macOS, so a cast that code needed on
macOS only (PF_Err_NONE as PF_Err) can go, and code that used one as au32
(let code: u32 = PF_Err_NONE, or a comparison with au32) now needs
as u32on both.PF_ExtendedSuiteTool_*,PF_SuiteTool_*
andPF_Step_*areA_long. A constant aexlo does not use keeps the
platform type; every other item is stillafter-effects-sys's (#21).
Fixed
- The crate's documentation builds on docs.rs: the macOS target is documented
instead of the Windows one, which cannot cross-build the SEH shim there
(#41).
aexlo 0.1.0
The first public release. It loads .aex / .plugin effects outside After
Effects on Windows x64 and macOS arm64 and renders them through the GPU, smart
and legacy paths. See the README for which SDK suites are implemented.
Added
Host::loader/Host::entry_loader/Host::entry_loader_rawand the
Loaderbuilder: strict mode, the input layer and the output size are set
before the first command runs (#33).OutFlags,OutFlags2,ParamUiFlagsandPixelFormat: typed flags and
FourCCs with the SDK's names as constants (#32).aexlo::sys: a re-export of theafter-effects-sysbindings the public API
uses (#28).- Crate documentation on the trust and process model: plugins run unsandboxed
in this process, host state is process-wide, andPluginInstanceis not
Send(#29, #31, #35).
Changed (breaking)
Host::try_loadis nowHost::load.try_load_with,try_load_with_initial
andtry_load_sizedare replaced byHost::loader(path)with.strict(),
.input(),.output_size()and.size(), andfrom_entry_raw_withby
Host::entry_loader_raw(addr).strict(..)(#33).PluginInstance::out_flags,out_flags2,param_ui_flagsand
supported_pixel_formatsreturn the typed flags above instead ofi32/
u32(#32).ParamValue,MaskModeandTimeDisplayModeare#[non_exhaustive](#25).AexloError::PluginLoadis{ path, source }with an opaque source, so it
no longer exposesdlopen2::Error(#27).- Renamed for consistency (#34):
PluginInstance::write_rendered_pixels→write_output_rgba8Layer<Depth8>::write_rgba_bytes→write_rgba8Layer<Depth8>::from_raw→from_rgba8AnyLayer::converted→convert
set_main_windowis anunsafe fn(#30).PixelDepthis sealed, layer dimensions are validated (LayerError,
AexloError::InvalidSize), andTimeenforces its invariants.
Fixed
- A panic in aexlo's own suite code while a plugin calls it is reported to the
plugin asPF_Err_INTERNAL_STRUCT_DAMAGEDinstead of aborting the process
(#31). - On Windows, only a C++ exception leaving a plugin's entry point becomes
PF_Err_INTERNAL_STRUCT_DAMAGED. An access violation crashes the process
as on macOS instead of being reported as a failed command.