beautypg.com

Filter manipulation, 40 filter manipulation, Filter interface – Google Flix Engine Linux Reference Manual User Manual

Page 179: Filter, Flix2_addfilter(), Modules, Functions, 1 function documentation

background image

5.40 Filter Manipulation

173

5.40

Filter Manipulation

Modules

Deprecated

Functions

on2sc Flix2_AddFilter

(

FLIX2PLGNHANDLE

∗pPlgn, const

FLIX2HANDLE

flix, const char

∗plgn_name)

Add a filter to the encoder’s filter chain.

on2sc Flix2_RemoveFilter

(

FLIX2PLGNHANDLE

plgn)

Remove a filter to the encoder’s filter chain.

on2sc Flix2_FilterSetParamAsStr

(

FLIX2PLGNHANDLE

plgn, const char ∗name, const

on2tc

∗value)

Set the value of a parameter in a filter instance using a string representation.

on2sc Flix2_FilterGetParamAsStr

(

FLIX2PLGNHANDLE

plgn, const char ∗name,

on2tc

∗value,

int32_t

∗len)

Retrieve the value of a parameter in a filter instance represented as a string.

on2sc Flix2_FilterSetParam

(

FLIX2PLGNHANDLE

plgn, const char ∗name, double inDblVal)

Set the value of a parameter in a filter instance using a double representation.

on2sc Flix2_FilterGetParam

(

FLIX2PLGNHANDLE

plgn, const char ∗name, double ∗outDblVal)

Retrieve the value of a parameter in a filter instance represented as a double.

5.40.1

Function Documentation

5.40.1.1

on2sc Flix2_AddFilter (FLIX2PLGNHANDLE ∗ pPlgn, const FLIX2HANDLE flix, const
char ∗ plgn_name)

Add a filter to the encoder’s filter chain.

Initializes a FLIX2PLGNHANDLE mapped to plgn_name for use in subsequent filter calls.

Parameters:

→ pPlgn Storage location to receive the value of the created FLIX2PLGNHANDLE

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← plgn_name Name of the filter to add to the chain

Return values:

ON2_OK

the engine successfully added the filter and initialized a FLIX2PLGNHANDLE for use in

filter related functions.

ON2_INVALID_PARAMS

should one or more of the preconditions fail

ON2_NO_MEM

memory could not be allocated for the FLIX2PLGNHANDLE

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