comparison libvo/mga_common.c @ 5389:7296c4262457

quick hack to make vo_mga accept multiple calls to config someone else should probably improve on this later
author rfelker
date Fri, 29 Mar 2002 05:03:25 +0000
parents da218aa7f9db
children c7455d4079ae
comparison
equal deleted inserted replaced
5388:3af2729c5c87 5389:7296c4262457
7 7
8 static int mga_next_frame=0; 8 static int mga_next_frame=0;
9 9
10 static mga_vid_config_t mga_vid_config; 10 static mga_vid_config_t mga_vid_config;
11 static uint8_t *vid_data, *frames[4]; 11 static uint8_t *vid_data, *frames[4];
12 static int f; 12 static int f = -1;
13 13
14 static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){ 14 static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){
15 int x,y; 15 int x,y;
16 uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31; 16 uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31;
17 switch(mga_vid_config.format){ 17 switch(mga_vid_config.format){
332 332
333 static int mga_uninit(){ 333 static int mga_uninit(){
334 ioctl( f,MGA_VID_OFF,0 ); 334 ioctl( f,MGA_VID_OFF,0 );
335 munmap(frames[0],mga_vid_config.frame_size*mga_vid_config.num_frames); 335 munmap(frames[0],mga_vid_config.frame_size*mga_vid_config.num_frames);
336 close(f); 336 close(f);
337 f = -1;
337 } 338 }
338 339
339 static uint32_t preinit(const char *arg) 340 static uint32_t preinit(const char *arg)
340 { 341 {
341 return 0; 342 return 0;