Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CVideoDeviceInput Class Reference

#include <VideoDeviceInput.h>

List of all members.

Public Types

Signals

Public Member Functions

Public Attributes


Detailed Description

Every video device has one or more inputs (called channels in the Video4Linux API). Each input refers to one of the physical inputs on the card/chip, like Tuner, Composite, S-video, etc. This class represents such an input.

In addition, each input can have 0 or more tuners attached to it (to keep matters simple...). A tuner does the actual frequency and norm setting, and is represented by a CVideoDeviceTuner class.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
Unknown 
TV 
Camera 


Constructor & Destructor Documentation

CVideoDeviceInput::CVideoDeviceInput CVideoDeviceLinux video,
int  channel
 

Constructor.

In the constructor the channel information is queried and stored. It will also create any Tuner objects that may be needed.


Member Function Documentation

int CVideoDeviceInput::GetCurrentTuner  )  const
 

Return current tuner number.

Returns:
Tuner number, or -1 if the current tuner is unknown
Since there is no way to query the current selected tuner from the device, this function returns -1 until a tuner has been selected.

QString CVideoDeviceInput::GetName  )  const
 

Return symbolic name for input.

int CVideoDeviceInput::GetNumber  )  const
 

Return channel number.

int CVideoDeviceInput::GetNumberOfTuners  )  const
 

Return number of tuners.

Most inputs don't have a tuner, or at most 1. Multiple tuners could be used for multi-norm cards (each norm having a separate tuner), but this hasn't happened sofar.

CVideoDeviceTuner * CVideoDeviceInput::GetTuner int  number = -1  )  const
 

Get a Tuner object.

Parameters:
number The desired input (0 to GetTuners() - 1); -1 for default (current) one
Returns:
A pointer to a CVideoDeviceTuner object
This function will return 0 if the current tuner is unknown or number is out of range.

int CVideoDeviceInput::GetType  )  const
 

Return type for this input.

Returns a value from the InputTypes enum, either TV or Camera

bool CVideoDeviceInput::HasAudio  )  const
 

Returns whether this input has audio settings associated with it.

bool CVideoDeviceInput::Select  ) 
 

Make this input the current one.

void CVideoDeviceInput::Selected int   )  [signal]
 


Member Data Documentation

enum { ... } CVideoDeviceInput::InputTypes
 


The documentation for this class was generated from the following files:
Generated on Wed Dec 13 23:38:47 2006 for CamStream by doxygen 1.3.7