Mercurial > mplayer.hg
annotate libvo/vo_null.c @ 25193:55783f005bf3
simplify
author | michael |
---|---|
date | Fri, 30 Nov 2007 23:46:32 +0000 |
parents | cea0eb833758 |
children | 3aee342be929 |
rev | line source |
---|---|
1 | 1 /* |
2 * video_out_null.c | |
3 * | |
4 * Copyright (C) Aaron Holtzman - June 2000 | |
5 * | |
6 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. | |
7 * | |
8 * mpeg2dec is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2, or (at your option) | |
11 * any later version. | |
12 * | |
13 * mpeg2dec is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
21977
cea0eb833758
Fix FSF address and otherwise broken license headers.
diego
parents:
18234
diff
changeset
|
19 * along with mpeg2dec; if not, write to the Free Software |
cea0eb833758
Fix FSF address and otherwise broken license headers.
diego
parents:
18234
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
1 | 21 */ |
22 | |
5607 | 23 #include <stdio.h> |
24 #include <stdlib.h> | |
8123
9fc45fe0d444
*HUGE* set of compiler warning fixes, unused variables removal
arpi
parents:
7124
diff
changeset
|
25 #include <string.h> |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
26 #include <errno.h> |
1 | 27 #include "config.h" |
18234
a107276371a8
Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with lots of corrections
reynaldo
parents:
16171
diff
changeset
|
28 #include "mp_msg.h" |
a107276371a8
Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with lots of corrections
reynaldo
parents:
16171
diff
changeset
|
29 #include "help_mp.h" |
1 | 30 #include "video_out.h" |
31 #include "video_out_internal.h" | |
32 | |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
8123
diff
changeset
|
33 static vo_info_t info = |
1 | 34 { |
35 "Null video output", | |
36 "null", | |
37 "Aaron Holtzman <aholtzma@ess.engr.uvic.ca>", | |
38 "" | |
39 }; | |
40 | |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
8123
diff
changeset
|
41 LIBVO_EXTERN(null) |
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
8123
diff
changeset
|
42 |
1 | 43 static uint32_t image_width, image_height; |
44 | |
45 //static uint32_t | |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
46 static int draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y) |
1 | 47 //draw_slice(uint8_t *src[], uint32_t slice_num) |
48 { | |
49 return 0; | |
50 } | |
51 | |
1501
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
31
diff
changeset
|
52 static void draw_osd(void) |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
31
diff
changeset
|
53 { |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
31
diff
changeset
|
54 } |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
31
diff
changeset
|
55 |
1 | 56 static void |
57 flip_page(void) | |
58 { | |
59 } | |
60 | |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
61 static int |
1 | 62 draw_frame(uint8_t *src[]) |
63 { | |
64 return 0; | |
65 } | |
66 | |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
67 static int |
1 | 68 query_format(uint32_t format) |
69 { | |
15212
05aa13cdf92f
replace VO and VF numeric flags with #defined identifiers
henry
parents:
8148
diff
changeset
|
70 return VFCAP_CSP_SUPPORTED; |
1 | 71 } |
72 | |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
73 static int |
15212
05aa13cdf92f
replace VO and VF numeric flags with #defined identifiers
henry
parents:
8148
diff
changeset
|
74 config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) |
1 | 75 { |
76 image_width = width; | |
77 image_height = height; | |
78 return 0; | |
79 } | |
80 | |
81 static void | |
82 uninit(void) | |
83 { | |
84 } | |
85 | |
86 | |
31 | 87 static void check_events(void) |
88 { | |
89 } | |
1 | 90 |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
91 static int preinit(const char *arg) |
4352 | 92 { |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
93 if(arg) |
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
94 { |
18234
a107276371a8
Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with lots of corrections
reynaldo
parents:
16171
diff
changeset
|
95 mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_NULL_UnknownSubdevice,arg); |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
96 return ENOSYS; |
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
97 } |
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
98 return 0; |
4352 | 99 } |
31 | 100 |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
101 static int control(uint32_t request, void *data, ...) |
4352 | 102 { |
4592
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
103 switch (request) { |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
104 case VOCTRL_QUERY_FORMAT: |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
105 return query_format(*((uint32_t*)data)); |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
106 } |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
107 return VO_NOTIMPL; |
4352 | 108 } |