Mercurial > mplayer.hg
annotate libvo/vo_null.c @ 17026:3c4b93bc0db3
10l
author | lorenm |
---|---|
date | Tue, 22 Nov 2005 05:32:28 +0000 |
parents | fd51fd1ff231 |
children | a107276371a8 |
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 | |
19 * along with GNU Make; see the file COPYING. If not, write to | |
20 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
21 * | |
22 */ | |
23 | |
5607 | 24 #include <stdio.h> |
25 #include <stdlib.h> | |
8123
9fc45fe0d444
*HUGE* set of compiler warning fixes, unused variables removal
arpi
parents:
7124
diff
changeset
|
26 #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
|
27 #include <errno.h> |
1 | 28 #include "config.h" |
29 #include "video_out.h" | |
30 #include "video_out_internal.h" | |
31 | |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
8123
diff
changeset
|
32 static vo_info_t info = |
1 | 33 { |
34 "Null video output", | |
35 "null", | |
36 "Aaron Holtzman <aholtzma@ess.engr.uvic.ca>", | |
37 "" | |
38 }; | |
39 | |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
8123
diff
changeset
|
40 LIBVO_EXTERN(null) |
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
8123
diff
changeset
|
41 |
1 | 42 static uint32_t image_width, image_height; |
43 | |
44 //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
|
45 static int draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y) |
1 | 46 //draw_slice(uint8_t *src[], uint32_t slice_num) |
47 { | |
48 return 0; | |
49 } | |
50 | |
1501
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
31
diff
changeset
|
51 static void draw_osd(void) |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
31
diff
changeset
|
52 { |
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 |
1 | 55 static void |
56 flip_page(void) | |
57 { | |
58 } | |
59 | |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
60 static int |
1 | 61 draw_frame(uint8_t *src[]) |
62 { | |
63 return 0; | |
64 } | |
65 | |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
66 static int |
1 | 67 query_format(uint32_t format) |
68 { | |
15212
05aa13cdf92f
replace VO and VF numeric flags with #defined identifiers
henry
parents:
8148
diff
changeset
|
69 return VFCAP_CSP_SUPPORTED; |
1 | 70 } |
71 | |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
72 static int |
15212
05aa13cdf92f
replace VO and VF numeric flags with #defined identifiers
henry
parents:
8148
diff
changeset
|
73 config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) |
1 | 74 { |
75 image_width = width; | |
76 image_height = height; | |
77 return 0; | |
78 } | |
79 | |
80 static void | |
81 uninit(void) | |
82 { | |
83 } | |
84 | |
85 | |
31 | 86 static void check_events(void) |
87 { | |
88 } | |
1 | 89 |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
90 static int preinit(const char *arg) |
4352 | 91 { |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
92 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
|
93 { |
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
94 printf("vo_null: Unknown subdevice: %s\n",arg); |
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
95 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
|
96 } |
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4596
diff
changeset
|
97 return 0; |
4352 | 98 } |
31 | 99 |
16171
fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
ivo
parents:
15212
diff
changeset
|
100 static int control(uint32_t request, void *data, ...) |
4352 | 101 { |
4592
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
102 switch (request) { |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
103 case VOCTRL_QUERY_FORMAT: |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
104 return query_format(*((uint32_t*)data)); |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
105 } |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4433
diff
changeset
|
106 return VO_NOTIMPL; |
4352 | 107 } |