summaryrefslogtreecommitdiffstats
path: root/libvo/vesa_lvo.c
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-18 15:06:32 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-18 15:06:32 +0000
commit0cd42028bccf221e4cc896183f6d41c9fbf3f686 (patch)
tree1c400ac5a6f91942a2d888801ccc855474be765a /libvo/vesa_lvo.c
parente4c3e3c10a5f3b18b9de90a68073441fd765e2dd (diff)
downloadmpv-0cd42028bccf221e4cc896183f6d41c9fbf3f686.tar.bz2
mpv-0cd42028bccf221e4cc896183f6d41c9fbf3f686.tar.xz
Added preinit of lvo stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2972 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vesa_lvo.c')
-rw-r--r--libvo/vesa_lvo.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/libvo/vesa_lvo.c b/libvo/vesa_lvo.c
index debe2d3d89..f4c5622857 100644
--- a/libvo/vesa_lvo.c
+++ b/libvo/vesa_lvo.c
@@ -40,17 +40,22 @@ extern int verbose;
#define SCREEN_LINE_SIZE(pixel_size) (video_mode_info.XResolution*(pixel_size) )
#define IMAGE_LINE_SIZE(pixel_size) (image_width*(pixel_size))
-int vlvo_init(const char *drvname,unsigned src_width,unsigned src_height,
- unsigned x_org,unsigned y_org,unsigned dst_width,
- unsigned dst_height,unsigned format,unsigned dest_bpp)
+int vlvo_preinit(const char *drvname)
{
- size_t i,awidth;
lvo_handler = open(drvname,O_RDWR);
if(lvo_handler == -1)
{
- printf("Couldn't open %s\n",drvname);
+ printf("vesa_lvo: Couldn't open '%s'\n",drvname);
return -1;
}
+ return 0;
+}
+
+int vlvo_init(unsigned src_width,unsigned src_height,
+ unsigned x_org,unsigned y_org,unsigned dst_width,
+ unsigned dst_height,unsigned format,unsigned dest_bpp)
+{
+ size_t i,awidth;
image_width = src_width;
image_height = src_height;
mga_vid_config.version=MGA_VID_VERSION;
@@ -99,8 +104,8 @@ int vlvo_init(const char *drvname,unsigned src_width,unsigned src_height,
mga_vid_config.num_frames=NUM_FRAMES;
if (ioctl(lvo_handler,MGA_VID_CONFIG,&mga_vid_config))
{
- perror("Error in mga_vid_config ioctl()");
- printf("Your mga_vid driver version is incompatible with this MPlayer version!\n");
+ perror("vesa_lvo: Error in mga_vid_config ioctl()");
+ printf("vesa_lvo: Your fb_vid driver version is incompatible with this MPlayer version!\n");
return -1;
}
ioctl(lvo_handler,MGA_VID_ON,0);