7#include "../../_cexports/c_dc_avi.h"
9#include "../../global.hpp"
10#include "../../string.hpp"
12#include "../_decl/decl_indexed_stream.hpp"
14#include "../../_decl/decl_device.hpp"
26 class VideoDevice :
public Device
29 friend Cvb::Driver::VideoImage;
33 VideoDevice(HandleGuard<Device> &&guard,
const String &fileName)
70 explicit VideoStream(
const DevicePtr &device);
74 return MakeSnapshotImage();
81 return Driver::BufferImage::Create(
Parent(), *layout_,
static_cast<double>(ImageIndex() * frameTime.count()));
84 int ImageCount()
const noexcept override
89 int ImageIndex()
const override;
91 void SetImageIndex(
int index)
override;
101 switch (playbackmode)
26 class VideoDevice :
public Device {
…};
A stream with a finite number of images, which can also be accessed via an index.
Definition decl_indexed_stream.hpp:20
DevicePtr Parent() const noexcept
Gets the parent device of this stream.
Definition stream_base.hpp:42
A device representing a video stream from the hard disk.
Definition decl_video_device.hpp:27
Cvb::Driver::PlaybackMode PlaybackMode() const noexcept
Gets how images are delivered by the stream.
Definition detail_video_device.hpp:20
void SetPlaybackMode(Cvb::Driver::PlaybackMode playbackMode)
Sets how images are delivered by the stream.
Definition detail_video_device.hpp:42
Namespace for driver or device related operations.
Definition decl_composite.hpp:28
PlaybackMode
Defines how frames are acquired by this video device.
Definition driver.hpp:421
@ FrameByFrame
The Stream::Wait() method always returns the next image in the video stream.
Definition driver.hpp:423
@ Stream
Definition driver.hpp:430
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
AcquisitionInterface
Known acquisition CVB interfaces.
Definition driver.hpp:435
@ Grab2
Ring buffer / queue based acquisition.
Definition driver.hpp:439
@ Grabber
Basic grabber interface for single image acquisition.
Definition driver.hpp:437
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
T dynamic_pointer_cast(T... args)