Top | ![]() |
![]() |
![]() |
![]() |
void
ogmrip_file_ref (OGMRipFile *file
);
Increments the reference count of an OGMRipFile.
void
ogmrip_file_unref (OGMRipFile *file
);
Decrements the reference count of an OGMRipFile.
gint
ogmrip_file_get_format (OGMRipFile *file
);
Gets the format of a file.
gint64
ogmrip_file_get_size (OGMRipFile *file
);
Gets the size of a file in bytes.
gchar *
ogmrip_file_get_filename (OGMRipFile *file
);
Gets the filename of a file.
void ogmrip_file_set_language (OGMRipFile *file
,gint lang
);
Sets the language of a file.
gint
ogmrip_file_get_language (OGMRipFile *file
);
Gets the language of a file.
void ogmrip_file_set_unlink_on_unref (OGMRipFile *file
,gboolean do_unlink
);
Sets whether the file will be unlinked when file
receives its final unref
and is destroyed.
gboolean
ogmrip_file_get_unlink_on_unref (OGMRipFile *file
);
Gets whether the file will be unlinked when file
receives its final unref
and is destroyed.
OGMRipFile * ogmrip_video_file_new (const gchar *filename
,GError **error
);
Creates a new OGMRipVideoFile from a video file.
gint
ogmrip_video_file_get_bitrate (OGMRipVideoFile *video
);
Gets the bitrate of a video file.
gdouble
ogmrip_video_file_get_length (OGMRipVideoFile *video
);
Gets the length in seconds of a video file.
void ogmrip_video_file_get_size (OGMRipVideoFile *video
,guint *width
,guint *height
);
Gets the dimension of a video file.
gdouble
ogmrip_video_file_get_framerate (OGMRipVideoFile *video
);
Gets the framerate of a video file.
gdouble
ogmrip_video_file_get_aspect_ratio (OGMRipVideoFile *video
);
Gets the aspect ratio of a video file.
OGMRipFile * ogmrip_audio_file_new (const gchar *filename
,GError **error
);
Creates a new OGMRipAudioFile from au audio file.
gint
ogmrip_audio_file_get_bitrate (OGMRipAudioFile *audio
);
Gets the bitrate of an audio file.
gdouble
ogmrip_audio_file_get_length (OGMRipAudioFile *audio
);
Gets the length in seconds of an audio file.
gint
ogmrip_audio_file_get_sample_rate (OGMRipAudioFile *audio
);
Gets the sample rate of an audio file.
gint
ogmrip_audio_file_get_samples_per_frame
(OGMRipAudioFile *audio
);
Gets the number of samples per frame of an audio file.
gint
ogmrip_audio_file_get_channels (OGMRipAudioFile *audio
);
Gets the number of channels of an audio file.
OGMRipFile * ogmrip_subp_file_new (const gchar *filename
,GError **error
);
Creates a new OGMRipSubpFile from a subtitle file.
gint
ogmrip_subp_file_get_charset (OGMRipSubpFile *subp
);
Gets the character set of a subtitle file.
Error codes returned by OGMRipFile functions.
#define OGMRIP_FILE_ERROR ogmrip_file_error_quark ()
Error domain for file operations. Errors in this domain will be from the OGMRipFileError enumeration. See GError for information on error domains.