You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update RustSynth to version 0.5.1 with various improvements and optimizations
- Enhanced frame processing in `lib.rs` for better performance by modifying pixel access patterns.
- Bumped version numbers in `Cargo.toml` files for `rustsynth`, `rustsynth-derive`, and `rustsynth-sys` to 0.5.1.
- Removed unused `FilterType` enum from `traits.rs` to clean up the codebase.
- Improved error handling and safety in `frame.rs` by using raw pointer access for property retrieval and setting.
- Added constants for property keys in `frame.rs` to avoid magic strings and improve readability.
- Refactored property access methods to use unsafe raw access for performance gains.
Copy file name to clipboardExpand all lines: rustsynth/src/filter/mod.rs
-29Lines changed: 0 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@ use rustsynth_sys::{VSActivationReason, VSFilterMode};
2
2
3
3
usecrate::ffi;
4
4
usecrate::ffi::VSRequestPattern;
5
-
usecrate::frame::{Frame,FrameContext};
6
5
usecrate::node::Node;
7
6
8
7
pubstructFilterDependency{
@@ -96,34 +95,6 @@ impl FilterMode {
96
95
}
97
96
}
98
97
99
-
/// A filter’s “getframe” function. It is called by the core when it needs the filter to generate a frame.
100
-
/// It is possible to allocate local data, persistent during the multiple calls requesting the output frame.
101
-
/// In case of error, call setFilterError and return [None].
102
-
/// Depending on the [FilterMode] set for the filter, multiple output frames could be requested concurrently.
103
-
/// It is never called concurrently for the same frame number.
104
-
///
105
-
/// # Arguments
106
-
///
107
-
/// * `n`: Requested frame number.
108
-
/// * `activation_reason`: This function is first called with [ActivationReason::Initial]. At this point the function should request the input frames it needs and return [None]. When one or all of the requested frames are ready, this function is called again with [ActivationReason::AllFramesReady]. The function should only return a frame when called with [ActivationReason::AllFramesReady].
109
-
/// If a the function is called with [ActivationReason::Error] all processing has to be aborted and any.
110
-
/// * `instance_data`: The filter’s private instance data.
111
-
/// * `frame_data`: Optional private data associated with output frame number `n``. It must be deallocated before the last call for the given frame ([ActivationReason::AllFramesReady] or error).
0 commit comments