Fe2_pngex_auto_export_start_time, Fe2_pngex_auto_export_end_time, Fe2_pngex_auto_export_random_period – Google Flix Engine Linux Reference Manual User Manual

Page 143

Advertising
background image

5.32 PNG Image Export (Thumbnail)

137

Additional PNG time(s) is/are calculated using the following equation:

n: 0 based PNG image index

png_time = first_png_time + (time_slice_duration * n)

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

if (sc == ON2_OK)

// auto export 10 PNG images

sc = Flix2_FilterSetParam(png_exporter_plgn,

FE2_PNGEX_AUTO_EXPORT_COUNT, 10);

Definition at line 263 of file png_export.h.

5.32.2.3

#define FE2_PNGEX_AUTO_EXPORT_END_TIME

Filter parameter for setting PNG auto generation end time.

The PNG exporter will use this value as the video stream duration in auto export time calculations. The
value specified MUST be in milliseconds.

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

if (sc == ON2_OK)

// set the auto generation end time to 10 seconds

sc = Flix2_FilterSetParam(png_exporter_plgn,

FE2_PNGEX_AUTO_EXPORT_END_TIME, 10000);

Definition at line 305 of file png_export.h.

5.32.2.4

#define FE2_PNGEX_AUTO_EXPORT_RANDOM_PERIOD

Filter parameter for randomizing auto generated times.

When set to a value greater than zero, PNG image generation will occur at random offsets from the times
at which images would normally be generated when

FE2_PNGEX_AUTO_EXPORT_COUNT

is enabled.

The value of this parameter controls the time period (offset range) within which the image generation will
occur. The duration of each time slice is calculated using the following equation:

time_slice_duration =

video_stream_duration / FE2_PNGEX_AUTO_EXPORT_COUNT

FE2_PNGEX_AUTO_EXPORT_RANDOM_PERIOD

is used to calculate the range of time within which

to randomize the PNG generation time:

random_offset_range = time_slice_duration /

FE2_PNGEX_AUTO_EXPORT_RANDOM_PERIOD

The time of each automatically generated PNG is then calculated:

f: first png time

n: 0 based PNG image index

r: random offset in the range 0-random_range

png_time = f + (n * time_slice_duration) + r;

Definition at line 336 of file png_export.h.

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

Advertising