beautypg.com

Flix2_isencoderrunning() – Google Flix Engine Linux Reference Manual User Manual

Page 169

background image

5.38 Main Engine Interface

163

5.38.2.14

on2sc Flix2_GetSourceDuration (const FLIX2HANDLE flix, int32_t ∗ duration)

Get the duration, in milliseconds, of the source file.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

→ duration 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

duration

is not NULL

Note:

This value is only valid after a call to

Flix2_SetInputFile()

. If the duration for the file could not be

determined duration will be set to -1.

5.38.2.15

on2sc Flix2_IsEncoderRunning (const FLIX2HANDLE flix, on2bool ∗
bpIsEncoderRunning)

Check the status of an encode.

Returns whether an encode session started with

Flix2_Encode()

is still running. If the function returns

on2false

the completion status can be obtained by calling

Flix2_Errno()

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

→ bpIsEncoderRunning Storage location to receive the result

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

5.38.2.16

on2sc Flix2_Reset (FLIX2HANDLE flix)

Reset the engine to its defaults.

Resets all encoding related options to their default values. Input and output files are retained.

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen