• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • Kopete
  • AV
  • VideoDevice
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Kopete::AV::VideoDevice Class Reference

#include <videodevice.h>

Public Member Functions

 VideoDevice ()
 
virtual ~VideoDevice ()
 
bool canAsyncIO ()
 
bool canCapture ()
 
bool canChromakey ()
 
bool canOverlay ()
 
bool canRead ()
 
bool canScale ()
 
bool canStream ()
 
virtual int close ()
 
int currentInput ()
 
int detectPixelFormats ()
 
int detectSignalStandards ()
 
QString fileName ()
 
int getControlValue (quint32 ctrl_id, qint32 *value)
 
virtual int getFrame ()
 
virtual int getFrame (imagebuffer *imgbuffer)
 
virtual int getImage (QImage *qimage)
 
QList< ActionVideoControl > getSupportedActionControls ()
 
QList< BooleanVideoControl > getSupportedBooleanControls ()
 
QList< MenuVideoControl > getSupportedMenuControls ()
 
QList< NumericVideoControl > getSupportedNumericControls ()
 
int height ()
 
int inputs ()
 
virtual bool isOpen ()
 
int maxHeight ()
 
int maxWidth ()
 
int minHeight ()
 
int minWidth ()
 
virtual int open ()
 
int pixelFormatCode (pixel_format pixelformat)
 
int pixelFormatDepth (pixel_format pixelformat)
 
pixel_format pixelFormatForPalette (int palette)
 
QString pixelFormatName (pixel_format pixelformat)
 
QString pixelFormatName (int pixelformat)
 
int selectInput (int input)
 
int setControlValue (quint32 ctrl_id, qint32 value)
 
int setFileName (QString filename)
 
virtual pixel_format setPixelFormat (pixel_format newformat)
 
virtual int setSize (int newwidth, int newheight)
 
void setUdi (const QString &)
 
int showDeviceCapabilities ()
 
__u64 signalStandardCode (signal_standard standard)
 
QString signalStandardName (signal_standard standard)
 
QString signalStandardName (int standard)
 
virtual int startCapturing ()
 
virtual int stopCapturing ()
 
QString udi () const
 
int width ()
 

Public Attributes

QVector< Kopete::AV::VideoInput > m_input
 
QString m_name
 

Protected Member Functions

virtual int checkDevice ()
 
int errnoReturn (const char *s)
 
virtual int initDevice ()
 
int initMmap ()
 
int initRead ()
 
int initUserptr ()
 
void setupControls ()
 
int xioctl (int request, void *arg)
 

Protected Attributes

int currentheight
 
int currentwidth
 
int descriptor
 
QString full_filename
 
QList< ActionVideoControl > m_actionCtrls
 
QList< BooleanVideoControl > m_booleanCtrls
 
int m_buffer_size
 
int m_current_input
 
imagebuffer m_currentbuffer
 
videodev_driver m_driver
 
io_method m_io_method
 
QList< MenuVideoControl > m_menuCtrls
 
QString m_model
 
QList< NumericVideoControl > m_numericCtrls
 
pixel_format m_pixelformat
 
QVector< rawbuffer > m_rawbuffers
 
unsigned int m_streambuffers
 
QString m_udi
 
bool m_videoasyncio
 
bool m_videocapture
 
bool m_videochromakey
 
bool m_videooverlay
 
bool m_videoread
 
bool m_videoscale
 
bool m_videostream
 
int maxheight
 
int maxwidth
 
int minheight
 
int minwidth
 

Detailed Description

Definition at line 276 of file videodevice.h.

Constructor & Destructor Documentation

Kopete::AV::VideoDevice::VideoDevice ( )

Definition at line 39 of file videodevice.cpp.

Kopete::AV::VideoDevice::~VideoDevice ( )
virtual

Definition at line 47 of file videodevice.cpp.

Member Function Documentation

bool Kopete::AV::VideoDevice::canAsyncIO ( )

Definition at line 3010 of file videodevice.cpp.

bool Kopete::AV::VideoDevice::canCapture ( )

Definition at line 2985 of file videodevice.cpp.

bool Kopete::AV::VideoDevice::canChromakey ( )

