1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #define FFI_EXPORT __attribute__((visibility("default")))
16 
17 extern "C" {
18 FFI_EXPORT int FfiOHOSCreateImageSourceByPath = 0;
19 FFI_EXPORT int FfiOHOSCreateImageSourceByPathWithOption = 0;
20 FFI_EXPORT int FfiOHOSCreateImageSourceByFd = 0;
21 FFI_EXPORT int FfiOHOSCreateImageSourceByFdWithOption = 0;
22 FFI_EXPORT int FfiOHOSCreateImageSourceByBuffer = 0;
23 FFI_EXPORT int FfiOHOSCreateImageSourceByBufferWithOption = 0;
24 FFI_EXPORT int FfiOHOSCreateImageSourceByRawFile = 0;
25 FFI_EXPORT int FfiOHOSCreateIncrementalSource = 0;
26 FFI_EXPORT int FfiOHOSImageSourceGetImageInfo = 0;
27 FFI_EXPORT int FfiOHOSGetSupportedFormats = 0;
28 FFI_EXPORT int FfiOHOSGetImageProperty = 0;
29 FFI_EXPORT int FfiOHOSModifyImageProperty = 0;
30 FFI_EXPORT int FfiOHOSGetFrameCount = 0;
31 FFI_EXPORT int FfiOHOSUpdateData = 0;
32 FFI_EXPORT int FfiOHOSRelease = 0;
33 FFI_EXPORT int FfiOHOSImageSourceCreatePixelMap = 0;
34 FFI_EXPORT int FfiOHOSImageSourceCreatePixelMapList = 0;
35 FFI_EXPORT int FfiOHOSImageSourceGetDelayTime = 0;
36 
37 FFI_EXPORT int FfiOHOSCreatePixelMap = 0;
38 FFI_EXPORT int FfiOHOSGetIsEditable = 0;
39 FFI_EXPORT int FfiOHOSGetIsStrideAlignment = 0;
40 FFI_EXPORT int FfiOHOSReadPixelsToBuffer = 0;
41 FFI_EXPORT int FfiOHOSWriteBufferToPixels = 0;
42 FFI_EXPORT int FfiOHOSGetDensity = 0;
43 FFI_EXPORT int FfiOHOSOpacity = 0;
44 FFI_EXPORT int FfiOHOSCrop = 0;
45 FFI_EXPORT int FfiOHOSGetPixelBytesNumber = 0;
46 FFI_EXPORT int FfiOHOSGetBytesNumberPerRow = 0;
47 FFI_EXPORT int FfiOHOSGetImageInfo = 0;
48 FFI_EXPORT int FfiOHOSScale = 0;
49 FFI_EXPORT int FfiOHOSFlip = 0;
50 FFI_EXPORT int FfiOHOSRotate = 0;
51 FFI_EXPORT int FfiOHOSTranslate = 0;
52 FFI_EXPORT int FfiOHOSReadPixels = 0;
53 FFI_EXPORT int FfiOHOSWritePixels = 0;
54 FFI_EXPORT int FfiOHOSCreateAlphaPixelMap = 0;
55 FFI_EXPORT int FfiOHOSPixelMapRelease = 0;
56 FFI_EXPORT int FfiOHOSImageGetClipRect = 0;
57 FFI_EXPORT int FfiOHOSImageGetSize = 0;
58 FFI_EXPORT int FfiOHOSImageGetFormat = 0;
59 FFI_EXPORT int FfiOHOSGetComponent = 0;
60 FFI_EXPORT int FfiOHOSImageRelease = 0;
61 FFI_EXPORT int FfiOHOSPixelMapSetColorSpace = 0;
62 FFI_EXPORT int FfiOHOSPixelMapGetColorSpace = 0;
63 FFI_EXPORT int FfiOHOSPixelMapApplyColorSpace = 0;
64 
65 FFI_EXPORT int FfiOHOSReceiverGetSize = 0;
66 FFI_EXPORT int FfiOHOSReceiverGetCapacity = 0;
67 FFI_EXPORT int FfiOHOSReceiverGetFormat = 0;
68 FFI_EXPORT int FfiOHOSCreateImageReceiver = 0;
69 FFI_EXPORT int FfiOHOSGetReceivingSurfaceId = 0;
70 FFI_EXPORT int FfiOHOSReadNextImage = 0;
71 FFI_EXPORT int FfiOHOSReadLatestImage = 0;
72 FFI_EXPORT int FfiOHOSReceiverRelease = 0;
73 FFI_EXPORT int FFiOHOSImagePackerConstructor = 0;
74 FFI_EXPORT int FfiOHOSGetPackOptionSize = 0;
75 FFI_EXPORT int FfiOHOSImagePackerPackingPixelMap = 0;
76 FFI_EXPORT int FfiOHOSImagePackerPackingImageSource = 0;
77 FFI_EXPORT int FfiOHOSImagePackerGetSupportedFormats = 0;
78 FFI_EXPORT int FfiOHOSImagePackerPackPixelMapToFile = 0;
79 FFI_EXPORT int FfiOHOSImagePackerImageSourcePackToFile = 0;
80 FFI_EXPORT int FFiOHOSImagePackerRelease = 0;
81 FFI_EXPORT int FFiOHOSImageCreatorConstructor = 0;
82 FFI_EXPORT int FFiOHOSImageCreatorGetCapacity = 0;
83 FFI_EXPORT int FFiOHOSImageCreatorGetformat = 0;
84 FFI_EXPORT int FFiOHOSImageCreatorDequeueImage = 0;
85 FFI_EXPORT int FFiOHOSImageCreatorQueueImage = 0;
86 FFI_EXPORT int FFiOHOSImageCreatorOn = 0;
87 FFI_EXPORT int FFiOHOSImageCreatorRelease = 0;
88 }