data/frameProcessor/src/ExcaliburProcessPlugin.cpp
void ExcaliburProcessPlugin::configure(OdinData::IpcMessage& config, OdinData::IpcMessage& reply)
  {
    if (config.has_param(ExcaliburProcessPlugin::CONFIG_ASIC_COUNTER_DEPTH))
    {
      std::string bit_depth_str =
          config.get_param<std::string>(ExcaliburProcessPlugin::CONFIG_ASIC_COUNTER_DEPTH);

      if (bit_depth_str == BIT_DEPTH[DEPTH_1_BIT])
      {
        asic_counter_depth_ = DEPTH_1_BIT;
      }
      else if (bit_depth_str == BIT_DEPTH[DEPTH_6_BIT])
      {
        asic_counter_depth_ = DEPTH_6_BIT;
      }
      else if (bit_depth_str == BIT_DEPTH[DEPTH_12_BIT])
      {
        asic_counter_depth_ = DEPTH_12_BIT;
      }
      else if (bit_depth_str == BIT_DEPTH[DEPTH_24_BIT])
      {
        asic_counter_depth_ = DEPTH_24_BIT;
      }
      else
      {
        LOG4CXX_ERROR(logger_, "Invalid bit depth requested: " << bit_depth_str);
        throw std::runtime_error("Invalid bit depth requested");
      }
    }

    if (config.has_param(ExcaliburProcessPlugin::CONFIG_IMAGE_WIDTH))
    {
      image_width_ = config.get_param<int>(ExcaliburProcessPlugin::CONFIG_IMAGE_WIDTH);
    }

    if (config.has_param(ExcaliburProcessPlugin::CONFIG_IMAGE_HEIGHT))
    {
      image_height_ = config.get_param<int>(ExcaliburProcessPlugin::CONFIG_IMAGE_HEIGHT);
    }

    image_pixels_ = image_width_ * image_height_;

  }
/**
   * Configure the Excalibur plugin.  This receives an IpcMessage which should be processed
   * to configure the plugin, and any response can be added to the reply IpcMessage.  This
   * plugin supports the following configuration parameters:
   * - bitdepth
   *
   * \param[in] config - Reference to the configuration IpcMessage object.
   * \param[out] reply - Reference to the reply IpcMessage object.
   */
Configure the Excalibur plugin.  This receives an IpcMessage which should be processed
to configure the plugin, and any response can be added to the reply IpcMessage.  This
plugin supports the following configuration parameters:
- bitdepth

\param[in] config - Reference to the configuration IpcMessage object.
\param[out] reply - Reference to the reply IpcMessage object.
Configure the Excalibur plugin . This receives an IpcMessage which should be processed to configure the plugin and any response can be added to the reply IpcMessage . This plugin supports the following configuration parameters : - bitdepth \ param [ in ] config - Reference to the configuration IpcMessage object . \ param [ out ] reply - Reference to the reply IpcMessage object .
void ExcaliburProcessPlugin::configure(OdinData::IpcMessage& config, OdinData::IpcMessage& reply)
  {
    if (config.has_param(ExcaliburProcessPlugin::CONFIG_ASIC_COUNTER_DEPTH))
    {
      std::string bit_depth_str =
          config.get_param<std::string>(ExcaliburProcessPlugin::CONFIG_ASIC_COUNTER_DEPTH);
      if (bit_depth_str == BIT_DEPTH[DEPTH_1_BIT])
      {
        asic_counter_depth_ = DEPTH_1_BIT;
      }
      else if (bit_depth_str == BIT_DEPTH[DEPTH_6_BIT])
      {
        asic_counter_depth_ = DEPTH_6_BIT;
      }
      else if (bit_depth_str == BIT_DEPTH[DEPTH_12_BIT])
      {
        asic_counter_depth_ = DEPTH_12_BIT;
      }
      else if (bit_depth_str == BIT_DEPTH[DEPTH_24_BIT])
      {
        asic_counter_depth_ = DEPTH_24_BIT;
      }
      else
      {
        LOG4CXX_ERROR(logger_, "Invalid bit depth requested: " << bit_depth_str);
        throw std::runtime_error("Invalid bit depth requested");
      }
    }
    if (config.has_param(ExcaliburProcessPlugin::CONFIG_IMAGE_WIDTH))
    {
      image_width_ = config.get_param<int>(ExcaliburProcessPlugin::CONFIG_IMAGE_WIDTH);
    }
    if (config.has_param(ExcaliburProcessPlugin::CONFIG_IMAGE_HEIGHT))
    {
      image_height_ = config.get_param<int>(ExcaliburProcessPlugin::CONFIG_IMAGE_HEIGHT);
    }
    image_pixels_ = image_width_ * image_height_;
  }
void ExcaliburProcessPlugin :: configure ( OdinData :: IpcMessage & config , OdinData :: IpcMessage & reply ) { if ( config . has_param ( ExcaliburProcessPlugin :: CONFIG_ASIC_COUNTER_DEPTH ) ) { std :: string bit_depth_str = config . get_param < std :: string > ( ExcaliburProcessPlugin :: CONFIG_ASIC_COUNTER_DEPTH ) ; if ( bit_depth_str == BIT_DEPTH [ DEPTH_1_BIT ] ) { asic_counter_depth_ = DEPTH_1_BIT ; } else if ( bit_depth_str == BIT_DEPTH [ DEPTH_6_BIT ] ) { asic_counter_depth_ = DEPTH_6_BIT ; } else if ( bit_depth_str == BIT_DEPTH [ DEPTH_12_BIT ] ) { asic_counter_depth_ = DEPTH_12_BIT ; } else if ( bit_depth_str == BIT_DEPTH [ DEPTH_24_BIT ] ) { asic_counter_depth_ = DEPTH_24_BIT ; } else { LOG4CXX_ERROR ( logger_ , " " << bit_depth_str ) ; throw std :: runtime_error ( " " ) ; } } if ( config . has_param ( ExcaliburProcessPlugin :: CONFIG_IMAGE_WIDTH ) ) { image_width_ = config . get_param < int > ( ExcaliburProcessPlugin :: CONFIG_IMAGE_WIDTH ) ; } if ( config . has_param ( ExcaliburProcessPlugin :: CONFIG_IMAGE_HEIGHT ) ) { image_height_ = config . get_param < int > ( ExcaliburProcessPlugin :: CONFIG_IMAGE_HEIGHT ) ; } image_pixels_ = image_width_ * image_height_ ; }
Configure the Excalibur plugin.
Configure the Excalibur plugin .