#include <l1394_avcvcr.h>
Inheritance diagram for L1394::AvcVcr:
Public Member Functions | |
int | start () |
This method starts the Vcr and the Iso-Receive. | |
virtual int | stop () |
This method stops a Vcr. | |
virtual int | setParameter (const int buffercount=4, const int channel=63, const Isomode isomode=DEVICE_ISO_RUN, const Videomode videomode=DEVICE_DV, const Framerate framerate=DEVICE_FRAMES_DV) |
This method set the parameter of a camera. | |
virtual bool | hasVideoFormat (const Videomode videomode) |
This method tests, if a videomode is supported by a Camera. | |
virtual bool | hasFramerate (const Videomode videomode, const Framerate framerate) |
This method tests, if a framerate, with a videomode is supported by the camera. | |
AvcVcr constructor | |
These functions creates an AvcVcr. | |
AvcVcr (FcpNode *parent_node, const int subunit_value) | |
This method creates a AvcVcr. | |
virtual | ~AvcVcr () |
destructor | |
The standard functions of the vcr interface | |
This functions implements the interface of class Vcr | |
virtual int | play () |
With this method you can access the play feature. | |
virtual int | pause () |
With this method you can access the pause feature. | |
virtual Timecode | getTimeCode () |
With this method you can get the actual timecode. | |
virtual const DeviceRegister * | transportState () |
With this method you can get the actual status of a vcr. | |
virtual const DeviceRegister * | search (const Timecode) |
This method stop the tape at a specific position. | |
virtual const DeviceRegister * | recordingDate (const Timecode) |
With this method you can access the recording date feature. | |
virtual const DeviceRegister * | forward () |
With this method you can access the forward feature. | |
virtual const DeviceRegister * | reverse () |
With this method you can access the reverse feature. | |
virtual const DeviceRegister * | fastForward () |
With this method you can access the fastForward feature. | |
virtual const DeviceRegister * | rewind () |
With this method you can access the rewind feature. | |
virtual const DeviceRegister * | record () |
With this method you can access the record feature. | |
virtual const DeviceRegister * | recordingSpeed (const int speed) |
With this method you can access the recordingSpeed feature. | |
virtual const DeviceRegister * | nextFrame () |
With this method you can access the nextFrame feature. | |
virtual const DeviceRegister * | previousFrame () |
With this method you can access the nextFrame feature. | |
virtual const DeviceRegister * | slowForward () |
With this method you can access the slowForward feature. | |
virtual const DeviceRegister * | slowReverse () |
With this method you can access the slowReverse feature. | |
The extended functions for an AV/C vcr | |
This functions describe the interface of a vcr defined in AV/C Tape Recorder/ Player Subunit Specification. | |
const AvcRegister * | analogAudioOutputMode (const int) |
With this method you can access the analog audio output mode. | |
const AvcRegister * | backward (const int measurement_unit, const int count) |
access backward feature and return a pointer to the AvcRegister | |
const AvcRegister * | forward (const int measurement_unit, const int count) |
access backward feature and return a pointer to the AvcRegister | |
const AvcRegister * | editMode (const int command) |
With this method you can access the analog audio output mode. | |
const AvcRegister * | inputSignalMode (const int command) |
With this method you can access the input signal mode. | |
const AvcRegister * | loadMedium (const int command) |
With this method you can access the load medium feature. | |
const AvcRegister * | marker (const int set) |
With this method you can access the marker mode. | |
Quadlet | mediumInfo () |
With this method you can access the analog audio output mode. | |
const AvcRegister * | openMic (const int command) |
With this method you can access the open Mic feature. | |
const AvcRegister * | outputSignalMode (const int command) |
With this method you can access the output signal mode. | |
const AvcRegister * | record (const int command) |
With this method you can access the record feature. | |
const AvcRegister * | timecode (const int command, const Timecode timecode) |
With this method you can access the timecode feature. | |
const AvcRegister * | writeMic () |
With this method you can access the write mic feature. | |
const AvcRegister * | wind (const int command) |
With this method you can access the wind feature. | |
const AvcRegister * | play (const int value) |
With this method you can access the play feature. | |
const AvcRegister * | search (const int, const Timecode) |
With this method you can access the analog audio output mode. | |
const AvcRegister * | preset (const int reset, const int id, const u_int32_t parameter_value) |
With this method you can access the analog audio output mode for valid values see AV/C Tape Recorder Player Subunit Specification. |
The mechanism to create commands is the same as described in class Vcr.
This class implements two Vcr interfaces. The first interface is described in class Vcr. The second one is an implementation of the controlling mechanism defined in 'AV/C Tape Recorder Player Subunit Specification'. The difference between the two interfaces is the meaning of functions. For example the play() function of the first interface start a vcr. In the second one the play(int value) method means the Play group, where the value specify how to play, like forward, backward, nextFrame and so on. The functions from the first interface are mapped to the functions of the second one.
The example from class Vcr can be changed:
AvcVcr* my_vcr = session->findAvcVcr(); if( my_vcr->fastForward()->hasFeature() ) //should normally be true. { int vcr_response = my_vcr->fastForward()->send(); //normal vcr interface command int avc_vcr_respone = my_vcr->play(0x75)->send(); //avc_vcr interface to start a vcr. switch(response) //for all response codes see method send() in class AvcRegister. { case ACCEPTED : cout << "Starting the Vcr" << endl; break; case REJECTED : cout << "Couldn't start the Vcr" << endl; break; default : cout << "Unhandled case" << endl; break; } }
If you like to use the AV/C vcr interface, you can cast the vcr, or get explicit an AvcVcr from the Session class.
See AV/C tape recorder/player subunit specification and tutorial for more information
Definition at line 66 of file l1394_avcvcr.h.
|
This method creates a AvcVcr.
Definition at line 23 of file l1394_avcvcr.cpp. References L1394::Device::setFrameHeight(), L1394::Device::setFrameWidth(), and L1394::Device::setName(). |
|
destructor
Definition at line 33 of file l1394_avcvcr.cpp. |
|
With this method you can access the analog audio output mode.
Definition at line 70 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(). |
|
access backward feature and return a pointer to the AvcRegister
Definition at line 152 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the analog audio output mode.
Definition at line 302 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the fastForward feature.
Implements L1394::Vcr. Definition at line 205 of file l1394_avcvcr.h. References wind(). |
|
access backward feature and return a pointer to the AvcRegister
Definition at line 158 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the forward feature.
Implements L1394::Vcr. Definition at line 193 of file l1394_avcvcr.h. References play(). |
|
With this method you can get the actual timecode.
Implements L1394::Vcr. Definition at line 136 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(), L1394::Quadlet::getByte(), L1394::AvcRegister::getData(), L1394::FcpNode::send(), L1394::Timecode::setFrame(), L1394::Timecode::setHour(), L1394::Timecode::setMinute(), L1394::Timecode::setSecond(), and STATUS. |
|
This method tests, if a framerate, with a videomode is supported by the camera.
Implements L1394::Device. Definition at line 197 of file l1394_avcvcr.cpp. References L1394::DEVICE_DV, and L1394::DEVICE_FRAMES_DV. |
|
This method tests, if a videomode is supported by a Camera.
Implements L1394::Device. Definition at line 134 of file l1394_avcvcr.h. References L1394::DEVICE_DV. |
|
With this method you can access the input signal mode.
Definition at line 312 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the load medium feature.
Definition at line 324 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the marker mode.
Definition at line 333 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(), and L1394::AvcRegister::getData(). |
|
With this method you can access the analog audio output mode.
Definition at line 169 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(), L1394::AvcRegister::getData(), and L1394::FcpNode::send(). |
|
With this method you can access the nextFrame feature. If you execute the command, the vcr increase one frame, from actual position.
Implements L1394::Vcr. Definition at line 233 of file l1394_avcvcr.h. References play(). |
|
With this method you can access the open Mic feature.
Definition at line 351 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the output signal mode.
Definition at line 361 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the pause feature.
Implements L1394::Vcr. Definition at line 162 of file l1394_avcvcr.h. References play(). |
|
With this method you can access the play feature.
Definition at line 410 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the play feature.
Implements L1394::Vcr. Definition at line 155 of file l1394_avcvcr.h. Referenced by forward(), nextFrame(), pause(), previousFrame(), reverse(), slowForward(), slowReverse(), and start(). |
|
With this method you can access the analog audio output mode for valid values see AV/C Tape Recorder Player Subunit Specification.
Definition at line 163 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the nextFrame feature. If you execute the command, the vcr decrease one frame, from actual position.
Implements L1394::Vcr. Definition at line 242 of file l1394_avcvcr.h. References play(). |
|
With this method you can access the record feature.
Definition at line 371 of file l1394_avcvcr.h. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the record feature.
Implements L1394::Vcr. Definition at line 217 of file l1394_avcvcr.h. |
|
With this method you can access the recording date feature.
Definition at line 76 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(), and L1394::AvcRegister::getData(). |
|
With this method you can access the recordingSpeed feature.
Implements L1394::Vcr. Definition at line 130 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(). |
|
With this method you can access the reverse feature.
Implements L1394::Vcr. Definition at line 199 of file l1394_avcvcr.h. References play(). |
|
With this method you can access the rewind feature.
Implements L1394::Vcr. Definition at line 211 of file l1394_avcvcr.h. References wind(). |
|
With this method you can access the analog audio output mode.
Definition at line 115 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(), L1394::Timecode::frame(), L1394::AvcRegister::getData(), L1394::Timecode::hour(), L1394::Timecode::minute(), and L1394::Timecode::second(). |
|
This method stop the tape at a specific position.
Implements L1394::Vcr. Definition at line 180 of file l1394_avcvcr.h. |
|
This method set the parameter of a camera. An AV/C camera normally broadcasts the video data on channel 63. They has a fixed framerate and video format. So the parameters isomode, video_mode and framerate are ignored. A short sample show an example to init an AvcCamera. Session *session = Session::getSession(); AvcVcr *vcr = session->findAvcCVcr(); vcr->setParameter() //set the default parameter (channel = 63, buffers = 4) if (camera->init() == L1394_SUCCESS) camera->start(); else cout << "Camera init failed" << endl;
Implements L1394::Device. Definition at line 176 of file l1394_avcvcr.cpp. References L1394::DEVICE_DV, L1394::DEVICE_FRAMES_DV, L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394::Device::getParentNode(), and L1394_FAILED. |
|
With this method you can access the slowForward feature.
Implements L1394::Vcr. Definition at line 248 of file l1394_avcvcr.h. References play(). |
|
With this method you can access the slowReverse feature.
Implements L1394::Vcr. Definition at line 254 of file l1394_avcvcr.h. References play(). |
|
This method starts the Vcr and the Iso-Receive.
Implements L1394::Device. Definition at line 38 of file l1394_avcvcr.cpp. References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394::Device::getParentNode(), L1394_FAILED, L1394_SUCCESS, play(), and L1394::Device::setSending(). |
|
This method stops a Vcr.
Implements L1394::Device. Definition at line 52 of file l1394_avcvcr.cpp. References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394::Device::getParentNode(), L1394::Device::isSending(), L1394_FAILED, L1394_SUCCESS, and wind(). |
|
With this method you can access the timecode feature.
Definition at line 86 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(), L1394::Timecode::frame(), L1394::AvcRegister::getData(), L1394::Timecode::hour(), L1394::Timecode::minute(), and L1394::Timecode::second(). |
|
With this method you can get the actual status of a vcr.
Implements L1394::Vcr. Definition at line 125 of file l1394_avcvcr.cpp. |
|
With this method you can access the wind feature.
Definition at line 109 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(). Referenced by fastForward(), rewind(), and stop(). |
|
With this method you can access the write mic feature.
Definition at line 104 of file l1394_avcvcr.cpp. References L1394::AvcRegister::defaultSet(). |