this repo has no description
1/*
2 This file is part of Darling.
3
4 Copyright (C) 2017 Lubos Dolezel
5
6 Darling is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 Darling is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Darling. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20
21#include <CoreImage/CoreImage.h>
22#include <stdlib.h>
23
24static int verbose = 0;
25
26__attribute__((constructor))
27static void initme(void) {
28 verbose = getenv("STUB_VERBOSE") != NULL;
29}
30
31void* AVCameraCalibrationDataClass(void) {
32 if (verbose) puts("STUB: AVCameraCalibrationDataClass called");
33 return NULL;
34}
35
36void* AVCameraCalibrationDataIntrinsicMatrix(void) {
37 if (verbose) puts("STUB: AVCameraCalibrationDataIntrinsicMatrix called");
38 return NULL;
39}
40
41void* AVCameraCalibrationDataIntrinsicMatrixReferenceDimensions(void) {
42 if (verbose) puts("STUB: AVCameraCalibrationDataIntrinsicMatrixReferenceDimensions called");
43 return NULL;
44}
45
46void* AVDepthDataClass(void) {
47 if (verbose) puts("STUB: AVDepthDataClass called");
48 return NULL;
49}
50
51void* AVDepthDataGetAccuracy(void) {
52 if (verbose) puts("STUB: AVDepthDataGetAccuracy called");
53 return NULL;
54}
55
56void* AVDepthDataGetPortraitScore(void) {
57 if (verbose) puts("STUB: AVDepthDataGetPortraitScore called");
58 return NULL;
59}
60
61void* AVFDepthCameraCalibrationData(void) {
62 if (verbose) puts("STUB: AVFDepthCameraCalibrationData called");
63 return NULL;
64}
65
66void* AVFDepthDataByConvertingToDepthDataType(void) {
67 if (verbose) puts("STUB: AVFDepthDataByConvertingToDepthDataType called");
68 return NULL;
69}
70
71void* AVFDepthDataByReplacingDepthDataMapWithPixelBuffer(void) {
72 if (verbose) puts("STUB: AVFDepthDataByReplacingDepthDataMapWithPixelBuffer called");
73 return NULL;
74}
75
76void* AVFDepthDataDictionaryRepresentation(void) {
77 if (verbose) puts("STUB: AVFDepthDataDictionaryRepresentation called");
78 return NULL;
79}
80
81void* AVFDepthDataFromDictionary(void) {
82 if (verbose) puts("STUB: AVFDepthDataFromDictionary called");
83 return NULL;
84}
85
86void* AVFDepthDataMap(void) {
87 if (verbose) puts("STUB: AVFDepthDataMap called");
88 return NULL;
89}
90
91void* AVFDepthDataType(void) {
92 if (verbose) puts("STUB: AVFDepthDataType called");
93 return NULL;
94}
95
96void* CI_GenericRGBLinear_to_TempTint(void) {
97 if (verbose) puts("STUB: CI_GenericRGBLinear_to_TempTint called");
98 return NULL;
99}
100
101void* CI_TempTint_to_xy(void) {
102 if (verbose) puts("STUB: CI_TempTint_to_xy called");
103 return NULL;
104}
105
106void* CI_xy_to_TempTint(void) {
107 if (verbose) puts("STUB: CI_xy_to_TempTint called");
108 return NULL;
109}
110
111// seems to be the same as the `open_memstream` function in libc
112// not sure why CoreImage has its own copy
113FILE* open_memstream(char** buffer, size_t* size) {
114 if (verbose) puts("STUB: CoreImage's open_memstream called (why?)");
115 return NULL;
116}