Skip to main content

wmv2_decoder_decode

Function wmv2_decoder_decode 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn wmv2_decoder_decode( handle: *mut c_void, payload: *const u8, payload_len: usize, is_key_frame: i32, ) -> i32
Expand description

Decode one assembled WMV2 frame payload.

Returns: 1 = decoded frame available 0 = no frame (header not found) -1 = invalid arguments -2 = decode error

ยงSafety

A non-null handle must be a live handle returned by wmv2_decoder_create, with exclusive access for this call. When all arguments pass the null and length checks, payload must point to payload_len initialized bytes in one allocation, readable and unchanged for this call. The length must not exceed isize::MAX, and the payload must not overlap decoder-owned memory. Previously returned frame pointers must not be accessed during this call.