Basic Operations
The following list shows basic file operations:
- Opening/reading an XML file
- Writing/closing an XML file
- Reading a data file
- Mapping a data file
- Deleting a data file
- Updating the exceptions, data or config files
Poll, ePoll, and Select methods are applicable to metadata and events files, these XML files are automatically updated when any hardware event occurs. These methods aslo return the values immediately when used on exceptions, data or config files.
The INotify method is applicable to all files. If INotify is applied to data, metadata, events or exceptions files, any hardware event update or process that modifies a file will be signaled through the INotify method.
Command-Line Operations
The following lists the command-line operations:
- Copying an XML configuration file from a hard disk location to the appropriate Picolo U4 H.264 PCI-104 directory for a prepared configuration
- Copying a data file from a Picolo U4 H.264 PCI-104 directory to a hard disk location is an elementary video recorder operation
- Displaying and editing an XML configuration file manually provides direct interaction with the board
Common Operations
Deleting a data buffer
The data buffer can be deleted using one of the following three methods:
- Writing to the relevant metadata.xml file. A MetaData XML element consists of two sub-elements: Index and Dispose. The Index element specifies the index of the buffer to be disposed. Refer to Visual Encoder MetaData File, Visual Formatter MetaData File and Audio Encoder Metadata File for more details
- Deleting the data file
- Deleting the metadata.xml file. All the data buffers having an entry in the metadata.xml will be deleted
These methods are applicable to all types of data buffers: encoded video, formatted video and audio data buffers.
Acknowledging an event
An event is acknowledged by writing to the events.xml file. An event XML element consists of two sub-elements: Index and Acknowledge. The Index element specifies the index of the event to be disposed. Refer to Events File for more details.
Acknowledging an exception
An exception is acknowledged by writing to the exceptions.xml file. An Exception XML element consists of two sub-elements: Index and Acknowledge. The Index element specifies the index of the exception to be disposed. Refer to Exceptions File for more details.