Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
image_util.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2020 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 /*
17  * image_util.h
18  *
19  * Created on: 30 Mar 2020
20  * Author: billy
21  */
22 
23 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_IMAGE_UTIL_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_IMAGE_UTIL_H_
25 
26 #include <time.h>
27 
29 #include "coordinate.h"
30 
31 
32 typedef struct ImageMetadata
33 {
35 
36  struct tm *im_date_p;
37 
38  uint32 im_width;
39 
40  uint32 im_height;
41 
43 
44 
45 
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif
50 
51 
53 
54 
55 DFW_FIELD_TRIAL_SERVICE_LOCAL ImageMetadata *AllocateImageMetadata (Coordinate *coord_p, struct tm *time_p, uint32 width, uint32 height);
56 
58 
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 
65 #endif /* SERVICES_FIELD_TRIALS_INCLUDE_IMAGE_UTIL_H_ */
AllocateImageMetadata
ImageMetadata * AllocateImageMetadata(Coordinate *coord_p, struct tm *time_p, uint32 width, uint32 height)
GetImageMetadataForImageFile
ImageMetadata * GetImageMetadataForImageFile(const char *path_s)
ImageMetadata::im_date_p
struct tm * im_date_p
Definition: image_util.h:36
FreeImageMetadata
void FreeImageMetadata(ImageMetadata *metadata_p)
ImageMetadata::im_coord_p
Coordinate * im_coord_p
Definition: image_util.h:34
dfw_field_trial_service_library.h
DFW_FIELD_TRIAL_SERVICE_LOCAL
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
ImageMetadata::im_width
uint32 im_width
Definition: image_util.h:38
coordinate.h
ImageMetadata::im_height
uint32 im_height
Definition: image_util.h:40
Coordinate
A datatype for storing a geographic coordinate.
Definition: coordinate.h:34
ImageMetadata
Definition: image_util.h:32