#include <l1394_device.h>
Inheritance diagram for L1394::Device:
Public Member Functions | |
Device constructor | |
These functions creates the Device objects. | |
Device (Node *parent_node) | |
virtual | ~Device () |
Event handling | |
These methods provide access to the event handling mechanism in this library. | |
virtual void | addEventHandle (L1394::EventHandle *, const EVENT event) |
virtual void | addEventHandle (L1394::EventHandle *) |
This method adds an EventHandle, to all events of a node. | |
virtual void | removeEventHandle (L1394::EventHandle *, const EVENT event) |
virtual void | removeEventHandle (L1394::EventHandle *handle) |
This method removes an EventHandle from any event. | |
Device information | |
These methods provide specific device information. | |
void | setName (const string &name) |
const string & | getName () const |
virtual u_int | getFrameSize () const |
This method returns the frame size. | |
virtual u_int | getFrameWidth () const |
This method returns the frame size. (obsolete). | |
virtual u_int | getFrameHeight () const |
This method returns the width of a frame. | |
virtual const Node * | getParentNode () const |
This method returns the parent node. | |
virtual DeviceType | getDeviceType () const =0 |
This abstract method must be implemented by all devices. | |
virtual bool | hasVideoFormat (const Videomode videomode)=0 |
This method tests, if a videomode is supported by a Camera. | |
virtual bool | hasFramerate (const Videomode videomode, const Framerate framerate)=0 |
This method tests, if a framerate, with a videomode is supported by the camera. | |
Basic operations | |
Every device must implement these basic functions. | |
virtual Frame * | getFrame () |
This method returns the actual frame of a camera. | |
virtual void | releaseFrame (Frame *frame) |
This method releases a frame. | |
virtual void | setFrameMode (const bool frame_mode) |
This method enables or disables the autorelease mode for frames. | |
virtual bool | getFrameMode () const |
This method returns the framemode. | |
virtual int | setParameter (const int buffercount, const int channel, const Isomode isomode, const Videomode videomode, const Framerate framerate)=0 |
This method sets the device-specific parameter for iso-receive. | |
virtual void | flushIsoQueue () |
virtual bool | isSending () const |
This method reports if a camera is sending or not. | |
virtual int | init () |
This method allocates ressoures for isochronous transmission. | |
virtual int | start ()=0 |
This method starts a FireWire device and iso-receive. | |
virtual int | stop ()=0 |
This method stops a sending device and the Iso-receive. | |
Protected Member Functions | |
void | setFrameSize (const int frame_size) |
void | setFrameWidth (const int frame_width) |
void | setFrameHeight (const int frame_height) |
void | setSending (const bool is_sending) |
|
Definition at line 21 of file l1394_device.cpp. |
|
Destructor Definition at line 117 of file l1394_device.h. |
|
This method adds an EventHandle, to all events of a node.
Definition at line 31 of file l1394_device.cpp. |
|
Definition at line 26 of file l1394_device.cpp. |
|
Definition at line 65 of file l1394_device.cpp. |
|
This abstract method must be implemented by all devices. This method is normaly for internal use. You can use it for save down_casting. The following types are defined: return int : type of the device. Implemented in L1394::Camera, and L1394::Vcr. Referenced by L1394::FcpNode::findSubunit(). |
|
This method returns the actual frame of a camera. At this time this method blocks until it gets a frame.
Reimplemented in L1394::DccCamera. Definition at line 46 of file l1394_device.cpp. References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(). |
|
This method returns the width of a frame. Devices supporting more than one resolution provides normaly an init method. Before you call init, this method returns the default setting of the device.
Definition at line 197 of file l1394_device.h. |
|
This method returns the framemode.
Definition at line 78 of file l1394_device.cpp. References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(). |
|
This method returns the frame size.
Definition at line 174 of file l1394_device.h. Referenced by L1394::DccCamera::init(). |
|
This method returns the frame size. (obsolete). Devices supporting more than one resolution, provides normaly an init method. Before you call init, this method returns the default settings of the device.
Definition at line 186 of file l1394_device.h. |
|
returns the device name Definition at line 168 of file l1394_device.h. |
|
This method returns the parent node.
Definition at line 205 of file l1394_device.h. Referenced by L1394::AvcVcr::setParameter(), L1394::AvcCamera::setParameter(), L1394::AvcVcr::start(), L1394::AvcCamera::start(), L1394::AvcVcr::stop(), and L1394::AvcCamera::stop(). |
|
This method tests, if a framerate, with a videomode is supported by the camera.
Implemented in L1394::AvcCamera, L1394::AvcVcr, and L1394::DccCamera. Referenced by main(). |
|
This method tests, if a videomode is supported by a Camera.
Implemented in L1394::AvcCamera, L1394::AvcVcr, and L1394::DccCamera. |
|
This method allocates ressoures for isochronous transmission. If you write your own device you can use this method to allocate iso- resources.
Reimplemented in L1394::DccCamera. Definition at line 313 of file l1394_device.h. References L1394_SUCCESS. Referenced by main(). |
|
This method reports if a camera is sending or not.
Definition at line 303 of file l1394_device.h. Referenced by L1394::DccCamera::getFrame(), L1394::AvcCamera::start(), and L1394::AvcVcr::stop(). |
|
This method releases a frame. You must only call this function, if the autorelease mode is disabled. See also frameMode() param frame : pointer to the frame. Definition at line 57 of file l1394_device.cpp. References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(). |
|
This method removes an EventHandle from any event. If an EventHandle object is destroyed it must be removed from all Node objects
Definition at line 36 of file l1394_device.cpp. |
|
Definition at line 41 of file l1394_device.cpp. Referenced by L1394_MM::Window::~Window(). |
|
Definition at line 333 of file l1394_device.h. Referenced by L1394::AvcCamera::AvcCamera(), L1394::AvcVcr::AvcVcr(), L1394::DccCamera::DccCamera(), and L1394::DccCamera::setVideoMode(). |
|
This method enables or disables the autorelease mode for frames. By default the autorelease mode is enabled. So if you call the function getFrame() the last frame is released and the actual frame is returned You can disable the automode but you MUST call the method releaseFrame(u_char*) for every frame you get.
Definition at line 70 of file l1394_device.cpp. References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(). |
|
Definition at line 331 of file l1394_device.h. Referenced by L1394::DccCamera::DccCamera(), and L1394::DccCamera::setVideoMode(). |
|
Definition at line 332 of file l1394_device.h. Referenced by L1394::AvcCamera::AvcCamera(), L1394::AvcVcr::AvcVcr(), L1394::DccCamera::DccCamera(), and L1394::DccCamera::setVideoMode(). |
|
assign a name with this device Definition at line 164 of file l1394_device.h. Referenced by L1394::AvcCamera::AvcCamera(), L1394::AvcVcr::AvcVcr(), and L1394::DccCamera::DccCamera(). |
|
This method sets the device-specific parameter for iso-receive. Some parameter are fixed for some devices (like DV-devices) and they take no effect, if you change it.
Implemented in L1394::AvcCamera, L1394::AvcVcr, and L1394::DccCamera. Referenced by main(). |
|
Definition at line 334 of file l1394_device.h. Referenced by L1394::DccCamera::start(), L1394::AvcVcr::start(), L1394::AvcCamera::start(), L1394::DccCamera::stop(), and L1394::AvcCamera::stop(). |
|
This method starts a FireWire device and iso-receive.
Implemented in L1394::AvcCamera, L1394::AvcVcr, and L1394::DccCamera. Referenced by main(). |
|
This method stops a sending device and the Iso-receive.
Implemented in L1394::AvcCamera, L1394::AvcVcr, and L1394::DccCamera. Referenced by main(). |