![]() |
![]() |
![]() |
OGMRip Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <ogmrip-container.h> void (*OGMRipContainerCodecFunc) (OGMRipContainer *container
,OGMRipCodec *codec
,guint demuxer
,gint language
,gpointer user_data
); void (*OGMRipContainerFileFunc) (OGMRipContainer *container
,OGMRipFile *file
,gpointer user_data
); OGMRipContainer; OGMRipContainerClass; void ogmrip_container_set_options (OGMRipContainer *container
,const gchar *section
); gchar * ogmrip_container_get_output (OGMRipContainer *container
); void ogmrip_container_set_output (OGMRipContainer *container
,const gchar *output
); gchar * ogmrip_container_get_label (OGMRipContainer *container
); void ogmrip_container_set_label (OGMRipContainer *container
,const gchar *label
); gchar * ogmrip_container_get_fourcc (OGMRipContainer *container
); void ogmrip_container_set_fourcc (OGMRipContainer *container
,const gchar *fourcc
); OGMRipVideoCodec * ogmrip_container_get_video (OGMRipContainer *container
); void ogmrip_container_set_video (OGMRipContainer *container
,OGMRipVideoCodec *video
); void ogmrip_container_add_audio (OGMRipContainer *container
,OGMRipAudioCodec *audio
,OGMRipAudioDemuxer demuxer
,gint language
); GSList * ogmrip_container_get_audio (OGMRipContainer *container
); OGMRipAudioCodec * ogmrip_container_get_nth_audio (OGMRipContainer *container
,gint n
); gint ogmrip_container_get_n_audio (OGMRipContainer *container
); void ogmrip_container_foreach_audio (OGMRipContainer *container
,OGMRipContainerCodecFunc func
,gpointer data
); void ogmrip_container_remove_audio (OGMRipContainer *container
,OGMRipAudioCodec *audio
); void ogmrip_container_add_subp (OGMRipContainer *container
,OGMRipSubpCodec *subp
,OGMRipSubpDemuxer demuxer
,gint language
); GSList * ogmrip_container_get_subp (OGMRipContainer *container
); gint ogmrip_container_get_n_subp (OGMRipContainer *container
); OGMRipSubpCodec * ogmrip_container_get_nth_subp (OGMRipContainer *container
,gint n
); void ogmrip_container_foreach_subp (OGMRipContainer *container
,OGMRipContainerCodecFunc func
,gpointer data
); void ogmrip_container_remove_subp (OGMRipContainer *container
,OGMRipSubpCodec *subp
); void ogmrip_container_add_chapters (OGMRipContainer *container
,OGMRipChapters *chapters
,gint language
); GSList * ogmrip_container_get_chapters (OGMRipContainer *container
); OGMRipChapters * ogmrip_container_get_nth_chapters (OGMRipContainer *container
,gint n
); gint ogmrip_container_get_n_chapters (OGMRipContainer *container
); void ogmrip_container_foreach_chapters (OGMRipContainer *container
,OGMRipContainerCodecFunc func
,gpointer data
); void ogmrip_container_remove_chapters (OGMRipContainer *container
,OGMRipChapters *chapters
); void ogmrip_container_add_file (OGMRipContainer *container
,OGMRipFile *file
); GSList * ogmrip_container_get_files (OGMRipContainer *container
); OGMRipFile * ogmrip_container_get_nth_file (OGMRipContainer *container
,gint n
); gint ogmrip_container_get_n_files (OGMRipContainer *container
); void ogmrip_container_foreach_file (OGMRipContainer *container
,OGMRipContainerFileFunc func
,gpointer data
); void ogmrip_container_remove_file (OGMRipContainer *container
,OGMRipFile *file
); void ogmrip_container_set_split (OGMRipContainer *container
,guint number
,guint size
); void ogmrip_container_get_split (OGMRipContainer *container
,guint *number
,guint *size
); gint ogmrip_container_get_start_delay (OGMRipContainer *container
); void ogmrip_container_set_start_delay (OGMRipContainer *container
,guint start_delay
); gint ogmrip_container_get_overhead (OGMRipContainer *container
); gint64 ogmrip_container_get_overhead_size (OGMRipContainer *container
); gint64 ogmrip_container_get_nonvideo_size (OGMRipContainer *container
);
"fourcc" gchar* : Read / Write "label" gchar* : Read / Write "output" gchar* : Read / Write "overhead" guint : Read "start-delay" guint : Read / Write "target-number" guint : Read / Write "target-size" guint : Read / Write
void (*OGMRipContainerCodecFunc) (OGMRipContainer *container
,OGMRipCodec *codec
,guint demuxer
,gint language
,gpointer user_data
);
Specifies the type of functions passed to ogmrip_container_foreach_audio()
,
ogmrip_container_foreach_subp()
, and ogmrip_container_foreach_chapters()
.
|
An OGMRipContainer |
|
An OGMRipCodec |
|
The demuxer to be used |
|
The language of the stream |
|
The user data |
void (*OGMRipContainerFileFunc) (OGMRipContainer *container
,OGMRipFile *file
,gpointer user_data
);
Specifies the type of functions passed to ogmrip_container_foreach_file()
.
|
An OGMRipContainer |
|
An OGMRipFile |
|
The user data |
typedef struct { OGMJobBinClass parent_class; /* vtable */ gint (* get_overhead) (OGMRipContainer *container); void (* set_options) (OGMRipContainer *container, const gchar *section); } OGMRipContainerClass;
void ogmrip_container_set_options (OGMRipContainer *container
,const gchar *section
);
Sets container specific options from the specified profile.
|
An OGMRipContainer |
|
A profile |
gchar * ogmrip_container_get_output (OGMRipContainer *container
);
Gets the name of the output file.
|
An OGMRipContainer |
Returns : |
The filename, or NULL |
void ogmrip_container_set_output (OGMRipContainer *container
,const gchar *output
);
Sets the name of the output file.
|
an OGMRipContainer |
|
the name of the output file |
gchar * ogmrip_container_get_label (OGMRipContainer *container
);
Gets the label of the rip.
|
An OGMRipContainer |
Returns : |
The label, or NULL |
void ogmrip_container_set_label (OGMRipContainer *container
,const gchar *label
);
Sets the label of the rip.
|
An OGMRipContainer |
|
the label |
gchar * ogmrip_container_get_fourcc (OGMRipContainer *container
);
Gets the FourCC of the rip.
|
An OGMRipContainer |
Returns : |
The FourCC, or NULL |
void ogmrip_container_set_fourcc (OGMRipContainer *container
,const gchar *fourcc
);
Sets the FourCC of the rip.
|
An OGMRipContainer |
|
the FourCC |
OGMRipVideoCodec * ogmrip_container_get_video (OGMRipContainer *container
);
Gets the video codec of the rip.
|
An OGMRipContainer |
Returns : |
An OGMRipVideoCodec, or NULL |
void ogmrip_container_set_video (OGMRipContainer *container
,OGMRipVideoCodec *video
);
Sets the video codec of the rip.
|
An OGMRipContainer |
|
An OGMRipVideoCodec |
void ogmrip_container_add_audio (OGMRipContainer *container
,OGMRipAudioCodec *audio
,OGMRipAudioDemuxer demuxer
,gint language
);
Adds an audio codec to the rip.
|
An OGMRipContainer |
|
An OGMRipAudioCodec |
|
The demuxer to be used |
|
The language of the stream |
GSList * ogmrip_container_get_audio (OGMRipContainer *container
);
Gets a list of the audio codecs of the rip.
|
An OGMRipContainer |
Returns : |
A GSList, or NULL |
OGMRipAudioCodec * ogmrip_container_get_nth_audio (OGMRipContainer *container
,gint n
);
Gets the audio codec at the given position.
|
an OGMRipContainer |
|
The index of the audio codec |
Returns : |
An OGMRipAudioCodec, or NULL |
gint ogmrip_container_get_n_audio (OGMRipContainer *container
);
Gets the number of audio codecs.
|
an OGMRipContainer |
Returns : |
the number of audio codecs |
void ogmrip_container_foreach_audio (OGMRipContainer *container
,OGMRipContainerCodecFunc func
,gpointer data
);
Calls a function for each audio codec
|
an OGMRipContainer |
|
The function to call with each audio codec |
|
User data to pass to the function |
void ogmrip_container_remove_audio (OGMRipContainer *container
,OGMRipAudioCodec *audio
);
Removes the audio codec from the rip.
|
An OGMRipContainer |
|
An OGMRipAudioCodec |
void ogmrip_container_add_subp (OGMRipContainer *container
,OGMRipSubpCodec *subp
,OGMRipSubpDemuxer demuxer
,gint language
);
Adds a subtitle codec to the rip.
|
An OGMRipContainer |
|
An OGMRipSubpCodec |
|
The demuxer to be used |
|
The language of the stream |
GSList * ogmrip_container_get_subp (OGMRipContainer *container
);
Gets a list of the subtitle codecs of the rip.
|
An OGMRipContainer |
Returns : |
A GSList, or NULL |
gint ogmrip_container_get_n_subp (OGMRipContainer *container
);
Gets the number of subtitle codecs.
|
an OGMRipContainer |
Returns : |
the number of subtitle codecs |
OGMRipSubpCodec * ogmrip_container_get_nth_subp (OGMRipContainer *container
,gint n
);
Gets the subtitle codec at the given position.
|
an OGMRipContainer |
|
The index of the subtitle codec |
Returns : |
An OGMRipSubpCodec, or NULL |
void ogmrip_container_foreach_subp (OGMRipContainer *container
,OGMRipContainerCodecFunc func
,gpointer data
);
Calls a function for each subtitle codec
|
An OGMRipContainer |
|
The function to call with each subtitle codec |
|
User data to pass to the function |
void ogmrip_container_remove_subp (OGMRipContainer *container
,OGMRipSubpCodec *subp
);
Removes the subp codec from the rip.
|
An OGMRipContainer |
|
An OGMRipSubpCodec |
void ogmrip_container_add_chapters (OGMRipContainer *container
,OGMRipChapters *chapters
,gint language
);
Adds a chapters codec to the rip.
|
An OGMRipContainer |
|
An OGMRipChapters |
|
The language of the chapters |
GSList * ogmrip_container_get_chapters (OGMRipContainer *container
);
Gets a list of the chapters codecs of the rip.
|
An OGMRipContainer |
Returns : |
A GSList, or NULL |
OGMRipChapters * ogmrip_container_get_nth_chapters (OGMRipContainer *container
,gint n
);
Gets the chapters codec at the given position.
|
an OGMRipContainer |
|
The index of the chapters codec |
Returns : |
An OGMRipChapters, or NULL |
gint ogmrip_container_get_n_chapters (OGMRipContainer *container
);
Gets the number of chapters codecs.
|
an OGMRipContainer |
Returns : |
the number of chapters codecs |
void ogmrip_container_foreach_chapters (OGMRipContainer *container
,OGMRipContainerCodecFunc func
,gpointer data
);
Calls a function for each chapters codec
|
An OGMRipContainer |
|
The function to call with each chapters codec |
|
User data to pass to the function |
void ogmrip_container_remove_chapters (OGMRipContainer *container
,OGMRipChapters *chapters
);
Removes the chapters from the rip.
|
An OGMRipContainer |
|
An OGMRipChaptersCodec |
void ogmrip_container_add_file (OGMRipContainer *container
,OGMRipFile *file
);
Adds a file to the rip.
|
An OGMRipContainer |
|
An OOGMRipFile |
GSList * ogmrip_container_get_files (OGMRipContainer *container
);
Gets a list of the files of the rip.
|
An OGMRipContainer |
Returns : |
A GSList, or NULL |
OGMRipFile * ogmrip_container_get_nth_file (OGMRipContainer *container
,gint n
);
Gets the file at the given position.
|
an OGMRipContainer |
|
The index of the file |
Returns : |
An OGMRipFile, or NULL |
gint ogmrip_container_get_n_files (OGMRipContainer *container
);
Gets the number of files.
|
an OGMRipContainer |
Returns : |
the number of files |
void ogmrip_container_foreach_file (OGMRipContainer *container
,OGMRipContainerFileFunc func
,gpointer data
);
Calls a function for each file
|
An OGMRipContainer |
|
The function to call with each file |
|
User data to pass to the function |
void ogmrip_container_remove_file (OGMRipContainer *container
,OGMRipFile *file
);
Removes the file from the rip.
|
An OGMRipContainer |
|
An OGMRipFile |
void ogmrip_container_set_split (OGMRipContainer *container
,guint number
,guint size
);
Sets the number of output files and the maximum size of each one.
|
An OGMRipContainer |
|
The number of file |
|
The size of each file |
void ogmrip_container_get_split (OGMRipContainer *container
,guint *number
,guint *size
);
Gets the number of output files and the maximum size of each one.
|
An OGMRipContainer |
|
A pointer to store the number of file |
|
A pointer to store the size of each file |
gint ogmrip_container_get_start_delay (OGMRipContainer *container
);
Gets the start delay of the audio tracks.
|
An OGMRipContainer |
Returns : |
The start delay, or -1 |
void ogmrip_container_set_start_delay (OGMRipContainer *container
,guint start_delay
);
Sets the start delay of the audio tracks
|
An OGMRipContainer |
|
the start delay |
gint ogmrip_container_get_overhead (OGMRipContainer *container
);
Gets the overhead of the container.
|
An OGMRipContainer |
Returns : |
The overhead, or -1 |
gint64 ogmrip_container_get_overhead_size (OGMRipContainer *container
);
Returns the size of the overhead generated by the video, audio and subtitle stream, the chapters information and the files in bytes.
|
An OGMRipContainer |
Returns : |
The overhead size |
gint64 ogmrip_container_get_nonvideo_size (OGMRipContainer *container
);
Returns the size of the audio and subtitle streams, the chapters information and the files in bytes.
|
An OGMRipContainer |
Returns : |
The nonvideo size |