mirror of https://github.com/ecmwf/eccodes.git
PNG fix
This commit is contained in:
parent
6f54b9685c
commit
ea48de72df
|
@ -9,8 +9,10 @@
|
||||||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "grib_api_internal.h"
|
|
||||||
#include "grib_accessor_class_data_png_packing.h"
|
#include "grib_accessor_class_data_png_packing.h"
|
||||||
|
#include "grib_scaling.h"
|
||||||
|
|
||||||
|
#define PNG_ANYBITS
|
||||||
|
|
||||||
grib_accessor_class_data_png_packing_t _grib_accessor_class_data_png_packing{"data_png_packing"};
|
grib_accessor_class_data_png_packing_t _grib_accessor_class_data_png_packing{"data_png_packing"};
|
||||||
grib_accessor_class* grib_accessor_class_data_png_packing = &_grib_accessor_class_data_png_packing;
|
grib_accessor_class* grib_accessor_class_data_png_packing = &_grib_accessor_class_data_png_packing;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (C) Copyright 2005- ECMWF.
|
* (C) Copyright 2005- ECMWF.
|
||||||
*
|
*
|
||||||
|
@ -9,16 +8,13 @@
|
||||||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef eccodes_accessor_data_png_packing_h
|
#pragma once
|
||||||
#define eccodes_accessor_data_png_packing_h
|
|
||||||
|
|
||||||
#include "grib_accessor_class_values.h"
|
#include "grib_accessor_class_values.h"
|
||||||
#include "grib_scaling.h"
|
|
||||||
|
|
||||||
class grib_accessor_data_png_packing_t : public grib_accessor_values_t
|
class grib_accessor_data_png_packing_t : public grib_accessor_values_t
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/* Members defined in data_png_packing */
|
|
||||||
const char* number_of_values;
|
const char* number_of_values;
|
||||||
const char* reference_value;
|
const char* reference_value;
|
||||||
const char* binary_scale_factor;
|
const char* binary_scale_factor;
|
||||||
|
@ -43,4 +39,3 @@ public:
|
||||||
int unpack_double_element(grib_accessor*, size_t i, double* val) override;
|
int unpack_double_element(grib_accessor*, size_t i, double* val) override;
|
||||||
int unpack_double_element_set(grib_accessor*, const size_t* index_array, size_t len, double* val_array) override;
|
int unpack_double_element_set(grib_accessor*, const size_t* index_array, size_t len, double* val_array) override;
|
||||||
};
|
};
|
||||||
#endif /* eccodes_accessor_data_png_packing_h */
|
|
||||||
|
|
Loading…
Reference in New Issue