annotate libdvdcss/device.h @ 37038:21d2ff801b8f

Use macro to get BGR format bit depth.
author reimar
date Sun, 06 Apr 2014 18:36:32 +0000
parents 691431d2289e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
1 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
2 * device.h: DVD device access
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
3 *****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
4 * Copyright (C) 1998-2002 VideoLAN
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
5 *
27442
afa2cc0166be Sync libdvdcss with upstream version r212.
diego
parents: 20613
diff changeset
6 * Authors: Stéphane Borel <stef@via.ecp.fr>
27462
60bd1a7f3fc6 Sync libdvdcss with upstream version 1.2.10.
diego
parents: 27442
diff changeset
7 * Sam Hocevar <sam@zoy.org>
27442
afa2cc0166be Sync libdvdcss with upstream version r212.
diego
parents: 20613
diff changeset
8 * Håkan Hjort <d95hjort@dtek.chalmers.se>
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
9 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
13 * (at your option) any later version.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
14 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
18 * GNU General Public License for more details.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
19 *
31098
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
20 * 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
21 * 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
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
23 *****************************************************************************/
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
24
32265
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31099
diff changeset
25 #ifndef DVDCSS_DEVICE_H
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31099
diff changeset
26 #define DVDCSS_DEVICE_H
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31099
diff changeset
27
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
28 #include "config.h"
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
29
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
30 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
31 * iovec structure: vectored data entry
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
32 *****************************************************************************/
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
33 #ifndef HAVE_SYS_UIO_H
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
34 # include <io.h> /* read() */
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
35 struct iovec
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
36 {
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
37 void *iov_base; /* Pointer to data. */
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
38 size_t iov_len; /* Length of data. */
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
39 };
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
40 #else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
41 # include <sys/types.h>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
42 # include <sys/uio.h> /* struct iovec */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
43 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
44
32265
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31099
diff changeset
45 #include "dvdcss/dvdcss.h"
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31099
diff changeset
46
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
47 #if !defined(WIN32) && !defined(__OS2__)
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
48 # define DVDCSS_RAW_OPEN
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
49 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
50
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 32265
diff changeset
51
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
52 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
53 * Device reading prototypes
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
54 *****************************************************************************/
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
55 int _dvdcss_use_ioctls ( dvdcss_t );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
56 void _dvdcss_check ( dvdcss_t );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
57 int _dvdcss_open ( dvdcss_t );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
58 int _dvdcss_close ( dvdcss_t );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
59
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
60 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
61 * Device reading prototypes, raw-device specific
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
62 *****************************************************************************/
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
63 int _dvdcss_raw_open ( dvdcss_t, char const * );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
64
32265
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31099
diff changeset
65 #endif /* DVDCSS_DEVICE_H */