XvWidget

Qt Widget for using X-Video acceleration in a Qt4-QtRuby application.

Inherits

See also

Summary
XvWidgetQt Widget for using X-Video acceleration in a Qt4-QtRuby application.
Functions
XvWidget.new
XvWidget.registerThis method is used internally only.
XvWidget.unregisterThis method is used internally only.
writePass image to output object.
clearClear window to black colour until next image is written to the display.
grabPortTake hold of the XVideo port if it wasn’t grabbed already.
releasePortRelease the XVideo port if it is being held by this widget.
paintEventThis method is used internally to get notified when the widget needs to be repainted.
closeEventThis method is used internally to get notified when this widget is closed.

Functions

XvWidget.new

def XvWidget.new(parent =  nil,
grab_port_now =  true)

Parameters

parentParent Qt widget
grab_port_nowWhether the XVideo port should be grabbed at this point

XvWidget.register

def XvWidget.register(widget)

This method is used internally only.

XvWidget.unregister

def XvWidget.unregister(widget)

This method is used internally only.

write

def write(image)

Pass image to output object.

Parameters

imageimage of type Frame_ or Sequence_

clear

def clear

Clear window to black colour until next image is written to the display.  This method can be called after the last frame of the video was displayed.

grabPort

def grabPort

Take hold of the XVideo port if it wasn’t grabbed already.

releasePort

def releasePort

Release the XVideo port if it is being held by this widget.

paintEvent

def paintEvent(e)

This method is used internally to get notified when the widget needs to be repainted.  This method paints the XVideo colour key if required.

closeEvent

def closeEvent(e)

This method is used internally to get notified when this widget is closed.

def XvWidget.new(parent =  nil,
grab_port_now =  true)
def XvWidget.register(widget)
This method is used internally only.
def XvWidget.unregister(widget)
This method is used internally only.
def write(image)
Pass image to output object.
def clear
Clear window to black colour until next image is written to the display.
def grabPort
Take hold of the XVideo port if it wasn’t grabbed already.
def releasePort
Release the XVideo port if it is being held by this widget.
def paintEvent(e)
This method is used internally to get notified when the widget needs to be repainted.
def closeEvent(e)
This method is used internally to get notified when this widget is closed.
Base class for different types of input sources for images.
The XVideo widget allows to use XVideo acceleration in a Qt4-QtRuby application.
This class provides fast (multi-dimensional) Ruby arrays where all elements are of the same type.
Close