OGMDvd Reference Manual | ||||
---|---|---|---|---|
#include <ogmdvd-parser.h> enum OGMDvdParserStatus; OGMDvdParser* ogmdvd_parser_new (OGMDvdTitle *title); void ogmdvd_parser_ref (OGMDvdParser *parser); void ogmdvd_parser_unref (OGMDvdParser *parser); gint ogmdvd_parser_analyze (OGMDvdParser *parser, guchar *buffer); gint ogmdvd_parser_get_max_frames (OGMDvdParser *parser); void ogmdvd_parser_set_max_frames (OGMDvdParser *parser, gint max_frames); gint ogmdvd_parser_get_audio_bitrate (OGMDvdParser *parser, guint nr);
typedef enum { OGMDVD_PARSER_STATUS_NONE, OGMDVD_PARSER_STATUS_BITRATES, OGMDVD_PARSER_STATUS_MAX_FRAMES } OGMDvdParserStatus;
Status code returned by ogmdvd_parser_analyze()
OGMDvdParser* ogmdvd_parser_new (OGMDvdTitle *title);
Creates a new OGMDvdParser.
|
An OGMDvdTitle |
Returns : |
The new OGMDvdParser, or NULL |
void ogmdvd_parser_ref (OGMDvdParser *parser);
Increments the reference count of an OGMDvdParser.
|
An OGMDvdParser |
void ogmdvd_parser_unref (OGMDvdParser *parser);
Decrements the reference count of an OGMDvdParser.
|
An OGMDvdParser |
gint ogmdvd_parser_analyze (OGMDvdParser *parser, guchar *buffer);
Analyzes the block contained in buffer
.
|
An OGMDvdParser |
|
A buffer containing a block to analyze |
Returns : |
the status of the analysis |
gint ogmdvd_parser_get_max_frames (OGMDvdParser *parser);
Returns the maximum number of frames to analyze.
|
An OGMDvdParser |
Returns : |
The number of frames, -1 if the whole title is to be analyzed, 0 on error |
void ogmdvd_parser_set_max_frames (OGMDvdParser *parser, gint max_frames);
Sets the maximum number of frames to analyse. If max_frames
is negative,
all the frames of the title will be analyzed.
|
An OGMDvdParser |
|
A number of frames |
gint ogmdvd_parser_get_audio_bitrate (OGMDvdParser *parser, guint nr);
Returns the bitrate of the audio stream at position nr, starting at 0.
|
An OGMDvdParser |
|
The audio stream number |
Returns : |
The bitrate, or -1 |