* fb.c : framebuffer plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
- * $Id: fb.c,v 1.8 2004/01/26 16:45:02 zorglub Exp $
+ * $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
#define DEVICE_TEXT N_("Framebuffer device")
#define DEVICE_LONGTEXT N_( \
"You can select here the framebuffer device that will be used " \
- "for rendering (ususally /dev/fb0).")
+ "for rendering (usually /dev/fb0).")
vlc_module_begin();
+ set_shortname( "FB" );
+ set_category( CAT_VIDEO );
+ set_subcategory( SUBCAT_VIDEO_VOUT );
add_file( FB_DEV_VAR, "/dev/fb0", NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
VLC_FALSE );
set_description( _("GNU/Linux console framebuffer video output") );
*****************************************************************************/
struct vout_sys_t
{
- /* System informations */
+ /* System information */
int i_tty; /* tty device handle */
struct termios old_termios;
- /* Original configuration informations */
+ /* Original configuration information */
struct sigaction sig_usr1; /* USR1 previous handler */
struct sigaction sig_usr2; /* USR2 previous handler */
struct vt_mode vt_mode; /* previous VT mode */
/* Framebuffer information */
int i_fd; /* device handle */
- struct fb_var_screeninfo old_info; /* original mode informations */
- struct fb_var_screeninfo var_info; /* current mode informations */
+ struct fb_var_screeninfo old_info; /* original mode information */
+ struct fb_var_screeninfo var_info; /* current mode information */
vlc_bool_t b_pan; /* does device supports panning ? */
struct fb_cmap fb_cmap; /* original colormap */
uint16_t *p_palette; /* original palette */
p_pic->p->p_pixels = p_vout->p_sys->p_video;
p_pic->p->i_pixel_pitch = p_vout->p_sys->i_bytes_per_pixel;
p_pic->p->i_lines = p_vout->p_sys->var_info.yres;
+ p_pic->p->i_visible_lines = p_vout->p_sys->var_info.yres;
if( p_vout->p_sys->var_info.xres_virtual )
{
}
free( psz_device );
- /* Get framebuffer device informations */
+ /* Get framebuffer device information */
if( ioctl( p_vout->p_sys->i_fd,
FBIOGET_VSCREENINFO, &p_vout->p_sys->var_info ) )
{
return VLC_EGENERIC;
}
- /* Get some informations again, in the definitive configuration */
+ /* Get some information again, in the definitive configuration */
if( ioctl( p_vout->p_sys->i_fd, FBIOGET_FSCREENINFO, &fix_info )
|| ioctl( p_vout->p_sys->i_fd,
FBIOGET_VSCREENINFO, &p_vout->p_sys->var_info ) )