BMovieEffects

BMovieEffects — simple effects on a movie

Synopsis




void        b_movie_normalize               (BMovie *movie,
                                             gint maxval);
void        b_movie_apply_colormap          (BMovie *movie,
                                             guchar *map);
void        b_movie_apply_effects           (BMovie *movie,
                                             BEffects *effects,
                                             gboolean reverse,
                                             gdouble speed);

Description

Details

b_movie_normalize ()

void        b_movie_normalize               (BMovie *movie,
                                             gint maxval);

Changes the maximum value for movie, that is the value that will cause the lamp to glow with full intensity. This function iterates over all frames of the movie and changes the frame data accordingly.

movie : a BMovie object
maxval : the new maximum value to apply to movie

b_movie_apply_colormap ()

void        b_movie_apply_colormap          (BMovie *movie,
                                             guchar *map);

Applies a mapping defined by map to all frames of the movie. The mapping must not exceed the movie's maxval.

movie : a BMovie object
map : a LUT that remaps each color value

b_movie_apply_effects ()

void        b_movie_apply_effects           (BMovie *movie,
                                             BEffects *effects,
                                             gboolean reverse,
                                             gdouble speed);

If effects is non-NULL, the effects described by it are applied to movie. If reverse is TRUE, the order of frames is reversed. If speed is different from 1.0, the frame timing is adjusted; for example a value of 2.0 makes the movie play with double speed.

movie : a BMovie object
effects : a BEffects object or NULL
reverse : whether to reverse the order of frames in movie
speed : an adjustment factor to be applied on the frame timing