NAME

Video::Xine::Driver::Video - Video driver class for Xine

METHODS

new()

Video::Xine::Driver::Video->new($xine, $id, $visual, $data)

Returns a video driver which can be used to open streams. id, $visual, and $data are optional. If $id is undefined, returns an automatically-chosen driver.

$visual is the visual type, which should be an integer. Video::Xine provides a series of constants indicating the different visual types.

$data is an opaque value dependent on the visual type. For XINE_VISUAL_TYPE_X11, $data is of type x11_visual_type, a C struct which should be created with with the method Video::Xine::Util::make_x11_visual().

Example:

my $display = X11::FullScreen::Display->new($display_str);

my $x11_visual = Video::Xine::Util::make_x11_visual
   ($display,
    $display->getDefaultScreen(),
    $display->createWindow(),
    $display->getWidth(),
    $display->getHeight(),
    $display->getPixelAspect()
   );
my $driver = Video::Xine::Driver::Video->new
   ($xine,"Xv",XINE_VISUAL_TYPE_X11, $x11_visual)
  or die "Couldn't load video driver";

VIDEO DRIVER CONSTANTS

  • XINE_VISUAL_TYPE_NONE

  • XINE_VISUAL_TYPE_X11

  • XINE_VISUAL_TYPE_X11_2

  • XINE_VISUAL_TYPE_AA

  • XINE_VISUAL_TYPE_FB

  • XINE_VISUAL_TYPE_GTK

  • XINE_VISUAL_TYPE_DFB

  • XINE_VISUAL_TYPE_PM

  • XINE_VISUAL_TYPE_DIRECTX

  • XINE_VISUAL_TYPE_CACA

  • XINE_VISUAL_TYPE_MACOSX

  • XINE_VISUAL_TYPE_XCB