Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394 API documentation

0.2.6

About L1394

L1394 is a high-level object oriented library to controll and access devices connected to a FireWire (aka IEEE-1394) bus under Linux. Main goal of this library is to hide the generic interfaces of the libraw1394 library and to provide simple and uniform interfaces to access and control the different devices.
The following features are realized:

See L1394 Homepage for more information.


Short introduction

The most important object for the application developer is the L1394::Session object. The Session object is responsible to initialize this library and provides an interface to access the different devices as well as automatic memeory management.
Every program using this library needs a single Session object, that can be created using the the static member function SSession::getSession().
The following program shows a little example how to use this library. See here for a step by step introduction
  #include <l1394_session.h>

  using namespace L1394;
  int main(int argc, char*argv[])
  {
    //Start a new Session
    Session* session = SSession::getSession();

    //Search a camera
    Camera* camera = session->findCamera();

   if (camera == 0) {
      cout << "No Camera available" << endl;
     return 0;
   }

    //Now you can use the camera.
    //Test if the camera support zooming.
    if(camera->zoom()->hasFeature())
      //If true set zoom value to the minimum.
      camera->zoom()->setValue(
          camera->zoom()->getMinValue() )
    else
      cout << "Zoom is not supported" << endl;

    //Before you quit the application, delete the Session
    delete session;
  }

Generated on Wed Aug 24 00:36:39 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/