25 cut, 1 detailed description, Deprecated functions – Google Flix Engine Linux Reference Manual User Manual

Page 107: Defines

Advertising
background image

5.25 Cut

101

5.25

Cut

5.25.1

Detailed Description

The cut filter allows for the encoding of a user specified range of time from the input media file.

Filter Parameters:

Name

|

Type

| Opt/Reqd |

Range

==================================================================================

FE2_CUT_START_SEC

| Numeric

| Optional | [0, media duration]

FE2_CUT_STOP_SEC

| Numeric

| Optional | [-1, media duration]

FE2_CUT_USE_SEEK

| Numeric

| Optional | [0, 1]

Example Usage:

sc = Flix2_AddFilter(&filter, flix, FE2_FILTER_CUT);

// start the cut at 5 seconds

if(sc == ON2_OK)

sc = Flix2_FilterSetParam(filter, FE2_CUT_START_SEC, 5.0);

// end the cut at 10 seconds

if (sc == ON2_OK)

sc = Flix2_FilterSetParam(filter, FE2_CUT_STOP_SEC, 10.0);

Deprecated functions

on2sc editor_options_GetUseCut

(const

FLIX2HANDLE

flix,

on2bool

∗pUseCut)

Determine if the cut filter is enabled.

on2sc editor_options_SetUseCut

(

FLIX2HANDLE

flix, const

on2bool

bUseCut)

Enable/disable the cut filter.

on2sc editor_options_GetCutStartTime

(const

FLIX2HANDLE

flix, double ∗pStartTime)

Get the current cut start time.

on2sc editor_options_SetCutStartTime

(

FLIX2HANDLE

flix, const double start_time)

Set the cut start time.

on2sc editor_options_GetCutStopTime

(const

FLIX2HANDLE

flix, double ∗pEndTime)

Get the current cut stop time.

on2sc editor_options_SetCutStopTime

(

FLIX2HANDLE

flix, const double end_time)

Set the cut stop time.

Defines

• #define

FE2_FILTER_CUT

Filter name for use with

Flix2_AddFilter()

.

• #define

FE2_CUT_START_SEC

Filter parameter for cut start time.

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

Advertising