File ChunkAdapterDcam.h¶
File List > include > SpinGenApi > ChunkAdapterDcam.h
Go to the documentation of this file
//=============================================================================
// Copyright (c) 2026 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of FLIR
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use it only in
// accordance with the terms of the license agreement you entered into
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
//
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
// THIS SOFTWARE OR ITS DERIVATIVES.
//=============================================================================
#ifndef SPINNAKER_GENAPI_CHUNKADAPTERDCAM_H
#define SPINNAKER_GENAPI_CHUNKADAPTERDCAM_H
#include "GCTypes.h"
#include "ChunkAdapter.h"
#include "Compatibility.h"
namespace Spinnaker
{
namespace GenApi
{
void SPINNAKER_API SET_GUID(
SPIN_GUID& name,
uint32_t l,
uint16_t w1,
uint16_t w2,
uint8_t b1,
uint8_t b2,
uint8_t b3,
uint8_t b4,
uint8_t b5,
uint8_t b6,
uint8_t b7,
uint8_t b8);
// make sure everything is properly packed
#pragma pack(push, 1)
typedef struct DCAM_CHUNK_TRAILER
{
SPIN_GUID ChunkID;
uint32_t ChunkLength;
uint32_t InverseChunkLength;
} DCAM_CHUNK_TRAILER;
typedef struct DCAM_CHECKSUM
{
uint32_t CRCChecksum;
} DCAM_CHECKSUM;
// restore the previous packing
#pragma pack(pop)
class SPINNAKER_API CChunkAdapterDcam : public CChunkAdapter
{
public:
CChunkAdapterDcam(INodeMap* pNodeMap = NULL, int64_t MaxChunkCacheSize = -1);
virtual ~CChunkAdapterDcam();
virtual bool CheckBufferLayout(uint8_t* pBuffer, int64_t BufferLength);
virtual void AttachBuffer(
uint8_t* pBuffer,
int64_t BufferLength,
AttachStatistics_t* pAttachStatistics = NULL);
bool HasCRC(uint8_t* pBuffer, int64_t BufferLength);
bool CheckCRC(uint8_t* pBuffer, int64_t BufferLength);
};
} // namespace GenApi
} // namespace Spinnaker
#endif // SPINNAKER_GENAPI_CHUNKADAPTERDCAM_H