Mercurial > mplayer.hg
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 |
rev | line source |
---|---|
20613 | 1 /***************************************************************************** |
2 * device.h: DVD device access | |
3 ***************************************************************************** | |
4 * Copyright (C) 1998-2002 VideoLAN | |
5 * | |
27442 | 6 * Authors: Stéphane Borel <stef@via.ecp.fr> |
27462 | 7 * Sam Hocevar <sam@zoy.org> |
27442 | 8 * Håkan Hjort <d95hjort@dtek.chalmers.se> |
20613 | 9 * |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
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 | 23 *****************************************************************************/ |
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 | 28 #include "config.h" |
29 | |
20613 | 30 /***************************************************************************** |
31 * iovec structure: vectored data entry | |
32 *****************************************************************************/ | |
35952 | 33 #ifndef HAVE_SYS_UIO_H |
20613 | 34 # include <io.h> /* read() */ |
35952 | 35 struct iovec |
36 { | |
37 void *iov_base; /* Pointer to data. */ | |
38 size_t iov_len; /* Length of data. */ | |
39 }; | |
20613 | 40 #else |
41 # include <sys/types.h> | |
42 # include <sys/uio.h> /* struct iovec */ | |
43 #endif | |
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 | 47 #if !defined(WIN32) && !defined(__OS2__) |
48 # define DVDCSS_RAW_OPEN | |
20613 | 49 #endif |
50 | |
35952 | 51 |
20613 | 52 /***************************************************************************** |
53 * Device reading prototypes | |
54 *****************************************************************************/ | |
55 int _dvdcss_use_ioctls ( dvdcss_t ); | |
56 void _dvdcss_check ( dvdcss_t ); | |
57 int _dvdcss_open ( dvdcss_t ); | |
58 int _dvdcss_close ( dvdcss_t ); | |
59 | |
60 /***************************************************************************** | |
61 * Device reading prototypes, raw-device specific | |
62 *****************************************************************************/ | |
63 int _dvdcss_raw_open ( dvdcss_t, char const * ); | |
64 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31099
diff
changeset
|
65 #endif /* DVDCSS_DEVICE_H */ |