Struct PrSDKSequenceRenderSuite

Source
#[repr(C, packed(1))]
pub struct PrSDKSequenceRenderSuite {
Show 24 fields pub MakeVideoRenderer: Option<unsafe extern "C" fn(pluginID: csSDK_uint32, outVideoRenderID: *mut csSDK_uint32, inFrameRate: PrTime) -> prSuiteError>, pub ReleaseVideoRenderer: Option<unsafe extern "C" fn(pluginID: csSDK_uint32, inVideoRenderID: csSDK_uint32) -> prSuiteError>, pub RenderVideoFrame: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParams: *mut SequenceRender_ParamsRec, inCacheFlags: PrRenderCacheType, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>, pub QueueAsyncVideoFrameRender: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outRequestID: *mut csSDK_uint32, inRenderParams: *mut SequenceRender_ParamsRec, inCacheFlags: PrRenderCacheType, inAsyncCompletionData: *mut c_void) -> prSuiteError>, pub SetAsyncRenderCompletionProc: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, asyncGetFrameCallback: PrSDKSequenceAsyncRenderCompletionProc, callbackRef: *mut c_void) -> prSuiteError>, pub GetFrameInfo: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outFrameInfo: *mut SequenceRender_FrameInfoRec) -> prSuiteError>, pub PrefetchMedia: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inFrame: PrTime) -> prSuiteError>, pub PrefetchMediaWithRenderParameters: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParams: *mut SequenceRender_ParamsRec) -> prSuiteError>, pub CancelAllOutstandingMediaPrefetches: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32) -> prSuiteError>, pub IsPrefetchedMediaReady: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outMediaReady: *mut prBool) -> prSuiteError>, pub MakeVideoRendererForTimeline: Option<unsafe extern "C" fn(inTimeline: PrTimelineID, outVideoRendererID: *mut csSDK_uint32) -> prSuiteError>, pub MakeVideoRendererForTimelineWithFrameRate: Option<unsafe extern "C" fn(inTimeline: PrTimelineID, inFrameRate: PrTime, outVideoRendererID: *mut csSDK_uint32) -> prSuiteError>, pub ReleaseVideoRendererForTimeline: Option<unsafe extern "C" fn(inVideoRendererID: csSDK_uint32) -> prSuiteError>, pub RenderVideoFrameAndConformToPixelFormat: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParams: *mut SequenceRender_ParamsRec, inCacheFlags: PrRenderCacheType, inConformToFormat: PrPixelFormat, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>, pub MakeVideoRendererForTimelineWithStreamLabel: Option<unsafe extern "C" fn(inTimeline: PrTimelineID, inStreamLabel: PrSDKStreamLabel, outVideoRendererID: *mut csSDK_uint32) -> prSuiteError>, pub RenderColorManagedVideoFrame: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt: *mut SequenceRender_ParamsRecExt, inCacheFlags: PrRenderCacheType, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>, pub QueueAsyncColorManagedVideoFrameRender: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outRequestID: *mut csSDK_uint32, inRenderParamsExt: *mut SequenceRender_ParamsRecExt, inCacheFlags: PrRenderCacheType, inAsyncCompletionData: *mut c_void) -> prSuiteError>, pub PrefetchColorManagedMedia: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inFrame: PrTime, inPrSDKColorSpaceID: PrSDKColorSpaceID) -> prSuiteError>, pub PrefetchColorManagedMediaWithRenderParameters: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt: *mut SequenceRender_ParamsRecExt) -> prSuiteError>, pub RenderColorManagedVideoFrameAndConformToPixelFormat: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt: *mut SequenceRender_ParamsRecExt, inCacheFlags: PrRenderCacheType, inConformToFormat: PrPixelFormat, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>, pub RenderColorManagedVideoFrame2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2, inCacheFlags: PrRenderCacheType, outGetFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>, pub QueueAsyncColorManagedVideoFrameRender2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outRequestID: *mut csSDK_uint32, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2, inCacheFlags: PrRenderCacheType, inAsyncCompletionData: *mut c_void) -> prSuiteError>, pub PrefetchColorManagedMediaWithRenderParameters2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2) -> prSuiteError>, pub RenderColorManagedVideoFrameAndConformToPixelFormat2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2, inCacheFlags: PrRenderCacheType, inConformToFormat: PrPixelFormat, outGetFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>,
}

Fields§

