200 static uint32_t GetPixelSize(
PvPixelType aPixelType );
209 static bool IsPixelColor(
PvPixelType aPixelType );
221 static bool IsPixelHighRes(
PvPixelType aPixelType );
233 static uint32_t GetBitsPerComponent(
PvPixelType aPixelType );
289 virtual bool IsAllocated()
const = 0;
290 virtual bool IsAttached()
const = 0;
309 virtual PvResult Alloc( uint32_t aSizeX, uint32_t aSizeY,
PvPixelType aPixelType, uint16_t aPaddingX = 0, uint16_t aPaddingY = 0, uint32_t aMaximumChunkLength = 0 ) = 0;
338 virtual PvResult Attach(
void * aRawBuffer, uint32_t aSizeX, uint32_t aSizeY,
PvPixelType aPixelType, uint16_t aPaddingX = 0, uint16_t aPaddingY = 0, uint32_t aMaximumChunkLength = 0 ) = 0;
PvPixelType
Definition: PvPixelType.h:58
Generic image interface.
Definition: PvImage.h:21
virtual uint8_t * GetDataPointer()=0
Get the image's data pointer.
virtual uint32_t GetOffsetY() const =0
Get the image's vertical offset.
virtual uint32_t GetHeight() const =0
Get the image's height.
virtual const uint8_t * GetDataPointer() const =0
Get the image's data pointer.
virtual uint16_t GetPaddingX() const =0
Get the horizontal image padding.
virtual uint64_t GetBlockID() const =0
Return the block ID.
virtual uint64_t GetTimestamp() const =0
Get the image's timestamp.
virtual uint32_t GetImageSize() const =0
Actual image size within the payload or buffer.
virtual uint32_t GetWidth() const =0
Get the image's width.
virtual PvPixelType GetPixelType() const =0
The buffer's pixel type.
virtual uint32_t GetOffsetX() const =0
Get the image's horizontal offset.
virtual uint16_t GetPaddingY() const =0
Get the vertical image padding.
virtual uint32_t GetBitsPerPixel() const =0
Returns how many bits are required to hold a pixel using the current buffer's pixel type.
virtual uint64_t GetReceptionTime() const =0
Get the buffer's reception timestamp.
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition: PvBuffer.h:97
Image interface to a PvBuffer.
Definition: PvImage.h:183
virtual bool IsInterlacedEven() const =0
The image contained in the PvImage is an interlaced Even field.
virtual bool IsInterlacedOdd() const =0
The image contained in the PvImage is an interlaced Odd field.
virtual bool HasWatermark() const =0
Returns the watermark tag.
virtual bool IsEOFByLineCount() const =0
End of Frame by Line Count status bit.
virtual PvResult Attach(void *aRawBuffer, uint32_t aSizeX, uint32_t aSizeY, PvPixelType aPixelType, uint16_t aPaddingX=0, uint16_t aPaddingY=0, uint32_t aMaximumChunkLength=0)=0
Attach this PvImage to an external memory buffer.
virtual PvResult Alloc(uint32_t aSizeX, uint32_t aSizeY, PvPixelType aPixelType, uint16_t aPaddingX=0, uint16_t aPaddingY=0, uint32_t aMaximumChunkLength=0)=0
Allocates memory for this PvImage.
virtual bool IsImageDropped() const =0
Image dropped status bit.
virtual bool IsDataOverrun() const =0
Data overrun status bit.
virtual bool IsFullLineMissing() const =0
If true, the grabber (on the device) was missing at least one line when the frame was grabbed.
virtual void SetEOFByLineCount(bool aValue=true)=0
Simulates the EOFByLineCount used by Pleora video interfaces.
virtual uint32_t GetEffectiveImageSize() const =0
Effective image size.
virtual uint32_t GetMaximumChunkLength() const =0
Returns the maximum chunk length possible for the currently allocated memory vs image attributes.
virtual void SetOffsetY(uint32_t aValue)=0
Sets the Offset X attribute of the image.
virtual bool IsPartialLineMissing() const =0
If true, the grabber (on the device) was missing at least one pixel in at least one of the lines when...
virtual void ClearEOFStatus()=0
Set the EoFByLineCount and FullLineMissing Status of PvImage to the default value false.
virtual void SetOffsetX(uint32_t aValue)=0
Sets the Offset X attribute of the image.
virtual void SetFullLineMissing(bool aValue, uint32_t aLineNumber)=0
Simulates the FullLineMissing used by Pleora video interfaces.
virtual uint8_t * Detach()=0
Releases an attached memory buffer.
virtual void Free()=0
Frees (de-allocates) the buffer's internal memory.
virtual PvBuffer * GetBuffer()=0
Returns the PvBuffer this PvImage belongs to.
virtual uint32_t GetRequiredSize() const =0
Gets the size of buffer required to hold the acquired image.
Result information.
Definition: PvResult.h:30
String class.
Definition: PvString.h:26
Converts images from TRUESENSE(TM) to RGB.
Definition: PvTruesenseConverter.h:38