Commit c3c9ec2
committed
feat(filter_protocol): Filter Editor SDK contract + registry service
Exposes the FilterTransform contract and the FilterRegistryService as a
shared cross-DSO surface so the host (PJ4) and the Filter Editor toolbox
plugin can agree on a single set of builtin transforms — same registry,
same instances, no duplicated factories.
- pj_plugins/filter_protocol/sdk:
- FilterTransform + builtin_transforms (12 vendored stateful operators:
scale, offset, abs, derivative, integral, moving_average, moving_rms,
moving_variance, outlier_removal, samples_counter, binary_filter,
time_since_previous, none).
- FilterTransformFactory: typed registry keyed by string id; create()
returns shared_ptr<FilterTransform> with a deleter that pins the
library_owner (cross-DSO lifetime safety).
- FilterRegistryService C ABI + FilterRegistryView C++ wrapper that
plugins use to register transforms during bind() and resolve them
later. Live instances bridged via a static catalogue so the per-id
deleter handed back to plugins can free them after the host shuts
down.
- pj_plugins/host/filter_registry_host.hpp: thin adapter that wraps a
FilterTransformFactory in the service vtable, with a noexcept-correct
C ABI and idempotent unregister.1 parent 8f485e5 commit c3c9ec2
13 files changed
Lines changed: 1567 additions & 7 deletions
File tree
- pj_base/include/pj_base
- builtin
- pj_plugins
- filter_protocol/include/pj_plugins/sdk
- include/pj_plugins/host
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 36 | + | |
| 37 | + | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
20 | 39 | | |
21 | 40 | | |
22 | 41 | | |
| |||
29 | 48 | | |
30 | 49 | | |
31 | 50 | | |
32 | | - | |
| 51 | + | |
33 | 52 | | |
34 | 53 | | |
35 | 54 | | |
| |||
0 commit comments