#[repr(C, packed(1))]pub struct PrSDKGPUImageProcessingSuite {
pub PixelFormatConvert: Option<unsafe extern "C" fn(inDeviceIndex: csSDK_uint32, inSrc: *const c_void, inSrcRowBytes: csSDK_int32, inSrcPixelFormat: PrPixelFormat, inDest: *mut c_void, inDestRowBytes: csSDK_int32, inDestPixelFormat: PrPixelFormat, inWidth: csSDK_uint32, inHeight: csSDK_uint32, inQuality: PrRenderQuality) -> prSuiteError>,
pub Scale: Option<unsafe extern "C" fn(inDeviceIndex: csSDK_uint32, inSrc: *const c_void, inSrcRowBytes: csSDK_int32, inSrcWidth: csSDK_uint32, inSrcHeight: csSDK_uint32, inDest: *mut c_void, inDestRowBytes: csSDK_int32, inDestWidth: csSDK_uint32, inDestHeight: csSDK_uint32, inPixelFormat: PrPixelFormat, inScaleX: f32, inScaleY: f32, inQuality: PrRenderQuality) -> prSuiteError>,
pub GaussianBlur: Option<unsafe extern "C" fn(inDeviceIndex: csSDK_uint32, inSrc: *const c_void, inSrcRowBytes: csSDK_int32, inSrcWidth: csSDK_uint32, inSrcHeight: csSDK_uint32, inDest: *mut c_void, inDestRowBytes: csSDK_int32, inDestWidth: csSDK_uint32, inDestHeight: csSDK_uint32, inPixelFormat: PrPixelFormat, inSigmaX: f32, inSigmaY: f32, inRepeatEdgePixels: prBool, inBlurHorizontally: prBool, inBlurVertically: prBool, inQuality: PrRenderQuality) -> prSuiteError>,
}Expand description
Access to common GPU image processing algorithms
Fields§
§PixelFormatConvert: Option<unsafe extern "C" fn(inDeviceIndex: csSDK_uint32, inSrc: *const c_void, inSrcRowBytes: csSDK_int32, inSrcPixelFormat: PrPixelFormat, inDest: *mut c_void, inDestRowBytes: csSDK_int32, inDestPixelFormat: PrPixelFormat, inWidth: csSDK_uint32, inHeight: csSDK_uint32, inQuality: PrRenderQuality) -> prSuiteError>Convert between formats on the GPU One of inSrcPixelFormat or inDestPixelFormat must be a host format, the other must be either PrPixelFormat_GPU_BGRA_4444_16f or PrPixelFormat_GPU_BGRA_4444_32f
Scale: Option<unsafe extern "C" fn(inDeviceIndex: csSDK_uint32, inSrc: *const c_void, inSrcRowBytes: csSDK_int32, inSrcWidth: csSDK_uint32, inSrcHeight: csSDK_uint32, inDest: *mut c_void, inDestRowBytes: csSDK_int32, inDestWidth: csSDK_uint32, inDestHeight: csSDK_uint32, inPixelFormat: PrPixelFormat, inScaleX: f32, inScaleY: f32, inQuality: PrRenderQuality) -> prSuiteError>Scale a frame on the GPU inPixelFormat must be PrPixelFormat_GPU_BGRA_4444_16f or PrPixelFormat_GPU_BGRA_4444_32f
GaussianBlur: Option<unsafe extern "C" fn(inDeviceIndex: csSDK_uint32, inSrc: *const c_void, inSrcRowBytes: csSDK_int32, inSrcWidth: csSDK_uint32, inSrcHeight: csSDK_uint32, inDest: *mut c_void, inDestRowBytes: csSDK_int32, inDestWidth: csSDK_uint32, inDestHeight: csSDK_uint32, inPixelFormat: PrPixelFormat, inSigmaX: f32, inSigmaY: f32, inRepeatEdgePixels: prBool, inBlurHorizontally: prBool, inBlurVertically: prBool, inQuality: PrRenderQuality) -> prSuiteError>Gaussian blur on the GPU inPixelFormat must be PrPixelFormat_GPU_BGRA_4444_16f or PrPixelFormat_GPU_BGRA_4444_32f
Trait Implementations§
Source§impl Clone for PrSDKGPUImageProcessingSuite
impl Clone for PrSDKGPUImageProcessingSuite
Source§fn clone(&self) -> PrSDKGPUImageProcessingSuite
fn clone(&self) -> PrSDKGPUImageProcessingSuite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrSDKGPUImageProcessingSuite
Auto Trait Implementations§
impl Freeze for PrSDKGPUImageProcessingSuite
impl RefUnwindSafe for PrSDKGPUImageProcessingSuite
impl Send for PrSDKGPUImageProcessingSuite
impl Sync for PrSDKGPUImageProcessingSuite
impl Unpin for PrSDKGPUImageProcessingSuite
impl UnwindSafe for PrSDKGPUImageProcessingSuite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more