Mercurial > mplayer.hg
annotate libdvdcss/dvdcss/dvdcss.h @ 36447:740a60d26cc0
Only detect a file as MPEG-PS if we can find at least 2 packets.
author | reimar |
---|---|
date | Wed, 11 Dec 2013 20:03:03 +0000 |
parents | 691431d2289e |
children |
rev | line source |
---|---|
20613 | 1 /** |
2 * \file dvdcss.h | |
27442 | 3 * \author Stéphane Borel <stef@via.ecp.fr> |
27462 | 4 * \author Sam Hocevar <sam@zoy.org> |
20613 | 5 * \brief The \e libdvdcss public header. |
6 * | |
7 * This header contains the public types and functions that applications | |
8 * using \e libdvdcss may use. | |
9 */ | |
10 | |
11 /* | |
27462 | 12 * Copyright (C) 1998-2008 VideoLAN |
20613 | 13 * |
14 * This program is free software; you can redistribute it and/or modify | |
15 * it under the terms of the GNU General Public License as published by | |
16 * the Free Software Foundation; either version 2 of the License, or | |
17 * (at your option) any later version. | |
18 * | |
19 * This program is distributed in the hope that it will be useful, | |
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 * GNU General Public License for more details. | |
23 * | |
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
24 * You should have received a copy of the GNU General Public License along |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
25 * with libdvdcss; if not, write to the Free Software Foundation, Inc., |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
26 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20613 | 27 */ |
28 | |
24535
b015cbd37591
Leading underscores in identifiers are reserved in C.
diego
parents:
20613
diff
changeset
|
29 #ifndef DVDCSS_DVDCSS_H |
20613 | 30 #ifndef _DOXYGEN_SKIP_ME |
24535
b015cbd37591
Leading underscores in identifiers are reserved in C.
diego
parents:
20613
diff
changeset
|
31 #define DVDCSS_DVDCSS_H 1 |
20613 | 32 #endif |
33 | |
34 #ifdef __cplusplus | |
35 extern "C" { | |
36 #endif | |
37 | |
38 /** Library instance handle, to be used for each library call. */ | |
39 typedef struct dvdcss_s* dvdcss_t; | |
40 | |
41 | |
42 /** The block size of a DVD. */ | |
43 #define DVDCSS_BLOCK_SIZE 2048 | |
44 | |
45 /** The default flag to be used by \e libdvdcss functions. */ | |
46 #define DVDCSS_NOFLAGS 0 | |
47 | |
48 /** Flag to ask dvdcss_read() to decrypt the data it reads. */ | |
49 #define DVDCSS_READ_DECRYPT (1 << 0) | |
50 | |
51 /** Flag to tell dvdcss_seek() it is seeking in MPEG data. */ | |
52 #define DVDCSS_SEEK_MPEG (1 << 0) | |
53 | |
54 /** Flag to ask dvdcss_seek() to check the current title key. */ | |
55 #define DVDCSS_SEEK_KEY (1 << 1) | |
56 | |
57 | |
58 #if defined(LIBDVDCSS_EXPORTS) | |
59 #define LIBDVDCSS_EXPORT __declspec(dllexport) extern | |
60 #elif defined(LIBDVDCSS_IMPORTS) | |
61 #define LIBDVDCSS_EXPORT __declspec(dllimport) extern | |
35952 | 62 #elif defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT) |
35263 | 63 #define LIBDVDCSS_EXPORT __attribute__((visibility("default"))) extern |
20613 | 64 #else |
65 #define LIBDVDCSS_EXPORT extern | |
66 #endif | |
67 | |
68 | |
69 /* | |
70 * Exported prototypes. | |
71 */ | |
72 LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target ); | |
73 LIBDVDCSS_EXPORT int dvdcss_close ( dvdcss_t ); | |
74 LIBDVDCSS_EXPORT int dvdcss_seek ( dvdcss_t, | |
75 int i_blocks, | |
76 int i_flags ); | |
77 LIBDVDCSS_EXPORT int dvdcss_read ( dvdcss_t, | |
78 void *p_buffer, | |
79 int i_blocks, | |
80 int i_flags ); | |
81 LIBDVDCSS_EXPORT int dvdcss_readv ( dvdcss_t, | |
82 void *p_iovec, | |
83 int i_blocks, | |
84 int i_flags ); | |
85 LIBDVDCSS_EXPORT char * dvdcss_error ( dvdcss_t ); | |
86 | |
27442 | 87 LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t ); |
88 | |
20613 | 89 #ifdef __cplusplus |
90 } | |
91 #endif | |
92 | |
25617 | 93 #endif /* DVDCSS_DVDCSS_H */ |