#include <PvDecompressionFilter.h>
Public Member Functions | |
| PvDecompressionFilter () | |
| Constructor. | |
| virtual | ~PvDecompressionFilter () |
| Destructor. | |
| PvResult | Execute (const PvBuffer *aIn, PvBuffer *aOut) |
| Decompresses aIn into aOut. More... | |
| PvResult | SetThreadCount (uint32_t aCount) |
| Sets the maximum of threads to use for decompression. More... | |
| uint32_t | GetThreadCount () const |
| Returns how many threads are used for decompression. More... | |
| PvResult | GetThreadsPriority (uint32_t &aPriority) const |
| Gets the thread priority of the filter's worker threads. More... | |
| PvResult | SetThreadsPriority (uint32_t aPriority) |
| Sets the thread priority of the filter's worker threads. More... | |
Public Member Functions inherited from IPvFilter | |
| IPvFilter () | |
| Constructor. | |
| virtual | ~IPvFilter () |
| Destructor. | |
Static Public Member Functions | |
| static bool | IsCompressed (const PvBuffer *aIn) |
| Returns true if the buffer can be decompressed using an object of this class. More... | |
| static PvResult | GetOutputFormatFor (const PvBuffer *aIn, PvPixelType &aPixelType, uint32_t &aWidth, uint32_t &aHeight) |
| Returns the output format for a compressed buffer. More... | |
Filter used for image decompression.
Decompresses aIn into aOut.
If aOut is not an image or does not match the required output pixel type, width or height it is automatically re-allocated to match the output requirements.
| aIn | [in] Input buffer. |
| aOut | [in] Output buffer. |
Implements IPvFilter.
|
static |
Returns the output format for a compressed buffer.
| aIn | [in] Buffer to inspect. |
| aPixelType | [out] Pixel type the buffer is uncompressed to. |
| aWidth | [out] Width of the uncompressed buffer, in pixels. |
| aHeight | [out] Height of the uncompressed buffer, in pixels. |
|
virtual |
Returns how many threads are used for decompression.
Implements IPvFilter.
|
virtual |
Gets the thread priority of the filter's worker threads.
| aPriority | [out] Output reference to the worker threads priority. |
Implements IPvFilter.
|
static |
Returns true if the buffer can be decompressed using an object of this class.
| aIn | [in] Buffer to inspect. |
|
virtual |
Sets the maximum of threads to use for decompression.
| aCount | [in] How many threads to use for decompression. Min: 1, Max: 64. |
Implements IPvFilter.
|
virtual |
Sets the thread priority of the filter's worker threads.
The default is 3 - THREAD_PRIORITY_NORMAL, see PvPipeline::SetBufferHandlingThreadPriority(). We only allow setting priority for the threads of one converter object as a group. By default one worker thread is created for half of the total number of logical CPUs of the system.
If you change the thread priorities, it may alterate the stability of the system. For this reason, if you report a bug to Pleora, ensure to clearly mention that you change threads priorities.
Implements IPvFilter.
Copyright (c) 2002-2024 Pleora Technologies Inc.
www.pleora.com