7#ifndef __PVSTREAMINGCHANNELSOURCEDEFAULT_H__
8#define __PVSTREAMINGCHANNELSOURCEDEFAULT_H__
10#include <PvSoftDeviceGEVInterfaces.h>
11#include <PvSoftDeviceGEVLib.h>
105 virtual void GetWidthInfo( uint32_t &aMin, uint32_t &aMax, uint32_t &aInc )
const;
118 virtual void GetHeightInfo( uint32_t &aMin, uint32_t &aMax, uint32_t &aInc )
const;
637 size_t mBufferAllocated;
639 uint32_t mStaticWidth;
640 uint32_t mStaticHeight;
PvPayloadType
GVSP payload type.
Definition PvPayloadType.h:20
PvPixelType
Definition PvPixelType.h:51
@ PvPixelMono8
Pixel type is Mono8.
Definition PvPixelType.h:55
GenApi factory used to add custom GenApi parameters to a software-based GigE Vision Device GenICam XM...
Definition PvVirtualDeviceGEVInterfaces.h:2025
Class used for register creation.
Definition PvVirtualDeviceGEVInterfaces.h:1836
Register map interface for a software-based GigE Vision Device.
Definition PvVirtualDeviceGEVInterfaces.h:1910
Definition PvSoftDeviceGEVInterfaces.h:66
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition PvBuffer.h:111
Result information.
Definition PvResult.h:30
A default implementation for the IPvStreamingSourceChannelSource interface.
Definition PvStreamingChannelSourceDefault.h:31
virtual uint32_t GetOffsetX() const
Returns the current image offset X.
virtual void AbortQueuedBuffers()
Request by the PvSoftDeviceGEV to abort all buffers queued for acquisition.
virtual void OnStreamingStart()
Notification that the GigE Vision controller has requested that the device start streaming on this ch...
virtual void SetMultiPartAllowed(bool aAllowed)
Sets whether the streaming source is allowed or not, but not forced, to transmit multi-part data.
virtual void SetLargeLeaderTrailerEnabled(bool aEnabled, uint32_t aMaxMultiPartCount)
Sets whether the streaming source which transmit multi-part data uses large data leader and trailer p...
virtual PvResult SetOffsetY(uint32_t aOffsetY)
Request from the PvSoftDeviceGEV to change the image offset Y.
virtual PvResult GetSupportedChunk(int aIndex, uint32_t &aID, PvString &aName) const
Returns the indexed supported chunk type. Used at PvSoftDeviceGEV::Start time to create the GenICam X...
virtual void OnClose()
Notification from the PvSoftDeviceGEV that this streaming channel has been closed.
virtual bool IsPayloadTypeSupported(PvPayloadType aPayloadType)
When called, the streaming source has to return whether the specificed payload type is supported or n...
virtual PvBuffer * AllocBuffer()
Request by the PvSoftDeviceGEV to allocate a PvBuffer.
virtual void FreeBuffer(PvBuffer *aBuffer)
Request by the PvSoftDeviceGEV to free or release a buffer allocated with AllocBuffer.
virtual PvResult SetPixelType(PvPixelType aPixelType)
Request from the PvSoftDeviceGEV to change the image pixel type.
virtual void CreateRegisters(IPvRegisterMap *aRegisterMap, IPvRegisterFactory *aFactory)
When called, the streaming channel source should create its custom registers if they are needed.
virtual PvResult SetWidth(uint32_t aWidth)
Request from the PvSoftDeviceGEV to change the image width.
virtual void OnOpen(const PvString &aDestIP, uint16_t aDestPort)
Notification from the PvSoftDeviceGEV that this streaming channel has been opened.
virtual uint32_t GetChunksSize() const
Gets the stream channel chunk size attributes.
PvStreamingChannelSourceDefault(uint32_t aWidth=640, uint32_t aHeight=480, PvPixelType aPixelType=PvPixelMono8, size_t aBufferCount=16)
Default constructor.
virtual PvResult SetChunkModeActive(bool aEnabled)
Set the master chunk mode active state.
virtual PvPixelType GetPixelType() const
Returns the current pixel type.
virtual void GetHeightInfo(uint32_t &aMin, uint32_t &aMax, uint32_t &aInc) const
Returns the stream channel height attributes.
virtual PvScanType GetScanType() const
Returns the scan type that is used by the streaming source.
virtual void GetWidthInfo(uint32_t &aMin, uint32_t &aMax, uint32_t &aInc) const
Returns the stream channel width attributes.
virtual void CreateGenApiFeatures(IPvRegisterMap *aRegisterMap, IPvGenApiFactory *aFactory)
When called, the streaming channel source should create its custom GenApi parameters if they are need...
virtual PvResult GetTxNumBuffersToUse(uint32_t &aNumBuffer)
This method is requested by PvSoftDeviceGEV to limit the number of buffers used by the transmitter....
virtual ~PvStreamingChannelSourceDefault()
Destructor.
virtual uint32_t GetHeight() const
Returns the current image height.
virtual PvResult SetHeight(uint32_t aHeight)
Request from the PvSoftDeviceGEV to change the image height.
virtual bool GetChunkEnable(uint32_t aChunkID) const
Returns the current chunk enabled state.
virtual uint32_t GetPayloadSize() const
Stream channel payload size in bytes. Return zero to have it inferred from width, height and pixel fo...
virtual PvResult GetSupportedPixelType(int aIndex, PvPixelType &aPixelType) const
Obtains an index of supported pixel types. Used at PvSoftDeviceGEV::Start time to create the GenICam ...
virtual PvResult SetOffsetX(uint32_t aOffsetX)
Request from the PvSoftDeviceGEV to change the image offset X.
virtual PvResult SetChunkEnable(uint32_t aChunkID, bool aEnabled)
Sets the chunk enabled state for a specific chunk type.
virtual void OnStreamingStop()
Notification that the GigE Vision controller has requested that the device stop streaming on this cha...
virtual uint32_t GetWidth() const
Returns the current image width.
virtual bool GetChunkModeActive() const
Indicates whether the current master chunk mode is active.
virtual PvResult SetTestPayloadFormatMode(PvPayloadType aPayloadType)
When called, the streaming source has to ensure it can stream buffers of the specified payload type.
virtual uint32_t GetOffsetY() const
Returns the current image offset Y.
String class.
Definition PvString.h:26