![]() |
Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
|
#include <FilesystemIO.h>
Additional Inherited Members | |
Protected Member Functions inherited from tcIOChannel | |
| void | invalidateCache (tsNewFrameMsg *apMsg) |
| void | invalidateCache () |
| void | Report (const char *fmt,...) |
| This method routes text to stderr. More... | |
| void | ReportError (const char *fmt,...) |
Protected Attributes inherited from tcIOChannel | |
| std::string | m_name |
| SocCamera::teIOChannels | meIOId |
| SocCamera::tcSensorBoard * | mpSensor |
| SocCamera::teBPPMode | meBppMode |
| int64 | mnImgCount |
| std::list< tsNewFrameMsg > | mlUpdates |
| tcMutex | mcMutex |
| tcCondition | mcCond |
| void * | mpMemory |
| tcIOChannelThread | mcThread |
| tsNewFrameMsg | msLastUpdate |
| bool | mbSimRAM |
Static Protected Attributes inherited from tcIOChannel | |
| static uint32 | CAPTURE_START_ADDR = (0x20000000) |
| static uint32 | MEMORY_BLOCK_SIZE = (0x20000000) |
| static bool | CMEM_USED = (true) |
| static bool | MMAP_USED = (true) |
This class is used to control output to a filesystem. It has facilities to change filename, path and other options.
| tcFilesystemIO::tcFilesystemIO | ( | SocCamera::tcSensorBoard * | apSensor | ) |
|
virtual |
|
virtual |
Start a capture with this request. If the requests number of frames is tsNewRequest::CANCEL_CAPTURE then the current capture is stopped if possible.
Stopping this and starting causes the frame index to reset. This
| asRequest | - the request for capture being made. |
Implements tcIOChannel.
| teNackCode tcFilesystemIO::flush | ( | ) |
Sync the system to ensure all writes are flushed to the filesystem.
| uint32 tcFilesystemIO::getCurrentFrameIndex | ( | ) |
Returns the current frame index number.
| std::string tcFilesystemIO::getFilenamePrefix | ( | ) |
Return the filename prefix that is set.
| uint32 tcFilesystemIO::getImagesPerFile | ( | ) |
| std::string tcFilesystemIO::getPath | ( | ) |
Return the path where files are being saved to.
| void tcFilesystemIO::registerWatcher | ( | tcFilesystemIOWatcher * | apWatcher | ) |
Register a callback which is executed when a file is saved and closed.
|
virtual |
|
virtual |
Sets the bits-per-pixel output of the camera.
| aeBppMode | - the bits per pixel mode. |
Implements tcIOChannel.
| teNackCode tcFilesystemIO::setFilenamePrefix | ( | std::string | asName | ) |
The prefix of the files to write. A .bin extension is used.
| asName | - the prefix of the names to use |
| SocCamera::teNackCode tcFilesystemIO::setImagesPerFile | ( | uint32 | anImagesPerFile | ) |
Sets the number of images to store per file. Set to 0 for continuous recording to the same file until stopped.
| anImagesPerFile | - the number of images to save to each file. |
| teNackCode tcFilesystemIO::setPath | ( | std::string | asPath, |
| bool | abCreate = true |
||
| ) |
Set the path to save files to.
| asPath | - the path to store files. |
| void tcFilesystemIO::unregisterWatcher | ( | tcFilesystemIOWatcher * | apWatcher | ) |
Unregister a callback.