beautypg.com

Flix2_setvideoproperties(), Flix2_setframeserver, Flix2_setvideoproperties – Google Flix Engine Linux Reference Manual User Manual

Page 195: Flix2, Setvideoproperties()

background image

5.43 Frame Server API

189

Precondition:

flix

is not NULL

channels

is >0 and <= 2

bitspersample

is 8 or 16

samplerate

is 11025, 22050 or 44100

Attention:

Available only in the

Flix Engine Core Library

Remarks:

Taken together with

Flix2_SetVideoProperties()

, can be viewed as the analogue of

Flix2_-

SetInputFile()

Note:

MUST be called before

Flix2_EncodeFrame()

if audio output is desired

Calling this function after calling

Flix2_EncodeFrame

(

FrameTypeAudio

) is NOT supported

5.43.4.4

on2sc Flix2_SetFrameServer (FLIX2HANDLE flix, on2bool enable)

Enable/disable the frame server for this session.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← enable Enable (on2true) or disable (on2false) frame server mode

Return values:

ON2_OK

on success

ON2_INVALID_PARAMS

should the precondition fail

Precondition:

flix

is not NULL

Attention:

Available only in the

Flix Engine Core Library

Note:

Default: on2false (disabled)
If enabled the user should call at least one of

Flix2_SetAudioProperties()

or

Flix2_-

SetVideoProperties()

before calling

Flix2_EncodeFrame()

5.43.4.5

on2sc Flix2_SetVideoProperties (FLIX2HANDLE flix, FE2_VideoFormat format, int32_t
width, int32_t height, int32_t pitch, int32_t rate, int32_t scale)

Set the input video properties for the frame server.

When

FrameTypeVideo

is passed to

Flix2_EncodeFrame()

the frame server will assume the input is of this

format.

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