beautypg.com

Overlay_options_setmaskpixelxy, Overlay_options_setmaskpixelxy() – Google Flix Engine Linux Reference Manual User Manual

Page 136

background image

130

Flix Engine Linux Module Documentation

Return values:

ON2_OK

the component values were set successfully

ON2_INVALID_PARAMS

the precondition failed

ON2_NET_ERROR

the underlying communication layer failed

Precondition:

flix

is not NULL

Remarks:

The color specified will become transparent when the overlay image is drawn on the video image.
Once this function has been called successfully,

overlay_options_Reset()

must be called to turn trans-

parency off.
Calling this method will disable masking based on XY coordinate.
Using a PNG or bitmap with full alpha channel will produce better results than using a transparency
color.
If using this method to add an overlay to video with an existing alpha channel, the transparent portions
of the overlay will be transparent in the output video. Opaque portions of the overlay will be averaged
with the existing alpha data.

Deprecated

Use the

Filter Interface

along with

FE2_FILTER_OVERLAY

and the

FE2_OVERLAY_MASK_R

,

FE2_OVERLAY_MASK_G

and

FE2_OVERLAY_MASK_B

parameters. This function will be re-

moved in a future release.

5.31.4.8

on2sc overlay_options_SetMaskPixelXY (FLIX2HANDLE flix, int32_t maskPixelX,
int32_t maskPixelY)

Set the X and Y coordinates of the mask pixel.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← maskPixelX the X coordinate value

← maskPixelY the Y coordinate value

Return values:

ON2_OK

the coordinate values were set successfully

ON2_INVALID_PARAMS

the precondition failed

ON2_NET_ERROR

the underlying communication layer failed

Precondition:

flix

is not NULL

Remarks:

The color at the specified coordinate will become transparent when the overlay image is drawn on the
video image.

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