| OGMRip Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <ogmrip-edl.h> enum OGMRipEdlAction; void (*OGMRipEdlFunc) (OGMRipEdlAction action,gdouble start,gdouble end,gpointer data); OGMRipEdl; OGMRipEdl * ogmrip_edl_new (const gchar *filename); void ogmrip_edl_ref (OGMRipEdl *edl); void ogmrip_edl_unref (OGMRipEdl *edl); const gchar * ogmrip_edl_get_filename (OGMRipEdl *edl); void ogmrip_edl_add (OGMRipEdl *edl,OGMRipEdlAction action,gdouble start,gdouble end); void ogmrip_edl_foreach (OGMRipEdl *edl,OGMRipEdlFunc func,gpointer data); gboolean ogmrip_edl_dump (OGMRipEdl *edl);
typedef enum {
OGMRIP_EDL_ACTION_SKIP,
OGMRIP_EDL_ACTION_MUTE
} OGMRipEdlAction;
The available actions of a EDL action.
void (*OGMRipEdlFunc) (OGMRipEdlAction action,gdouble start,gdouble end,gpointer data);
Specifies the type of functions passed to ogmrip_edl_foreach().
|
an OGMRipEdlAction |
|
the start in seconds |
|
the end in seconds |
|
the user data |
OGMRipEdl * ogmrip_edl_new (const gchar *filename);
Creates a new OGMRipEdl.
|
The output file |
Returns : |
The new OGMRipEdl |
void ogmrip_edl_ref (OGMRipEdl *edl);
Increments the reference count of the OGMRipEdl.
|
A OGMRipEdl |
void ogmrip_edl_unref (OGMRipEdl *edl);
Decrements the reference count of the OGMRipEdl and frees if the result is 0.
|
A OGMRipEdl |
const gchar * ogmrip_edl_get_filename (OGMRipEdl *edl);
Gets the filename of the EDL.
|
An OGMRipEdl |
Returns : |
The filename |
void ogmrip_edl_add (OGMRipEdl *edl,OGMRipEdlAction action,gdouble start,gdouble end);
Adds the given action to the EDL.
|
An OGMRipEdl |
|
An OGMRipEdlAction |
|
The start in seconds |
|
The end in seconds |
void ogmrip_edl_foreach (OGMRipEdl *edl,OGMRipEdlFunc func,gpointer data);
Invokes func on each EDL entry.
|
An OGMRipEdl |
|
An OGMRipEdlFunc |
|
The user data |