pub unsafe extern "C" fn de265_decode(
arg1: *mut de265_decoder_context,
more: *mut c_int,
) -> TypeExpand description
Do some decoding. Returns status whether it did perform some decoding or why it could not do so. If ‘more’ is non-null, indicates whether de265_decode() should be called again (possibly after resolving the indicated problem). DE265_OK - decoding ok DE265_ERROR_IMAGE_BUFFER_FULL - DPB full, extract some images before continuing DE265_ERROR_WAITING_FOR_INPUT_DATA - insert more data before continuing
You have to consider these cases:
- decoding successful -> err = DE265_OK, more=true
- decoding stalled -> err != DE265_OK, more=true
- decoding finished -> err = DE265_OK, more=false
- unresolvable error -> err != DE265_OK, more=false