Mercurial > mplayer.hg
comparison libvo/vo_fbdev.c @ 27443:ff52998e24e8
-geometry support for -vo fbdev.
Patch by Sander (thrill12 gmx net)
author | reimar |
---|---|
date | Fri, 22 Aug 2008 17:26:16 +0000 |
parents | 46f0b4d34fa1 |
children | 85683590690a |
comparison
equal
deleted
inserted
replaced
27442:afa2cc0166be | 27443:ff52998e24e8 |
---|---|
23 #include "config.h" | 23 #include "config.h" |
24 #include "video_out.h" | 24 #include "video_out.h" |
25 #include "video_out_internal.h" | 25 #include "video_out_internal.h" |
26 #include "fastmemcpy.h" | 26 #include "fastmemcpy.h" |
27 #include "sub.h" | 27 #include "sub.h" |
28 #include "geometry.h" | |
28 #ifdef CONFIG_VIDIX | 29 #ifdef CONFIG_VIDIX |
29 #include "vosub_vidix.h" | 30 #include "vosub_vidix.h" |
30 #endif | 31 #endif |
31 #include "aspect.h" | 32 #include "aspect.h" |
32 #include "mp_msg.h" | 33 #include "mp_msg.h" |
997 } | 998 } |
998 else | 999 else |
999 #endif | 1000 #endif |
1000 { | 1001 { |
1001 int x_offset=0,y_offset=0; | 1002 int x_offset=0,y_offset=0; |
1003 geometry(&x_offset, &y_offset, &out_width, &out_height, fb_xres, fb_yres); | |
1002 if ((frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE, | 1004 if ((frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE, |
1003 MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) { | 1005 MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) { |
1004 mp_msg(MSGT_VO, MSGL_ERR, "Can't mmap %s: %s\n", fb_dev_name, strerror(errno)); | 1006 mp_msg(MSGT_VO, MSGL_ERR, "Can't mmap %s: %s\n", fb_dev_name, strerror(errno)); |
1005 return 1; | 1007 return 1; |
1006 } | 1008 } |