Go to the source code of this file.
Defines | |
#define | DVDCSS_BLOCK_SIZE 2048 |
#define | DVDCSS_NOFLAGS 0 |
#define | DVDCSS_READ_DECRYPT (1 << 0) |
#define | DVDCSS_SEEK_MPEG (1 << 0) |
#define | DVDCSS_SEEK_KEY (1 << 1) |
#define | LIBDVDCSS_EXPORT extern |
Typedefs | |
typedef dvdcss_s * | dvdcss_t |
Functions | |
LIBDVDCSS_EXPORT dvdcss_t | dvdcss_open (char *psz_target) |
Open a DVD device or directory and return a dvdcss instance. | |
LIBDVDCSS_EXPORT int | dvdcss_close (dvdcss_t) |
Close the DVD and clean up the library. | |
LIBDVDCSS_EXPORT int | dvdcss_seek (dvdcss_t, int i_blocks, int i_flags) |
Seek in the disc and change the current key if requested. | |
LIBDVDCSS_EXPORT int | dvdcss_read (dvdcss_t, void *p_buffer, int i_blocks, int i_flags) |
Read from the disc and decrypt data if requested. | |
LIBDVDCSS_EXPORT int | dvdcss_readv (dvdcss_t, void *p_iovec, int i_blocks, int i_flags) |
Read from the disc into multiple buffers and decrypt data if requested. | |
LIBDVDCSS_EXPORT char * | dvdcss_error (dvdcss_t) |
Return a string containing the latest error that occurred in the given libdvdcss instance. | |
LIBDVDCSS_EXPORT int | dvdcss_is_scrambled (dvdcss_t) |
Return 1 if the DVD is scrambled, 0 otherwise. | |
Variables | |
LIBDVDCSS_EXPORT char * | dvdcss_interface_2 |
Sam Hocevar <sam@zoy.org>
|
The block size of a DVD. |
|
The default flag to be used by libdvdcss functions. |
|
Flag to ask dvdcss_read() to decrypt the data it reads. |
|
Flag to ask dvdcss_seek() to check the current title key. |
|
Flag to tell dvdcss_seek() it is seeking in MPEG data. |
|
Library instance handle, to be used for each library call. |
|
Close the DVD and clean up the library.
|
|
Return a string containing the latest error that occurred in the given libdvdcss instance.
|
|
Return 1 if the DVD is scrambled, 0 otherwise.
|
|
Open a DVD device or directory and return a dvdcss instance.
dvdcss_open() returns a handle to be used for all subsequent libdvdcss calls. If an error occurred, NULL is returned. |
|
Read from the disc and decrypt data if requested.
i_blocks logical blocks from the DVD.
You typically set
If DVDCSS_READ_DECRYPT is specified in
|
|
Read from the disc into multiple buffers and decrypt data if requested.
i_blocks logical blocks from the DVD and writes them to an array of iovec structures.
You typically set
If DVDCSS_READ_DECRYPT is specified in
|
|
Seek in the disc and change the current key if requested.
You typically set
If DVDCSS_SEEK_MPEG is specified in If DVDCSS_SEEK_KEY is specified, the title key will be always checked, even with the "title" method. This is equivalent to using the now deprecated dvdcss_title() call. This flag is typically used when seeking in a new title. |