Mercurial > mplayer.hg
annotate libvo/vosub_vidix.h @ 31794:543698dab5d2
Properly close file on error or uninit.
Avoids failing with "device busy" e.g. when reinitializing the ao.
Fixes bug #1746.
author | reimar |
---|---|
date | Fri, 30 Jul 2010 18:28:02 +0000 |
parents | d97a607821f1 |
children | ddb45e9443ec |
rev | line source |
---|---|
4010 | 1 /* |
27509
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
2 * vosub_vidix interface to any mplayer vo driver |
4010 | 3 * |
27509
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
4 * copyright (C) 2002 Nick Kurshev <nickols_k@mail.ru> |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
5 * |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
6 * This file is part of MPlayer. |
4010 | 7 * |
27509
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
8 * MPlayer is free software; you can redistribute it and/or modify |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
11 * (at your option) any later version. |
4010 | 12 * |
27509
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
13 * MPlayer is distributed in the hope that it will be useful, |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
16 * GNU General Public License for more details. |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
17 * |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
18 * You should have received a copy of the GNU General Public License along |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
19 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
d97a607821f1
Replace casual GPL notices by proper license headers.
diego
parents:
26982
diff
changeset
|
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
4010 | 21 */ |
22 | |
26029 | 23 #ifndef MPLAYER_VOSUB_VIDIX_H |
24 #define MPLAYER_VOSUB_VIDIX_H | |
4010 | 25 |
26162
0585db9f5b32
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
26 #include <stdint.h> |
0585db9f5b32
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
27 #include "video_out.h" |
0585db9f5b32
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
28 |
4010 | 29 /* drvname can be NULL */ |
25212
ca7a751f5481
Use proper type for vidix_preinit parameter instead of void *
reimar
parents:
23689
diff
changeset
|
30 int vidix_preinit(const char *drvname,vo_functions_t *server); |
4010 | 31 int vidix_init(unsigned src_width,unsigned src_height, |
32 unsigned dest_x,unsigned dest_y,unsigned dst_width, | |
33 unsigned dst_height,unsigned format,unsigned dest_bpp, | |
7124
eca7dbad0166
finally removed query_vaa, bes_da and vo_tune_info - the obsoleted libvo api
alex
parents:
4434
diff
changeset
|
34 unsigned vid_w,unsigned vid_h); |
4234
0ec1d81c8f94
sorry, i really wanted to add vidix_start and stop as int, to detect if something went into the wrong way (also implement check in vo_xvidix)
alex
parents:
4198
diff
changeset
|
35 int vidix_start(void); |
0ec1d81c8f94
sorry, i really wanted to add vidix_start and stop as int, to detect if something went into the wrong way (also implement check in vo_xvidix)
alex
parents:
4198
diff
changeset
|
36 int vidix_stop(void); |
4010 | 37 void vidix_term( void ); |
8123
9fc45fe0d444
*HUGE* set of compiler warning fixes, unused variables removal
arpi
parents:
7124
diff
changeset
|
38 uint32_t vidix_control(uint32_t request, void *data, ...); |
11408
147f31870df6
Change conflicting function declaration between .c and .h file, causing a
diego
parents:
8123
diff
changeset
|
39 uint32_t vidix_query_fourcc(uint32_t fourcc); |
4010 | 40 |
13787
e047e70a9767
Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
diego
parents:
11408
diff
changeset
|
41 #include "vidix/vidix.h" |
4240 | 42 /* graphic keys */ |
4255 | 43 int vidix_grkey_support(void); |
4240 | 44 int vidix_grkey_get(vidix_grkey_t *gr_key); |
45 int vidix_grkey_set(const vidix_grkey_t *gr_key); | |
46 | |
26029 | 47 #endif /* MPLAYER_VOSUB_VIDIX_H */ |