## BEffects

BEffects — simple effects on a single movie frame

## Synopsis

    struct      BEffects;
    enum        BEffectScope;
    BEffects*   b_effects_new                   (void);
    void        b_effects_apply                 (BEffects *effects,
                                                 guchar *frame_data,
                                                 gint width,
                                                 gint height,
                                                 gint channels,
                                                 gint maxval);

## Object Hierarchy

      GObject
       +----BEffects

## Description

## Details

### struct BEffects

    struct BEffects;

### enum BEffectScope

    typedef enum
    {
      B_EFFECT_SCOPE_NONE  = 0,
      B_EFFECT_SCOPE_LEFT  = 1 << 0,
      B_EFFECT_SCOPE_RIGHT = 1 << 1,
      B_EFFECT_SCOPE_ALL   = B_EFFECT_SCOPE_LEFT | B_EFFECT_SCOPE_RIGHT
    } BEffectScope;

### b_effects_new ()

    BEffects*   b_effects_new                   (void);

Creates a new BEffects object with default values.

Returns : | the newly allocate BEffects object.

### b_effects_apply ()

    void        b_effects_apply                 (BEffects *effects,
                                                 guchar *frame_data,
                                                 gint width,
                                                 gint height,
                                                 gint channels,
                                                 gint maxval);

This function applies the effects described in the `effects` object to a single frame.

`effects` : | a BEffects object
`frame_data` : | data to apply the effects on
`width` : | width of the `frame_data` buffer
`height` : | height of the `frame_data` buffer
`channels` : | number of channels in the `frame_data` buffer
`maxval` : | the maximum value for the `frame_data` buffer