High-Level Data Reduction Library: hdrl_frameiter.h Source File

High-Level Data Reduction Library 1.6.0 High-Level data reduction routines for ESO pipelines

Loading...
Searching...
No Matches
hdrl_frameiter.h
Go to the documentation of this file.
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2016 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef HDRL_FRAMEITER_H
21#define HDRL_FRAMEITER_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include "hdrl_types.h"
28#include "hdrl_iter.h"
29#include <cpl.h>
30
31CPL_BEGIN_DECLS
32
33/*-----------------------------------------------------------------------------
34 Define
35 -----------------------------------------------------------------------------*/
36
37/*-----------------------------------------------------------------------------
38 Functions prototypes
39 -----------------------------------------------------------------------------*/
40
41/*-----------------------------------------------------------------------------
42 Experimental declarations - can be used, but no guarantees on api stability
43 -----------------------------------------------------------------------------*/
44#if defined HDRL_USE_EXPERIMENTAL || defined HDRL_USE_PRIVATE
47 typedef enum {
48 HDRL_FRAMEITER_AXIS_FRAME = 0,
49 HDRL_FRAMEITER_AXIS_EXT = 1,
50 HDRL_FRAMEITER_AXIS_NAXIS1 = 2,
51 HDRL_FRAMEITER_AXIS_NAXIS2 = 3,
52 HDRL_FRAMEITER_AXIS_NAXIS3 = 4
53} hdrl_frameiter_axis;
54
55 typedef struct {
56 cpl_image * image;
57 cpl_propertylist * plist;
58} hdrl_frameiter_data;
59
60hdrl_iter *
61 hdrl_frameiter_new(const cpl_frameset * frames, hdrl_iter_flags flags,
62 intptr_t naxes, intptr_t * axes, intptr_t * offsets,
63 intptr_t *strides, intptr_t * dims);
64
66#endif
67
68/*-----------------------------------------------------------------------------
69 Private declarations - must not be used outside of hdrl
70------------------------------------------------------------------------------*/
71
72#ifdef HDRL_USE_PRIVATE
76#endif
77
78CPL_END_DECLS
79
80#endif
hdrl_types.h
hdrl_iter.h
hdrl_frameiter_new
hdrl_iter * hdrl_frameiter_new(const cpl_frameset *frames, hdrl_iter_flags flags, intptr_t naxes, intptr_t *axes, intptr_t *offsets, intptr_t *strides, intptr_t *dims)
create iterator over cpl_frameset
Definition hdrl_frameiter.c:111