Fe2_pngex_export_cue_points, Fe2_pngex_enable_alpha, Fe2_pngex_compression_level – Google Flix Engine Linux Reference Manual User Manual

Page 144

Advertising
background image

138

Flix Engine Linux Module Documentation

5.32.2.5

#define FE2_PNGEX_AUTO_EXPORT_START_TIME

Filter parameter for setting PNG auto generation start time.

The value specified MUST be in milliseconds. This parameter affects the following changes on time
calculations explained in the

FE2_PNGEX_AUTO_EXPORT_COUNT

section:

time_slice_duration =

(video_stream_duration - FE2_PNGEX_AUTO_EXPORT_START_TIME) /

FE2_PNGEX_AUTO_EXPORT_COUNT

first_png_time = FE2_PNGEX_AUTO_EXPORT_START_TIME

Subsequent PNG times will be calculated the final equation outlined in the

FE2_PNGEX_AUTO_-

EXPORT_COUNT

section.

sc = Flix2_AddFilter(&png_exporter_plgn, flix, FE2_FILTER_PNGEX);

if (sc == ON2_OK)

// set the first auto export time to 1 second

sc = Flix2_FilterSetParam(png_exporter_plgn,

FE2_PNGEX_AUTO_EXPORT_START_TIME, 1000);

Definition at line 289 of file png_export.h.

5.32.2.6

#define FE2_PNGEX_COMPRESSION_LEVEL

Filter parameter for setting compression level used by libpng.

Notes from png.h:

Set the library compression level. Currently, valid values range from 0 - 9, corresponding directly to the
zlib compression levels 0 - 9 (0 - no compression, 9 - "maximal" compression). Note that tests have shown
that zlib compression levels 3-6 usually perform as well as level 9 for PNG images, and do considerably
fewer caclulations. In the future, these values may not correspond directly to the zlib compression levels.

In addition to the above range, -1 corresponds to zlib’s default value.

Note:

Default: -1 (Z_DEFAULT_COMPRESSION)

Definition at line 370 of file png_export.h.

5.32.2.7

#define FE2_PNGEX_ENABLE_ALPHA

Filter parameter for preserving source video alpha channel data in exported PNG images.

If enabled, the PNG export filter preserves the source video alpha when exporting PNG images. This
setting will only produce PNG images with alpha channels if encoding Flash 8 Video with Alpha.

sc = Flix2_AddFilter(&png_exporter_plgn, flix, FE2_FILTER_PNGEX);

if (sc == ON2_OK)

// enable alpha preservation

sc = Flix2_FilterSetParam(png_exporter_plgn,

FE2_PNGEX_ENABLE_ALPHA, on2true);

Definition at line 172 of file png_export.h.

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

Advertising