Definition at line 2990 of file videodevice.cpp.

bool Kopete::AV::VideoDevice::canOverlay ( )

Definition at line 3000 of file videodevice.cpp.

bool Kopete::AV::VideoDevice::canRead ( )

Definition at line 3005 of file videodevice.cpp.

bool Kopete::AV::VideoDevice::canScale ( )

Definition at line 2995 of file videodevice.cpp.

bool Kopete::AV::VideoDevice::canStream ( )

Definition at line 3015 of file videodevice.cpp.

int Kopete::AV::VideoDevice::checkDevice ( )
protectedvirtual

Definition at line 369 of file videodevice.cpp.

int Kopete::AV::VideoDevice::close ( )
virtual

Closes the device.

Returns
The success of the operation: EXIT_SUCCESS or EXIT_FAILURE Stops capturing, resets internal data and closes the device.

Definition at line 1657 of file videodevice.cpp.

int Kopete::AV::VideoDevice::currentInput ( )
Todo:
implement me

Definition at line 1019 of file videodevice.cpp.

int Kopete::AV::VideoDevice::detectPixelFormats ( )

Definition at line 2402 of file videodevice.cpp.

int Kopete::AV::VideoDevice::detectSignalStandards ( )

this must be done once for each input.

Definition at line 2752 of file videodevice.cpp.

int Kopete::AV::VideoDevice::errnoReturn ( const char *  s)
protected
Todo:
implement me

Definition at line 293 of file videodevice.cpp.

QString Kopete::AV::VideoDevice::fileName ( )

Definition at line 313 of file videodevice.cpp.

int Kopete::AV::VideoDevice::getControlValue ( quint32  ctrl_id,
qint32 *  value 
)

Reads the value of a video-control.

Parameters
ctrl_idID of the video-control
valuePointer to the variable, which receives the value of the querried video-control. For boolean controls, the value is 0 or 1. For menu-controls, the value is the index of the currently selected option.
Returns
The result-code, currently EXIT_SUCCESS or EXIT_FAILURE

Definition at line 1736 of file videodevice.cpp.

int Kopete::AV::VideoDevice::getFrame ( )
virtual
Todo:
implement me

Definition at line 1150 of file videodevice.cpp.

int Kopete::AV::VideoDevice::getFrame ( imagebuffer *  imgbuffer)
virtual

Definition at line 1271 of file videodevice.cpp.

int Kopete::AV::VideoDevice::getImage ( QImage *  qimage)
virtual
Todo:
implement me

Definition at line 1288 of file videodevice.cpp.

QList< ActionVideoControl > Kopete::AV::VideoDevice::getSupportedActionControls ( )

Returns the supported action-controls for the current input.

Returns
A list of all supported action-controls for the current input

Definition at line 1722 of file videodevice.cpp.

QList< BooleanVideoControl > Kopete::AV::VideoDevice::getSupportedBooleanControls ( )

Returns the supported boolean controls for the current input.

Returns
A list of all supported boolean controls for the current input

Definition at line 1702 of file videodevice.cpp.

QList< MenuVideoControl > Kopete::AV::VideoDevice::getSupportedMenuControls ( )

Returns the supported menu-controls for the current input.

Returns
A list of all supported menu-controls for the current input

Definition at line 1712 of file videodevice.cpp.

QList< NumericVideoControl > Kopete::AV::VideoDevice::getSupportedNumericControls ( )

Returns the supported numeric controls for the current input.

Returns
A list of all supported numeric controls for the current input

Definition at line 1692 of file videodevice.cpp.

int Kopete::AV::VideoDevice::height ( )

Definition at line 752 of file videodevice.cpp.

int Kopete::AV::VideoDevice::initDevice ( )
protectedvirtual
Todo:
implement me

Definition at line 642 of file videodevice.cpp.

int Kopete::AV::VideoDevice::initMmap ( )
protected
Todo:
implement me

Definition at line 2855 of file videodevice.cpp.

int Kopete::AV::VideoDevice::initRead ( )
protected
Todo:
implement me

Definition at line 2821 of file videodevice.cpp.

