Skip to main content

wmv2_decoder_get_frame

Function wmv2_decoder_get_frame 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn wmv2_decoder_get_frame( handle: *mut c_void, out: *mut Wmv2FrameView, ) -> i32
Expand description

Get the most recently decoded frame view.

The returned pointers may be read until the next decode or destroy call. They must not be used to modify the frame data.

Returns: 1 = success 0 = no decoded frame available -1 = invalid arguments

ยงSafety

A non-null handle must be a live handle returned by wmv2_decoder_create, with exclusive access for this call. If both pointers are non-null, out must be aligned and valid for writing one Wmv2FrameView, and must not overlap decoder-owned memory. No other access to out may occur during this call.