summaryrefslogtreecommitdiffstats
path: root/libvo/vo_fbdev.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-27 15:45:02 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-27 15:45:02 +0000
commite9e10be56880d38300d96aeb2ea1851f68ca8cb9 (patch)
treee6f6f5be282eaeab55c7a683327cc7f588ee6e62 /libvo/vo_fbdev.c
parentf1744ebb530944d4d2f19b580cf5a00b8204fbf5 (diff)
downloadmpv-e9e10be56880d38300d96aeb2ea1851f68ca8cb9.tar.bz2
mpv-e9e10be56880d38300d96aeb2ea1851f68ca8cb9.tar.xz
removed screenshot thingie - it will be moved to video filter layer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6204 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_fbdev.c')
-rw-r--r--libvo/vo_fbdev.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c
index d759c5062f..a4b3646837 100644
--- a/libvo/vo_fbdev.c
+++ b/libvo/vo_fbdev.c
@@ -1350,55 +1350,11 @@ static uint32_t preinit(const char *arg)
return(-1);
}
-#ifdef HAVE_PNG
-static int fbdev_screenshot(void)
-{
- uint32_t i;
- uint8_t *ptrs[fb_vinfo.yres];
- if(video_out_png.preinit(NULL))
- {
- printf("\nvo_fbdev: can't preinit vo_png\n");
- return 1;
- }
- if(!video_out_png.control(VOCTRL_QUERY_FORMAT, &dstFourcc))
- {
- printf("\nvo_fbdev: vo_png doesn't support: %s fourcc\n",vo_format_name(dstFourcc));
- return 1;
- }
- if(video_out_png.config(fb_vinfo.xres,
- fb_vinfo.yres,
- fb_vinfo.xres,
- fb_vinfo.yres,
- 0,NULL,dstFourcc,NULL))
- {
- printf("\nvo_fbdev: can't configure vo_png\n");
- return 1;
- }
- ptrs[0] = L123123875;
- for(i=1;i<fb_vinfo.yres;i++)
- ptrs[i] = ptrs[i-1]+fb_line_len;
- if(video_out_png.draw_frame(ptrs))
- {
- printf("\nvo_fbdev: vo_png: error during dumping\n");
- return 1;
- }
-
- video_out_png.uninit();
- if(verbose) printf("\nvo_fbdev: png output has been created\n");
- return 0;
-}
-#endif
-
static uint32_t control(uint32_t request, void *data, ...)
{
switch (request) {
case VOCTRL_QUERY_FORMAT:
return query_format(*((uint32_t*)data));
-#ifdef HAVE_PNG
- case VOCTRL_SCREENSHOT:
- return fbdev_screenshot();
- break;
-#endif
}
return VO_NOTIMPL;
}