
5.38 Main Engine Interface 159
5.38.2.6 on2sc Flix2_Errno (const FLIX2HANDLE flix, FE2_errno ∗ flixerrno, int32_t ∗ syserrno)
Retrieve the current error state of the engine.
If an API call has returned an error, this function can be used to retrieve a more specific reason.
Parameters:
← flix Handle to the flix engine returned from Flix2_Create() or Flix2_CreateEx()
→ flixerrno Storage location to receive the engine error
→ syserrno Storage location to receive the system wide error
Return values:
ON2_OK on success
ON2_INVALID_PARAMS should the precondition fail
ON2_NET_ERROR the underlying communication layer failed
Precondition:
flix is not NULL
Remarks:
syserrno is the value of errno
If the last library status code was ON2_NET_ERROR flixerrno will be the RPC clnt_stat returned
from same. enum clnt_stat values are defined in /usr/include/rpc/clnt.h.
5.38.2.7 on2sc Flix2_GetEncoderState (const FLIX2HANDLE flix, FE2_EncState ∗ pEncState)
Retrieve the current state of the encoder.
If using the function to check for encode completion: when EncStateIdle is returned, the completion status
can be obtained by calling Flix2_Errno()
Parameters:
← flix Handle to the flix engine returned from Flix2_Create() or Flix2_CreateEx()
→ pEncState Storage location to receive the result
Return values:
ON2_OK on success
ON2_INVALID_PARAMS should one or more of the preconditions fail
ON2_NET_ERROR the underlying communication layer failed
Precondition:
flix is not NULL
pEncState is not NULL
Remarks:
Linux Only: if flixd was run with the -max-sessions option, EncStateQueued may be returned if
the number of concurrent encoding sessions was exceeded. This session will run in the order it was
received when a slot becomes available
Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen
Komentarze do niniejszej Instrukcji