§MakeVideoRenderer: Option<unsafe extern "C" fn(pluginID: csSDK_uint32, outVideoRenderID: *mut csSDK_uint32, inFrameRate: PrTime) -> prSuiteError>§ReleaseVideoRenderer: Option<unsafe extern "C" fn(pluginID: csSDK_uint32, inVideoRenderID: csSDK_uint32) -> prSuiteError>§RenderVideoFrame: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParams: *mut SequenceRender_ParamsRec, inCacheFlags: PrRenderCacheType, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>§QueueAsyncVideoFrameRender: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outRequestID: *mut csSDK_uint32, inRenderParams: *mut SequenceRender_ParamsRec, inCacheFlags: PrRenderCacheType, inAsyncCompletionData: *mut c_void) -> prSuiteError>§SetAsyncRenderCompletionProc: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, asyncGetFrameCallback: PrSDKSequenceAsyncRenderCompletionProc, callbackRef: *mut c_void) -> prSuiteError>§GetFrameInfo: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outFrameInfo: *mut SequenceRender_FrameInfoRec) -> prSuiteError>§PrefetchMedia: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inFrame: PrTime) -> prSuiteError>

Pre-fetches the media needed to render this frame. This is a hint to the importers to begin reading media needed to render this video frame.

@param inFrame The video frame number.

§PrefetchMediaWithRenderParameters: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParams: *mut SequenceRender_ParamsRec) -> prSuiteError>

Pre-fetches the media needed to render this frame, using all of the parameters used to render the frame. This is a hint to the importers to begin reading media needed to render this video frame.

@param inFrameTime The time of the video frame number.

@param inRequestedPixelFormatArray An array of PrPixelFormats that list your format preferences in order. This list must end with PrPixelFormat_BGRA_4444_8u. @param inRequestedPixelFormatArrayCount Number of formats in the format array @param inFrameRect Video frame size @param inPixelAspectRatioNumerator The numerator for the pixel aspect ratio. @param inPixelAspectRatioDenominator The denominator for the pixel aspect ratio. @param inRenderQuality The render quality of this frame.

§CancelAllOutstandingMediaPrefetches: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32) -> prSuiteError>

This will cancel all media pre-fetches that are still outstanding.

§IsPrefetchedMediaReady: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outMediaReady: *mut prBool) -> prSuiteError>

Is all the prefetched media ready?

§MakeVideoRendererForTimeline: Option<unsafe extern "C" fn(inTimeline: PrTimelineID, outVideoRendererID: *mut csSDK_uint32) -> prSuiteError>§MakeVideoRendererForTimelineWithFrameRate: Option<unsafe extern "C" fn(inTimeline: PrTimelineID, inFrameRate: PrTime, outVideoRendererID: *mut csSDK_uint32) -> prSuiteError>§ReleaseVideoRendererForTimeline: Option<unsafe extern "C" fn(inVideoRendererID: csSDK_uint32) -> prSuiteError>§RenderVideoFrameAndConformToPixelFormat: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParams: *mut SequenceRender_ParamsRec, inCacheFlags: PrRenderCacheType, inConformToFormat: PrPixelFormat, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>§MakeVideoRendererForTimelineWithStreamLabel: Option<unsafe extern "C" fn(inTimeline: PrTimelineID, inStreamLabel: PrSDKStreamLabel, outVideoRendererID: *mut csSDK_uint32) -> prSuiteError>§RenderColorManagedVideoFrame: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt: *mut SequenceRender_ParamsRecExt, inCacheFlags: PrRenderCacheType, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>§QueueAsyncColorManagedVideoFrameRender: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outRequestID: *mut csSDK_uint32, inRenderParamsExt: *mut SequenceRender_ParamsRecExt, inCacheFlags: PrRenderCacheType, inAsyncCompletionData: *mut c_void) -> prSuiteError>§PrefetchColorManagedMedia: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inFrame: PrTime, inPrSDKColorSpaceID: PrSDKColorSpaceID) -> prSuiteError>§PrefetchColorManagedMediaWithRenderParameters: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt: *mut SequenceRender_ParamsRecExt) -> prSuiteError>§RenderColorManagedVideoFrameAndConformToPixelFormat: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt: *mut SequenceRender_ParamsRecExt, inCacheFlags: PrRenderCacheType, inConformToFormat: PrPixelFormat, getFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>§RenderColorManagedVideoFrame2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2, inCacheFlags: PrRenderCacheType, outGetFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>§QueueAsyncColorManagedVideoFrameRender2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, outRequestID: *mut csSDK_uint32, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2, inCacheFlags: PrRenderCacheType, inAsyncCompletionData: *mut c_void) -> prSuiteError>§PrefetchColorManagedMediaWithRenderParameters2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2) -> prSuiteError>§RenderColorManagedVideoFrameAndConformToPixelFormat2: Option<unsafe extern "C" fn(inVideoRenderID: csSDK_uint32, inTime: PrTime, inRenderParamsExt2: *mut SequenceRender_ParamsRecExt2, inCacheFlags: PrRenderCacheType, inConformToFormat: PrPixelFormat, outGetFrameReturn: *mut SequenceRender_GetFrameReturnRec) -> prSuiteError>

Trait Implementations§

Source§

impl Clone for PrSDKSequenceRenderSuite

Source§

fn clone(&self) -> PrSDKSequenceRenderSuite

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PrSDKSequenceRenderSuite

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for PrSDKSequenceRenderSuite

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.