OGMDvd Reference Manual | ||||
---|---|---|---|---|
#include <ogmdvd-reader.h> OGMDvdReader* ogmdvd_reader_new (OGMDvdTitle *title, guint start_chap, gint end_chap, guint angle); OGMDvdReader* ogmdvd_reader_new_by_cells (OGMDvdTitle *title, guint start_cell, gint end_cell, guint angle); void ogmdvd_reader_ref (OGMDvdReader *reader); void ogmdvd_reader_unref (OGMDvdReader *reader); gint ogmdvd_reader_get_block (OGMDvdReader *reader, gsize len, guchar *buffer);
OGMDvdReader* ogmdvd_reader_new (OGMDvdTitle *title, guint start_chap, gint end_chap, guint angle);
Creates a new OGMDvdReader.
|
An OGMDvdTitle |
|
The chapter to start reading at, 0 for the first chapter |
|
The chapter to stop reading at, -1 for the last chapter |
|
The angle to read |
Returns : |
The new OGMDvdReader, or NULL |
OGMDvdReader* ogmdvd_reader_new_by_cells (OGMDvdTitle *title, guint start_cell, gint end_cell, guint angle);
Creates a new OGMDvdReader.
|
An OGMDvdTitle |
|
The cell to start reading at, 0 for the first cell |
|
The cell to stop reading at, -1 for the last cell |
|
The angle to read |
Returns : |
The new OGMDvdReader, or NULL |
void ogmdvd_reader_ref (OGMDvdReader *reader);
Increments the reference count of an OGMDvdReader.
|
An OGMDvdReader |
void ogmdvd_reader_unref (OGMDvdReader *reader);
Decrements the reference count of an OGMDvdReader.
|
An OGMDvdReader |
gint ogmdvd_reader_get_block (OGMDvdReader *reader, gsize len, guchar *buffer);
Reads up to len
blocks from the DVD into the buffer starting at buffer
.
|
An OGMDvdReader |
|
The number of blocks to read |
|
The buffer to store the blocks read |
Returns : |
The number of blocks read, or -1 |