Mercurial > mplayer.hg
comparison libvo/vo_fbdev.c @ 8745:93f78fb709e6
Added support for X style -geometry options (adapted from Henk's patch)
-- Mark
author | mark |
---|---|
date | Fri, 03 Jan 2003 20:46:44 +0000 |
parents | 5b39e79af5fe |
children | 3168cfe4f7d1 |
comparison
equal
deleted
inserted
replaced
8744:f3c6f022d6b0 | 8745:93f78fb709e6 |
---|---|
1037 aspect(&image_width,&image_height,fs ? A_ZOOM : A_NOZOOM); | 1037 aspect(&image_width,&image_height,fs ? A_ZOOM : A_NOZOOM); |
1038 } else { | 1038 } else { |
1039 image_width=width; | 1039 image_width=width; |
1040 image_height=height; | 1040 image_height=height; |
1041 } | 1041 } |
1042 geometry(&x_offset,&y_offset,fb_xres,fb_yres,image_width,image_height,fs); | 1042 geometry(&x_offset,&y_offset,fb_xres,fb_yres,image_width,image_height); |
1043 | 1043 |
1044 if(vidix_init(width,height,x_offset,y_offset,image_width, | 1044 if(vidix_init(width,height,x_offset,y_offset,image_width, |
1045 image_height,format,fb_bpp, | 1045 image_height,format,fb_bpp, |
1046 fb_xres,fb_yres) != 0) | 1046 fb_xres,fb_yres) != 0) |
1047 { | 1047 { |
1061 MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) { | 1061 MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) { |
1062 printf(FBDEV "Can't mmap %s: %s\n", fb_dev_name, strerror(errno)); | 1062 printf(FBDEV "Can't mmap %s: %s\n", fb_dev_name, strerror(errno)); |
1063 return 1; | 1063 return 1; |
1064 } | 1064 } |
1065 | 1065 |
1066 geometry(&x_offset,&y_offset,fb_xres,fb_yres,out_width,out_height,fs); | 1066 geometry(&x_offset,&y_offset,fb_xres,fb_yres,out_width,out_height); |
1067 | 1067 |
1068 L123123875 = frame_buffer + (out_width - in_width) * fb_pixel_size / | 1068 L123123875 = frame_buffer + (out_width - in_width) * fb_pixel_size / |
1069 2 + ( (out_height - in_height) / 2 ) * fb_line_len + | 1069 2 + ( (out_height - in_height) / 2 ) * fb_line_len + |
1070 x_offset * fb_pixel_size + y_offset * fb_line_len; | 1070 x_offset * fb_pixel_size + y_offset * fb_line_len; |
1071 | 1071 |