#[repr(C, packed(1))]pub struct PrSDKPixelFormatSuite {
pub GetBlackForPixelFormat: Option<unsafe extern "C" fn(pixelFormat: PrPixelFormat, pixelData: *mut c_void) -> prSuiteError>,
pub GetWhiteForPixelFormat: Option<unsafe extern "C" fn(pixelFormat: PrPixelFormat, pixelData: *mut c_void) -> prSuiteError>,
pub ConvertColorToPixelFormattedData: Option<unsafe extern "C" fn(pixelFormat: PrPixelFormat, alpha: f32, red: f32, green: f32, blue: f32, pixelData: *mut c_void) -> prSuiteError>,
}Fields§
§GetBlackForPixelFormat: Option<unsafe extern "C" fn(pixelFormat: PrPixelFormat, pixelData: *mut c_void) -> prSuiteError>Retrieves the minimum i.e. “black” value for a give pixel type.
[NOTE] pixel types like YUY2, YUYV actually contain a group of two pixels to specify a color completely, so the data size returned in this case will be 4 bytes (rather than 2)
@param pixelFormat the Premiere pixel format whose black level you want @param pixelData a void pointer to data large enough to hold the pixel value (see note above)
@returns suiteError_NoError : successful retreival of black value @returns suiteError_Fail :
GetWhiteForPixelFormat: Option<unsafe extern "C" fn(pixelFormat: PrPixelFormat, pixelData: *mut c_void) -> prSuiteError>Retrieves the maximum i.e. “white” value for a give pixel type.
[NOTE] pixel types like YUY2, YUYV actually contain a group of two pixels to specify a color completely, so the data size returned in this case will be 4 bytes (rather than 2)
@param pixelFormat the Premiere pixel format whose white level you want @param pixelData a void pointer to data large enough to hold the pixel value (see note above)
@returns suiteError_NoError : successful retreival of white value @returns suiteError_Fail :
ConvertColorToPixelFormattedData: Option<unsafe extern "C" fn(pixelFormat: PrPixelFormat, alpha: f32, red: f32, green: f32, blue: f32, pixelData: *mut c_void) -> prSuiteError>Converts an alpha, red, green, blue specification into a pixel value for a give pixel type.
[NOTE] pixel types like YUY2, YUYV actually contain a group of two pixels to specify a color completely, so the data size returned in this case will be 4 bytes (rather than 2)
@param pixelFormat the Premiere pixel format whose white level you want @param alpha alpha value (0.0 - 1.0) @param red red value (0.0 - 1.0) @param green green value (0.0 - 1.0) @param blue blue value (0.0 - 1.0) @param pixelData a void pointer to data large enough to hold the pixel value (see note above)
@returns suiteError_NoError : successful conversion of color value @returns suiteError_Fail :
Trait Implementations§
Source§impl Clone for PrSDKPixelFormatSuite
impl Clone for PrSDKPixelFormatSuite
Source§fn clone(&self) -> PrSDKPixelFormatSuite
fn clone(&self) -> PrSDKPixelFormatSuite
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more