Expand description
Cross-platform GPU video format conversion and scaling (wgpu compute).
Public API: one VTImage in, one VTImage out via VTSampler::process or
VTSampler::encode. CPU pixels and render-target textures are handled internally
with a scratch pool to avoid extra copies when GPU usages already match.
Re-exports§
pub use bridge::BridgeError;pub use wgpu;
Modules§
- bridge
- Platform texture bridges (D3D11 / CVPixelBuffer+Metal → wgpu).
Structs§
- Pipeline
Key - VTImage
- User-facing “one image” (format + size + backing).
- VTImage
Owned - GPU image allocated by
crate::VTSampler::allocate. - VTProcess
Options - VTSampler
- GPU video convert + scale engine (one input image → one output image per call).
- VTSampler
Builder - Builds a
VTSampleron a shared or external GPU device.
Enums§
- Pixel
Data - CPU-side pixel payload referenced by
crate::VTImage. - VTColor
Space - YUV/RGB matrix selection for conversion shaders.
- VTFormat
- Logical pixel format for conversion and scaling.
- VTSample
Error - Errors surfaced by the conversion pipeline.
- VTScale
Filter - Filtering used when input and output dimensions differ.
- VTTexture
Role - Describes how a GPU texture participates in a process pass.