int Kopete::AV::VideoDevice::initUserptr ( )
protected
Todo:
implement me

Definition at line 2933 of file videodevice.cpp.

int Kopete::AV::VideoDevice::inputs ( )

Definition at line 731 of file videodevice.cpp.

bool Kopete::AV::VideoDevice::isOpen ( )
virtual

Definition at line 358 of file videodevice.cpp.

int Kopete::AV::VideoDevice::maxHeight ( )

Definition at line 762 of file videodevice.cpp.

int Kopete::AV::VideoDevice::maxWidth ( )

Definition at line 747 of file videodevice.cpp.

int Kopete::AV::VideoDevice::minHeight ( )

Definition at line 757 of file videodevice.cpp.

int Kopete::AV::VideoDevice::minWidth ( )

Definition at line 742 of file videodevice.cpp.

int Kopete::AV::VideoDevice::open ( )
virtual
Todo:
implement me

Definition at line 321 of file videodevice.cpp.

int Kopete::AV::VideoDevice::pixelFormatCode ( pixel_format  pixelformat)

Definition at line 2113 of file videodevice.cpp.

int Kopete::AV::VideoDevice::pixelFormatDepth ( pixel_format  pixelformat)

Definition at line 2222 of file videodevice.cpp.

pixel_format Kopete::AV::VideoDevice::pixelFormatForPalette ( int  palette)

Definition at line 2031 of file videodevice.cpp.

QString Kopete::AV::VideoDevice::pixelFormatName ( pixel_format  pixelformat)

Definition at line 2269 of file videodevice.cpp.

QString Kopete::AV::VideoDevice::pixelFormatName ( int  pixelformat)

Definition at line 2319 of file videodevice.cpp.

int Kopete::AV::VideoDevice::selectInput ( int  input)
Todo:
implement me

Definition at line 1032 of file videodevice.cpp.

int Kopete::AV::VideoDevice::setControlValue ( quint32  ctrl_id,
qint32  value 
)

Sets the value of a video-control.

Parameters
ctrl_idID of the video-control
valueThe value that should be set. For boolean controls, the value must be 0 or 1. For menu-controls, the value must be the index of the option. For action-controls, the value is ignored.
Returns
The result-code, currently EXIT_SUCCESS or EXIT_FAILURE

Definition at line 1878 of file videodevice.cpp.

int Kopete::AV::VideoDevice::setFileName ( QString  filename)
Todo:
implement me

Definition at line 303 of file videodevice.cpp.

pixel_format Kopete::AV::VideoDevice::setPixelFormat ( pixel_format  newformat)
virtual

Definition at line 940 of file videodevice.cpp.

int Kopete::AV::VideoDevice::setSize ( int  newwidth,
int  newheight 
)
virtual

Definition at line 767 of file videodevice.cpp.

void Kopete::AV::VideoDevice::setUdi ( const QString &  udi)

Definition at line 3020 of file videodevice.cpp.

void Kopete::AV::VideoDevice::setupControls ( )
protected

Sets up the supported video-controls for the current input.

Determines which video-controls are supported for the current input, reads all needed information about them and stores the data to the local members

Definition at line 59 of file videodevice.cpp.

int Kopete::AV::VideoDevice::showDeviceCapabilities ( )

Definition at line 568 of file videodevice.cpp.

__u64 Kopete::AV::VideoDevice::signalStandardCode ( signal_standard  standard)

Definition at line 2481 of file videodevice.cpp.

QString Kopete::AV::VideoDevice::signalStandardName ( signal_standard  standard)

Definition at line 2606 of file videodevice.cpp.

QString Kopete::AV::VideoDevice::signalStandardName ( int  standard)

Definition at line 2665 of file videodevice.cpp.

int Kopete::AV::VideoDevice::startCapturing ( )
virtual

Definition at line 1081 of file videodevice.cpp.

int Kopete::AV::VideoDevice::stopCapturing ( )
virtual
Todo:
implement me

Definition at line 1603 of file videodevice.cpp.

QString Kopete::AV::VideoDevice::udi ( ) const

Definition at line 3025 of file videodevice.cpp.

