OGMDvd Reference Manual | ||||
---|---|---|---|---|
#include <ogmdvd-title.h> gboolean ogmdvd_title_open (OGMDvdTitle *title, GError **error); void ogmdvd_title_close (OGMDvdTitle *title); gboolean ogmdvd_title_is_open (OGMDvdTitle *title); void ogmdvd_title_ref (OGMDvdTitle *title); void ogmdvd_title_unref (OGMDvdTitle *title); gboolean ogmdvd_title_analyze (OGMDvdTitle *title); OGMDvdDisc* ogmdvd_title_get_disc (OGMDvdTitle *title); gint64 ogmdvd_title_get_vts_size (OGMDvdTitle *title); gint ogmdvd_title_get_nr (OGMDvdTitle *title); gint ogmdvd_title_get_ts_nr (OGMDvdTitle *title); gdouble ogmdvd_title_get_length (OGMDvdTitle *title, OGMDvdTime *length); gdouble ogmdvd_title_get_chapters_length (OGMDvdTitle *title, guint start, gint end, OGMDvdTime *length); void ogmdvd_title_get_framerate (OGMDvdTitle *title, guint *numerator, guint *denominator); void ogmdvd_title_get_size (OGMDvdTitle *title, guint *width, guint *height); gint ogmdvd_title_get_video_format (OGMDvdTitle *title); gint ogmdvd_title_get_display_aspect (OGMDvdTitle *title); gint ogmdvd_title_get_display_format (OGMDvdTitle *title); guint* ogmdvd_title_get_palette (OGMDvdTitle *title); gint ogmdvd_title_get_n_angles (OGMDvdTitle *title); gint ogmdvd_title_get_n_chapters (OGMDvdTitle *title); gint ogmdvd_title_get_n_audio_streams (OGMDvdTitle *title); OGMDvdAudioStream* ogmdvd_title_get_nth_audio_stream (OGMDvdTitle *title, guint nr); GSList* ogmdvd_title_get_audio_streams (OGMDvdTitle *title); gint ogmdvd_title_get_n_subp_streams (OGMDvdTitle *title); OGMDvdSubpStream* ogmdvd_title_get_nth_subp_stream (OGMDvdTitle *title, guint nr); GSList* ogmdvd_title_get_subp_streams (OGMDvdTitle *title); void ogmdvd_title_get_aspect_ratio (OGMDvdTitle *title, guint *numerator, guint *denominator); OGMDvdAudioStream* ogmdvd_title_find_audio_stream (OGMDvdTitle *title, GCompareFunc func, gpointer data); OGMDvdSubpStream* ogmdvd_title_find_subp_stream (OGMDvdTitle *title, GCompareFunc func, gpointer data);
gboolean ogmdvd_title_open (OGMDvdTitle *title, GError **error);
Opens title
, opening the disc if needed.
|
An OGMDvdTitle |
|
Location to store the error occuring, or NULL to ignore errors. |
Returns : |
TRUE on success |
void ogmdvd_title_close (OGMDvdTitle *title);
Closes title
.
|
A OGMDvdTitle |
gboolean ogmdvd_title_is_open (OGMDvdTitle *title);
Returns whether the title is open or not.
|
An OGMDvdTitle |
Returns : |
TRUE if the title is open |
void ogmdvd_title_ref (OGMDvdTitle *title);
Increments the reference count of an OGMDvdTitle.
|
An OGMDvdTitle |
void ogmdvd_title_unref (OGMDvdTitle *title);
Decrements the reference count of an OGMDvdTitle.
|
An OGMDvdTitle |
gboolean ogmdvd_title_analyze (OGMDvdTitle *title);
Performs a depper analysis of the title to get more information about it and its audio and subtitle streams. This function should be called multiple times until the analysis is complete.
|
An OGMDvdTitle |
Returns : |
FALSE if the analysis is complete, TRUE otherwise |
OGMDvdDisc* ogmdvd_title_get_disc (OGMDvdTitle *title);
Returns the disc the OGMDvdTitle was open from.
|
An OGMDvdTitle |
Returns : |
The OGMDvdDisc, or NULL |
gint64 ogmdvd_title_get_vts_size (OGMDvdTitle *title);
Returns the size of the video title set in bytes.
|
An OGMDvdTitle |
Returns : |
The size in bytes, or -1 |
gint ogmdvd_title_get_nr (OGMDvdTitle *title);
Returns the title number.
|
An OGMDvdTitle |
Returns : |
The title number, or -1 |
gint ogmdvd_title_get_ts_nr (OGMDvdTitle *title);
Returns the titleset number.
|
An OGMDvdTitle |
Returns : |
The titleset number, or -1 |
gdouble ogmdvd_title_get_length (OGMDvdTitle *title, OGMDvdTime *length);
Returns the title length in seconds. If length
is not NULL, the data
structure will be filled with the length in hours, minutes seconds and
frames.
|
An OGMDvdTitle |
|
A pointer to set the OGMDvdTime, or NULL |
Returns : |
The length in seconds, or -1.0 |
gdouble ogmdvd_title_get_chapters_length (OGMDvdTitle *title, guint start, gint end, OGMDvdTime *length);
Returns the length in seconds between start and end chapters. If length
is
not NULL, the data structure will be filled with the length in hours, minutes
seconds and frames.
|
An OGMDvdTitle |
|
The start chapter |
|
The end chapter |
|
A pointer to set the OGMDvdTime, or NULL |
Returns : |
The length in seconds, or -1.0 |
void ogmdvd_title_get_framerate (OGMDvdTitle *title, guint *numerator, guint *denominator);
Gets the framerate of the DVD title in the form of a fraction.
|
An OGMDvdTitle |
|
A pointer to set the framerate numerator, or NULL |
|
A pointer to set the framerate denominator, or NULL |
void ogmdvd_title_get_size (OGMDvdTitle *title, guint *width, guint *height);
Gets the size of the picture.
|
An OGMDvdTitle |
|
A pointer to set the width of the picture, or NULL |
|
A pointer to set the height of the picture, or NULL |
gint ogmdvd_title_get_video_format (OGMDvdTitle *title);
Returns the video format of the movie.
|
An OGMDvdTitle |
Returns : |
OGMDvdVideoFormat, or -1 |
gint ogmdvd_title_get_display_aspect (OGMDvdTitle *title);
Returns the display aspect of the movie.
|
An OGMDvdTitle |
Returns : |
OGMDvdDisplayAspect, or -1 |
gint ogmdvd_title_get_display_format (OGMDvdTitle *title);
Returns the display format of the movie.
|
An OGMDvdTitle |
Returns : |
OGMDvdDisplayFormat, or -1 |
guint* ogmdvd_title_get_palette (OGMDvdTitle *title);
Returns the palette of the movie.
|
An OGMDvdTitle |
Returns : |
a constant array of 16 integers, or NULL |
gint ogmdvd_title_get_n_angles (OGMDvdTitle *title);
Returns the number of angles of the video title.
|
An OGMDvdTitle |
Returns : |
The number of angles, or -1 |
gint ogmdvd_title_get_n_chapters (OGMDvdTitle *title);
Returns the number of chapters of the video title.
|
An OGMDvdTitle |
Returns : |
The number of chapters, or -1 |
gint ogmdvd_title_get_n_audio_streams (OGMDvdTitle *title);
Returns the number of audio streams of the video title.
|
An OGMDvdTitle |
Returns : |
The number of audio streams, or -1 |
OGMDvdAudioStream* ogmdvd_title_get_nth_audio_stream (OGMDvdTitle *title, guint nr);
Returns the audio stream at position nr. The first nr is 0.
|
An OGMDvdTitle |
|
The audio stream number |
Returns : |
The OGMDvdAudioStream, or NULL |
GSList* ogmdvd_title_get_audio_streams (OGMDvdTitle *title);
Returns a list of audio stream.
|
An OGMDvdTitle |
Returns : |
The GSList, or NULL |
gint ogmdvd_title_get_n_subp_streams (OGMDvdTitle *title);
Returns the number of subtitles streams of the video title.
|
An OGMDvdTitle |
Returns : |
The number of subtitles streams, or -1 |
OGMDvdSubpStream* ogmdvd_title_get_nth_subp_stream (OGMDvdTitle *title, guint nr);
Returns the subtitles stream at position nr. The first nr is 0.
|
An OGMDvdTitle |
|
The subtitles stream number |
Returns : |
The OGMDvdSubpStream, or NULL |
GSList* ogmdvd_title_get_subp_streams (OGMDvdTitle *title);
Returns a list of subp stream.
|
An OGMDvdTitle |
Returns : |
The GSList, or NULL |
void ogmdvd_title_get_aspect_ratio (OGMDvdTitle *title, guint *numerator, guint *denominator);
Gets the aspect ratio of the DVD title in the form of a fraction.
|
An OGMDvdTitle |
|
A pointer to set the aspect ratio numerator, or NULL |
|
A pointer to set the aspect ratio denominator, or NULL |
OGMDvdAudioStream* ogmdvd_title_find_audio_stream (OGMDvdTitle *title, GCompareFunc func, gpointer data);
Searches for an audio stream with custom criteria.
|
An OGMDvdTitle |
|
A GCompareFunc |
|
The data to pass to func
|
Returns : |
An OGMDvdAudioStream, or NULL |
OGMDvdSubpStream* ogmdvd_title_find_subp_stream (OGMDvdTitle *title, GCompareFunc func, gpointer data);
Searches for a subp stream with custom criteria.
|
An OGMDvdTitle |
|
A GCompareFunc |
|
The data to pass to func
|
Returns : |
An OGMDvdSubpStream, or NULL |