![]() |
![]() |
![]() |
OGMRip Reference Manual | ![]() |
---|---|---|---|---|
#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); 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()
.
action : |
an OGMRipEdlAction |
start : |
the start in seconds |
end : |
the end in seconds |
data : |
the user data |
OGMRipEdl* ogmrip_edl_new (const gchar *filename);
Creates a new OGMRipEdl.
filename : |
The output file |
Returns : | The new OGMRipEdl |
void ogmrip_edl_ref (OGMRipEdl *edl);
Increments the reference count of the OGMRipEdl.
edl : |
A OGMRipEdl |
void ogmrip_edl_unref (OGMRipEdl *edl);
Decrements the reference count of the OGMRipEdl and frees if the result is 0.
edl : |
A OGMRipEdl |
gchar* ogmrip_edl_get_filename (OGMRipEdl *edl);
Gets the filename of the EDL.
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.
edl : |
An OGMRipEdl |
action : |
An OGMRipEdlAction |
start : |
The start in seconds |
end : |
The end in seconds |
void ogmrip_edl_foreach (OGMRipEdl *edl, OGMRipEdlFunc func, gpointer data);
Invokes func
on each EDL entry.
edl : |
An OGMRipEdl |
func : |
An OGMRipEdlFunc |
data : |
The user data |