7#include "../../_cexports/c_dc_emu.h"
9#include "../../global.hpp"
10#include "../../string.hpp"
12#include "decl_indexed_stream.hpp"
14#include "../../_decl/decl_device.hpp"
26 class EmuDevice :
public Device
29 EmuDevice(HandleGuard<Device> &&guard,
const String &fileName)
47 template <
class Rep,
class Period>
58 digitalIO->WriteOutputGroup(CExports::Emu::DelayGroup,
76 explicit EmuStream(
const DevicePtr &device);
80 return MakeSnapshotImage();
85 int ImageCount() const noexcept
override
90 int ImageIndex()
const override;
92 void SetImageIndex(
int index)
override;
95 std::unique_ptr<Driver::BufferImage::ImageLayout> layout_;
26 class EmuDevice :
public Device {
…};
DigitalIOPtr DigitalIO() const
Gets the DigitalIO interface if present.
Definition detail_device.hpp:167
A device representing an image stream based on single image files.
Definition decl_emu_device.hpp:27
std::chrono::milliseconds FrameTime() const
Gets the time when frame is valid.
Definition detail_emu_device.hpp:20
void SetFrameTime(const std::chrono::duration< Rep, Period > &frameTime)
Sets the time one frame is valid.
Definition decl_emu_device.hpp:48
A stream with a finite number of images, which can also be accessed via an index.
Definition decl_indexed_stream.hpp:20
T duration_cast(T... args)
Namespace for driver or device related operations.
Definition decl_composite.hpp:28
std::shared_ptr< StreamImage > StreamImagePtr
Convenience shared pointer for StreamImage.
Definition driver.hpp:93
@ String
String value.
Definition driver.hpp:366
std::shared_ptr< DeviceImage > DeviceImagePtr
Convenience shared pointer for DeviceImage.
Definition driver.hpp:61
std::shared_ptr< StreamBase > StreamBasePtr
Convenience shared pointer for StreamBase.
Definition driver.hpp:113
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::shared_ptr< Device > DevicePtr
Convenience shared pointer for Device.
Definition global.hpp:98
DeviceUpdateMode
Defines how to treat the optional device image, when the device itself is updated.
Definition global.hpp:252