• 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 40 of file videodevice.cpp.

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

Definition at line 48 of file videodevice.cpp.

Member Function Documentation

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

Definition at line 3011 of file videodevice.cpp.

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

Definition at line 2986 of file videodevice.cpp.

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

Definition at line 2991 of file videodevice.cpp.

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

Definition at line 3001 of file videodevice.cpp.

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

Definition at line 3006 of file videodevice.cpp.

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

Definition at line 2996 of file videodevice.cpp.

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

Definition at line 3016 of file videodevice.cpp.

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

Definition at line 370 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 1658 of file videodevice.cpp.

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

Definition at line 1020 of file videodevice.cpp.

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

Definition at line 2403 of file videodevice.cpp.

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

this must be done once for each input.

Definition at line 2753 of file videodevice.cpp.

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

Definition at line 294 of file videodevice.cpp.

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

Definition at line 314 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 1737 of file videodevice.cpp.

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

Definition at line 1151 of file videodevice.cpp.

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

Definition at line 1272 of file videodevice.cpp.

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

Definition at line 1289 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 1723 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 1703 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 1713 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 1693 of file videodevice.cpp.

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

Definition at line 753 of file videodevice.cpp.

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

Definition at line 643 of file videodevice.cpp.

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

Definition at line 2856 of file videodevice.cpp.

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

Definition at line 2822 of file videodevice.cpp.

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

Definition at line 2934 of file videodevice.cpp.

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

Definition at line 732 of file videodevice.cpp.

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

Definition at line 359 of file videodevice.cpp.

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

Definition at line 763 of file videodevice.cpp.

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

Definition at line 748 of file videodevice.cpp.

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

Definition at line 758 of file videodevice.cpp.

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

Definition at line 743 of file videodevice.cpp.

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

Definition at line 322 of file videodevice.cpp.

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

Definition at line 2114 of file videodevice.cpp.

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

Definition at line 2223 of file videodevice.cpp.

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

Definition at line 2032 of file videodevice.cpp.

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

Definition at line 2270 of file videodevice.cpp.

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

Definition at line 2320 of file videodevice.cpp.

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

Definition at line 1033 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 1879 of file videodevice.cpp.

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

Definition at line 304 of file videodevice.cpp.

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

Definition at line 941 of file videodevice.cpp.

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

Definition at line 768 of file videodevice.cpp.

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

Definition at line 3021 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 60 of file videodevice.cpp.

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

Definition at line 569 of file videodevice.cpp.

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

Definition at line 2482 of file videodevice.cpp.

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

Definition at line 2607 of file videodevice.cpp.

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

Definition at line 2666 of file videodevice.cpp.

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

Definition at line 1082 of file videodevice.cpp.

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

Definition at line 1604 of file videodevice.cpp.

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

Definition at line 3026 of file videodevice.cpp.

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

Definition at line 738 of file videodevice.cpp.

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

Definition at line 278 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 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