File: python-cameramodel-converter.h

package info (click to toggle)
mrcal 2.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,548 kB
  • sloc: python: 40,828; ansic: 15,809; cpp: 1,754; perl: 303; makefile: 163; sh: 99; lisp: 84
file content (21 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#ifdef __cplusplus
extern "C" {
#endif


// mrcal_cameramodel_converter is a "converter" function that can be used with
// "O&" conversions in PyArg_ParseTupleAndKeywords() calls. Can interpret either
// path strings or mrcal.cameramodel objects as mrcal_cameramodel_VOID_t structures
//
// Allocates memory. call free(*model) when done
#include <Python.h>
#include "mrcal.h"

int mrcal_cameramodel_converter(PyObject*                  py_model,
                                mrcal_cameramodel_VOID_t** model);

#ifdef __cplusplus
}
#endif