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) |
Typedefs | |
typedef dvdcss_s * | dvdcss_t |
Functions | |
dvdcss_t | dvdcss_open (char *psz_target) |
Open a DVD device or directory and return a dvdcss instance. | |
int | dvdcss_close (dvdcss_t) |
Close the DVD and clean up the library. | |
int | dvdcss_seek (dvdcss_t, int i_blocks, int i_flags) |
Seek in the disc and change the current key if requested. | |
int | dvdcss_read (dvdcss_t, void *p_buffer, int i_blocks, int i_flags) |
Read from the disc and decrypt data if requested. | |
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. | |
char * | dvdcss_error (dvdcss_t) |
Return a string containing the latest error that occured in the given libdvdcss instance. | |
Variables | |
char * | dvdcss_interface_2 |
Symbol for version checks. |
Samuel Hocevar <sam@zoy.org> This header contains the public types and functions that applications using libdvdcss may use.
|
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 occured in the given libdvdcss instance.
|
|
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 occured, 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. |
|
Symbol for version checks. The name of this symbol contains the library major number, which makes it easy to check which libdvdcss development headers are installed on the system with tools such as autoconf. The variable itself contains the exact version number of the library, which can be useful for specific feature needs. |