comparison libvo/vo_null.c @ 16171:fd51fd1ff231

Fix the return types of all (six) libvo API functions. Used to be uint32_t, but return values can be negative (VO_ERROR, VO_NOTAVAIL and VO_NOTIMPL), so it's changed to int now.
author ivo
date Fri, 05 Aug 2005 01:24:37 +0000
parents 05aa13cdf92f
children a107276371a8
comparison
equal deleted inserted replaced
16170:7c5d6c82e5ed 16171:fd51fd1ff231
40 LIBVO_EXTERN(null) 40 LIBVO_EXTERN(null)
41 41
42 static uint32_t image_width, image_height; 42 static uint32_t image_width, image_height;
43 43
44 //static uint32_t 44 //static uint32_t
45 static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y) 45 static int draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
46 //draw_slice(uint8_t *src[], uint32_t slice_num) 46 //draw_slice(uint8_t *src[], uint32_t slice_num)
47 { 47 {
48 return 0; 48 return 0;
49 } 49 }
50 50
55 static void 55 static void
56 flip_page(void) 56 flip_page(void)
57 { 57 {
58 } 58 }
59 59
60 static uint32_t 60 static int
61 draw_frame(uint8_t *src[]) 61 draw_frame(uint8_t *src[])
62 { 62 {
63 return 0; 63 return 0;
64 } 64 }
65 65
66 static uint32_t 66 static int
67 query_format(uint32_t format) 67 query_format(uint32_t format)
68 { 68 {
69 return VFCAP_CSP_SUPPORTED; 69 return VFCAP_CSP_SUPPORTED;
70 } 70 }
71 71
72 static uint32_t 72 static int
73 config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) 73 config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
74 { 74 {
75 image_width = width; 75 image_width = width;
76 image_height = height; 76 image_height = height;
77 return 0; 77 return 0;
85 85
86 static void check_events(void) 86 static void check_events(void)
87 { 87 {
88 } 88 }
89 89
90 static uint32_t preinit(const char *arg) 90 static int preinit(const char *arg)
91 { 91 {
92 if(arg) 92 if(arg)
93 { 93 {
94 printf("vo_null: Unknown subdevice: %s\n",arg); 94 printf("vo_null: Unknown subdevice: %s\n",arg);
95 return ENOSYS; 95 return ENOSYS;
96 } 96 }
97 return 0; 97 return 0;
98 } 98 }
99 99
100 static uint32_t control(uint32_t request, void *data, ...) 100 static int control(uint32_t request, void *data, ...)
101 { 101 {
102 switch (request) { 102 switch (request) {
103 case VOCTRL_QUERY_FORMAT: 103 case VOCTRL_QUERY_FORMAT:
104 return query_format(*((uint32_t*)data)); 104 return query_format(*((uint32_t*)data));
105 } 105 }