Pleora Technologies Inc. eBUS SDK v6.5.1.6797 API



PvDecompressionFilter.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2023, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVDECOMPRESSIONFILTER_H__
8 #define __PVDECOMPRESSIONFILTER_H__
9 
10 #include <IPvFilter.h>
11 
12 
13 namespace PvBufferLib
14 {
15  class DecompressionFilter;
16 }
17 
18 
24 
25 class PV_BUFFER_API PvDecompressionFilter : public IPvFilter
26 {
27 public:
28 
32 
34 
38 
39  virtual ~PvDecompressionFilter();
40 
56  PvResult Execute( const PvBuffer *aIn, PvBuffer *aOut );
57 
69  PvResult SetThreadCount( uint32_t aCount );
70 
76  uint32_t GetThreadCount() const;
77 
87  PvResult GetThreadsPriority( uint32_t &aPriority ) const;
88 
104  PvResult SetThreadsPriority( uint32_t aPriority );
105 
113  static bool IsCompressed( const PvBuffer *aIn );
114 
127  static PvResult GetOutputFormatFor( const PvBuffer *aIn, PvPixelType &aPixelType, uint32_t &aWidth, uint32_t &aHeight );
128 
129 protected:
130 
131 private:
132 
133  // Not implemented
135  const PvDecompressionFilter &operator=( const PvDecompressionFilter & );
136 
137  PvBufferLib::DecompressionFilter *mThis;
138 
139 };
140 
141 
142 #endif // __PVDECOMPRESSIONFILTER_H__
143 
PvPixelType
Definition: PvPixelType.h:58
Definition: IPvFilter.h:19
virtual PvResult Execute(const PvBuffer *aIn, PvBuffer *aOut)=0
Executes the filter: performs processing on aIn, writing into aOut.
virtual uint32_t GetThreadCount() const =0
Gets the maximum number of threads the filter can use.
virtual PvResult SetThreadCount(uint32_t aCount)=0
Sets the thread count to be used by the filter.
virtual PvResult GetThreadsPriority(uint32_t &aPriority) const =0
Gets the thread priority of the filter's worker threads.
virtual PvResult SetThreadsPriority(uint32_t aPriority)=0
Sets the thread priority of the filter's worker threads.
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition: PvBuffer.h:97
Definition: PvDecompressionFilter.h:26
Result information.
Definition: PvResult.h:30

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