Pleora Technologies Inc. eBUS SDK v6.5.1.6797 API



PvTapFilter.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2015, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVTAPFILTER_H__
8 #define __PVTAPFILTER_H__
9 
10 #include <IPvFilter.h>
11 #include <PvTapGeometry.h>
12 
13 
14 class TapFilter;
15 
21 class PV_BUFFER_API PvTapFilter : public IPvFilter
22 {
23 public:
24 
28  PvTapFilter();
29 
33  virtual ~PvTapFilter();
34 
51  PvResult Execute( const PvBuffer *aIn, PvBuffer *aOut );
52 
62  PvResult SetThreadCount( uint32_t aCount );
63 
69  uint32_t GetThreadCount() const;
70 
71  PvResult GetThreadsPriority( uint32_t &aPriority ) const;
72  PvResult SetThreadsPriority( uint32_t aPriority );
73 
82  PvResult SetGeometry( PvTapGeometryEnum aValue );
83 
89  PvTapGeometryEnum GetGeometry() const;
90 
99  static uint32_t GetSupportedGeometryCount();
100 
111  static PvTapGeometryEnum GetSupportedGeometryValue( uint32_t aIndex );
112 
123  static const PvString &GetSupportedGeometryName( uint32_t aIndex );
124 
141  static PvPixelType GetOutputPixelTypeFor( const PvBuffer *aBuffer );
142 
150  static uint32_t GetTapCountFor( PvTapGeometryEnum aValue );
151 
159  static uint32_t GetTapCountFor( const PvString &aValue );
160 
161 protected:
162 
163 private:
164 
165  // Not implemented
166  PvTapFilter( const PvTapFilter & );
167  const PvTapFilter &operator=( const PvTapFilter & );
168 
169  TapFilter * mThis;
170 
171 };
172 
173 #endif
PvResult
Result information.
Definition: PvResult.h:29
IPvFilter::GetThreadCount
virtual uint32_t GetThreadCount() const =0
Gets the maximum number of threads the filter can use.
IPvFilter::GetThreadsPriority
virtual PvResult GetThreadsPriority(uint32_t &aPriority) const =0
Gets the thread priority of the filter's worker threads.
IPvFilter::SetThreadsPriority
virtual PvResult SetThreadsPriority(uint32_t aPriority)=0
Sets the thread priority of the filter's worker threads.
PvString
String class.
Definition: PvString.h:25
PvTapGeometryEnum
PvTapGeometryEnum
Tap geoemtry enumeration type.
Definition: PvTapGeometry.h:116
IPvFilter::Execute
virtual PvResult Execute(const PvBuffer *aIn, PvBuffer *aOut)=0
Executes the filter: performs processing on aIn, writing into aOut.
PvTapGeometry.h
Tap geometry types definition.
IPvFilter
Definition: IPvFilter.h:18
PvTapFilter
Definition: PvTapFilter.h:21
PvPixelType
PvPixelType
Definition: PvPixelType.h:57
PvBuffer
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition: PvBuffer.h:95
IPvFilter::SetThreadCount
virtual PvResult SetThreadCount(uint32_t aCount)=0
Sets the thread count to be used by the filter.

Copyright (c) 2002-2024 Pleora Technologies Inc.
www.pleora.com