int Kopete::AV::VideoDevice::width ( )

Definition at line 737 of file videodevice.cpp.

int Kopete::AV::VideoDevice::xioctl ( int  request,
void *  arg 
)
protected

Definition at line 277 of file videodevice.cpp.

Member Data Documentation

int Kopete::AV::VideoDevice::currentheight
protected

Definition at line 381 of file videodevice.h.

int Kopete::AV::VideoDevice::currentwidth
protected

Definition at line 381 of file videodevice.h.

int Kopete::AV::VideoDevice::descriptor
protected

Definition at line 367 of file videodevice.h.

QString Kopete::AV::VideoDevice::full_filename
protected

Definition at line 365 of file videodevice.h.

QList<ActionVideoControl> Kopete::AV::VideoDevice::m_actionCtrls
protected

Supported action-controls for the current input

Definition at line 363 of file videodevice.h.

QList<BooleanVideoControl> Kopete::AV::VideoDevice::m_booleanCtrls
protected

Supported boolean controls for the current input

Definition at line 361 of file videodevice.h.

int Kopete::AV::VideoDevice::m_buffer_size
protected

Definition at line 386 of file videodevice.h.

int Kopete::AV::VideoDevice::m_current_input
protected

Definition at line 388 of file videodevice.h.

imagebuffer Kopete::AV::VideoDevice::m_currentbuffer
protected

Definition at line 385 of file videodevice.h.

videodev_driver Kopete::AV::VideoDevice::m_driver
protected

Definition at line 368 of file videodevice.h.

QVector<Kopete::AV::VideoInput> Kopete::AV::VideoDevice::m_input

Definition at line 338 of file videodevice.h.

io_method Kopete::AV::VideoDevice::m_io_method
protected

Definition at line 391 of file videodevice.h.

QList<MenuVideoControl> Kopete::AV::VideoDevice::m_menuCtrls
protected

Supported menu-controls for the current input

Definition at line 362 of file videodevice.h.

QString Kopete::AV::VideoDevice::m_model
protected

Definition at line 369 of file videodevice.h.

QString Kopete::AV::VideoDevice::m_name

Definition at line 337 of file videodevice.h.

QList<NumericVideoControl> Kopete::AV::VideoDevice::m_numericCtrls
protected

Supported muneric controls for the current input

Definition at line 360 of file videodevice.h.

pixel_format Kopete::AV::VideoDevice::m_pixelformat
protected

Definition at line 389 of file videodevice.h.

QVector<rawbuffer> Kopete::AV::VideoDevice::m_rawbuffers
protected

Definition at line 383 of file videodevice.h.

unsigned int Kopete::AV::VideoDevice::m_streambuffers
protected

Definition at line 384 of file videodevice.h.

QString Kopete::AV::VideoDevice::m_udi
protected

Definition at line 366 of file videodevice.h.

bool Kopete::AV::VideoDevice::m_videoasyncio
protected

Definition at line 397 of file videodevice.h.

bool Kopete::AV::VideoDevice::m_videocapture
protected

Definition at line 392 of file videodevice.h.

bool Kopete::AV::VideoDevice::m_videochromakey
protected

Definition at line 393 of file videodevice.h.

bool Kopete::AV::VideoDevice::m_videooverlay
protected

Definition at line 395 of file videodevice.h.

bool Kopete::AV::VideoDevice::m_videoread
protected

Definition at line 396 of file videodevice.h.

bool Kopete::AV::VideoDevice::m_videoscale
protected

Definition at line 394 of file videodevice.h.

bool Kopete::AV::VideoDevice::m_videostream
protected

Definition at line 398 of file videodevice.h.

int Kopete::AV::VideoDevice::maxheight
protected

Definition at line 381 of file videodevice.h.

int Kopete::AV::VideoDevice::maxwidth
protected

Definition at line 381 of file videodevice.h.

int Kopete::AV::VideoDevice::minheight
protected

Definition at line 381 of file videodevice.h.

int Kopete::AV::VideoDevice::minwidth
protected

Definition at line 381 of file videodevice.h.


The documentation for this class was generated from the following files:
  • videodevice.h
  • videodevice.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal