• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 *
3 * SPDX-License-Identifier: GPL-2.0
4 *
5 * Copyright (C) 2011-2018 ARM or its affiliates
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 *
18 */
19 
20 #ifndef __ACAMERA_CALIBRATIONS_H__
21 #define __ACAMERA_CALIBRATIONS_H__
22 
23 #include "acamera_types.h"
24 #include "acamera_math.h"
25 #include "acamera_firmware_api.h"
26 
27 
28 #define CALIBRATION_BASE_SET 0
29 #define CALIBRATION_PREVIEW_SET 1
30 
31 
32 LookupTable *_GET_LOOKUP_PTR( void *p_ctx, uint32_t idx );
33 
34 const void *_GET_LUT_PTR( void *p_ctx, uint32_t idx );
35 
36 uint8_t *_GET_UCHAR_PTR( void *p_ctx, uint32_t idx );
37 
38 uint16_t *_GET_USHORT_PTR( void *p_ctx, uint32_t idx );
39 
40 uint32_t *_GET_UINT_PTR( void *p_ctx, uint32_t idx );
41 
42 modulation_entry_t *_GET_MOD_ENTRY16_PTR( void *p_ctx, uint32_t idx );
43 
44 modulation_entry_32_t *_GET_MOD_ENTRY32_PTR( void *p_ctx, uint32_t idx );
45 
46 uint32_t _GET_ROWS( void *p_ctx, uint32_t idx );
47 
48 uint32_t _GET_COLS( void *p_ctx, uint32_t idx );
49 
50 uint32_t _GET_LEN( void *p_ctx, uint32_t idx );
51 
52 uint32_t _GET_WIDTH( void *p_ctx, uint32_t idx );
53 
54 uint32_t _GET_SIZE( void *p_ctx, uint32_t idx );
55 
56 
57 #endif // __ACAMERA_CALIBRATIONS_H__
58