Program Listing for File GlobalProperties.hpp

Return to documentation for file (include/depthai/properties/GlobalProperties.hpp)

#pragma once

#include "depthai/common/EepromData.hpp"
#include "depthai/common/optional.hpp"
#include "depthai/properties/Properties.hpp"

namespace dai {

struct GlobalProperties : PropertiesSerializable<Properties, GlobalProperties> {
    constexpr static uint32_t SIPP_BUFFER_DEFAULT_SIZE = 18 * 1024;
    constexpr static uint32_t SIPP_DMA_BUFFER_DEFAULT_SIZE = 16 * 1024;

    double leonCssFrequencyHz = 700 * 1000 * 1000;
    double leonMssFrequencyHz = 700 * 1000 * 1000;
    std::optional<std::string> pipelineName;
    std::optional<std::string> pipelineVersion;
    std::optional<dai::EepromData> calibData;

    uint32_t eepromId = 0;

    std::optional<std::uint32_t> cameraTuningBlobSize;
    std::string cameraTuningBlobUri;

    int32_t xlinkChunkSize = -1;

    uint32_t sippBufferSize = SIPP_BUFFER_DEFAULT_SIZE;
    uint32_t sippDmaBufferSize = SIPP_DMA_BUFFER_DEFAULT_SIZE;

    ~GlobalProperties() override;
};

DEPTHAI_SERIALIZE_EXT(GlobalProperties,
                      leonCssFrequencyHz,
                      leonMssFrequencyHz,
                      pipelineName,
                      pipelineVersion,
                      cameraTuningBlobSize,
                      cameraTuningBlobUri,
                      calibData,
                      eepromId,
                      xlinkChunkSize,
                      sippBufferSize,
                      sippDmaBufferSize);

}  // namespace dai