Skip to content
Snippets Groups Projects
Select Git revision
  • e2eb7dc646bb9413c414120402c2b7b368b14ac7
  • master default protected
  • release-1.10 protected
  • 553-semantic-recommendation
  • replication_test
  • dev protected
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • v1.10.3 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
41 results

create.vue

Blame
  • cmp_icu.c 88.89 KiB
    /**
     * @file   cmp_icu.c
     * @author Dominik Loidolt (dominik.loidolt@univie.ac.at)
     * @date   2020
     *
     * @copyright GPLv2
     * This program is free software; you can redistribute it and/or modify it
     * under the terms and conditions of the GNU General Public License,
     * version 2, as published by the Free Software Foundation.
     *
     * This program is distributed in the hope it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
     * more details.
     *
     * @brief software compression library
     * @see Data Compression User Manual PLATO-UVIE-PL-UM-0001
     *
     * To compress data, first create a compression configuration with the
     * cmp_cfg_icu_create() function.
     * Then set the different data buffers with the data to compressed, the model
     * data and the compressed data with the cmp_cfg_icu_buffers() function.
     * Then set the compression data type specific compression parameters. For
     * imagette data use the cmp_cfg_icu_imagette() function. For flux and center of
     * brightness data use the cmp_cfg_fx_cob() function. And for background, offset
     * and smearing data use the cmp_cfg_aux() function.
     * Finally, you can compress the data with the icu_compress_data() function.
     */
    
    
    #include <stdint.h>
    #include <string.h>
    #include <limits.h>
    
    #include "../common/byteorder.h"
    #include "../common/cmp_debug.h"
    #include "../common/cmp_data_types.h"
    #include "../common/cmp_support.h"
    #include "../common/cmp_entity.h"
    
    #include "../cmp_icu.h"
    #include "../cmp_chunk.h"
    
    
    /**
     * @brief default implementation of the get_timestamp() function
     *
     * @returns 0
     */
    
    static uint64_t default_get_timestamp(void)
    {
    	return 0;
    }
    
    
    /**
     * @brief function pointer to a function returning a current PLATO timestamp
     * initialised with the compress_chunk_init() function
     */
    
    static uint64_t (*get_timestamp)(void) = default_get_timestamp;
    
    
    /**
     * @brief holding the version_identifier for the compression header
     * initialised with the compress_chunk_init() function
     */
    
    static uint32_t version_identifier;