Mercurial > mplayer.hg
comparison libvo/mga_common.c @ 9727:695825b70485
100l to Gabu, this caused divide-by-zero with -vo mga. Apparently
someone only tested -vo xmga. Feel free to reenable if you can fix the
sigfpe properly.
author | rfelker |
---|---|
date | Sat, 29 Mar 2003 19:56:31 +0000 |
parents | 148281a4e77b |
children | 275766100443 |
comparison
equal
deleted
inserted
replaced
9726:c9a2a31bede0 | 9727:695825b70485 |
---|---|
25 #endif | 25 #endif |
26 static uint32_t drwcX,drwcY,dwidth,dheight; | 26 static uint32_t drwcX,drwcY,dwidth,dheight; |
27 | 27 |
28 static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){ | 28 static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){ |
29 uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31; | 29 uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31; |
30 x0+=mga_vid_config.src_width*(vo_panscan_x>>1)/(vo_dwidth+vo_panscan_x); | 30 // x0+=mga_vid_config.src_width*(vo_panscan_x>>1)/(vo_dwidth+vo_panscan_x); |
31 switch(mga_vid_config.format){ | 31 switch(mga_vid_config.format){ |
32 case MGA_VID_FORMAT_YV12: | 32 case MGA_VID_FORMAT_YV12: |
33 case MGA_VID_FORMAT_IYUV: | 33 case MGA_VID_FORMAT_IYUV: |
34 case MGA_VID_FORMAT_I420: | 34 case MGA_VID_FORMAT_I420: |
35 vo_draw_alpha_yv12(w,h,src,srca,stride,vid_data+bespitch*y0+x0,bespitch); | 35 vo_draw_alpha_yv12(w,h,src,srca,stride,vid_data+bespitch*y0+x0,bespitch); |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 static void draw_osd(void) | 46 static void draw_osd(void) |
47 { | 47 { |
48 vo_draw_text(mga_vid_config.src_width-mga_vid_config.src_width*vo_panscan_x/(vo_dwidth+vo_panscan_x),mga_vid_config.src_height,draw_alpha); | 48 vo_draw_text(mga_vid_config.src_width,mga_vid_config.src_height,draw_alpha); |
49 // vo_draw_text(mga_vid_config.src_width-mga_vid_config.src_width*vo_panscan_x/(vo_dwidth+vo_panscan_x),mga_vid_config.src_height,draw_alpha); | |
49 } | 50 } |
50 | 51 |
51 | 52 |
52 //static void | 53 //static void |
53 //write_slice_g200(uint8_t *y,uint8_t *cr, uint8_t *cb,uint32_t slice_num) | 54 //write_slice_g200(uint8_t *y,uint8_t *cr, uint8_t *cb,uint32_t slice_num) |