Function openjpeg_sys::opj_stream_create_file_stream

source ยท
pub unsafe extern "C" fn opj_stream_create_file_stream(
    fname: *const c_char,
    p_buffer_size: OPJ_SIZE_T,
    p_is_read_stream: OPJ_BOOL,
) -> *mut opj_stream_t
Expand description

Create a stream from a file identified with its filename with a specific buffer size

  • fname โ€” the filename of the file to stream
  • p_buffer_size โ€” size of the chunk used to stream
  • p_is_read_stream โ€” whether the stream is a read stream (true) or not (false)