450 {
451
452
453
454 AR_TRACKABLE_BASE_TRACKABLE = 0x41520100,
455
456
457 AR_TRACKABLE_PLANE = 0x41520101,
458
459
460 AR_TRACKABLE_POINT = 0x41520102,
461
462
463 AR_TRACKABLE_AUGMENTED_IMAGE = 0x41520104,
464
465
466 AR_TRACKABLE_NOT_VALID = 0};
467
468
469
471
472 AR_SUCCESS = 0,
473
474
475
476 AR_ERROR_INVALID_ARGUMENT = -1,
477
478
479
480 AR_ERROR_FATAL = -2,
481
482
483
484 AR_ERROR_SESSION_PAUSED = -3,
485
486
487
488 AR_ERROR_SESSION_NOT_PAUSED = -4,
489
490
491
492 AR_ERROR_NOT_TRACKING = -5,
493
494
495
496 AR_ERROR_TEXTURE_NOT_SET = -6,
497
498
499 AR_ERROR_MISSING_GL_CONTEXT = -7,
500
501
502
503 AR_ERROR_UNSUPPORTED_CONFIGURATION = -8,
504
505
506
507 AR_ERROR_CAMERA_PERMISSION_NOT_GRANTED = -9,
508
509
510
511
512
513 AR_ERROR_DEADLINE_EXCEEDED = -10,
514
515
516
517
518 AR_ERROR_RESOURCE_EXHAUSTED = -11,
519
520
521
522
523 AR_ERROR_NOT_YET_AVAILABLE = -12,
524
525
526
527 AR_ERROR_CAMERA_NOT_AVAILABLE = -13,
528
529
530
531 AR_ERROR_CLOUD_ANCHORS_NOT_CONFIGURED = -14,
532
533
534
535
536 AR_ERROR_INTERNET_PERMISSION_NOT_GRANTED = -15,
537
538
539
540 AR_ERROR_ANCHOR_NOT_SUPPORTED_FOR_HOSTING = -16,
541
542
543
544 AR_ERROR_IMAGE_INSUFFICIENT_QUALITY = -17,
545
546
547 AR_ERROR_DATA_INVALID_FORMAT = -18,
548
549
550
551 AR_ERROR_DATA_UNSUPPORTED_VERSION = -19,
552
553
554 AR_UNAVAILABLE_ARCORE_NOT_INSTALLED = -100,
555
556
557 AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE = -101,
558
559
560
561 AR_UNAVAILABLE_APK_TOO_OLD = -103,
562
563
564
565 AR_UNAVAILABLE_SDK_TOO_OLD = -104,
566
567
568
569 AR_UNAVAILABLE_USER_DECLINED_INSTALLATION = -105};
570
571
572
573
575
576 AR_TRACKING_STATE_TRACKING = 0,
577
578
579
580
581
582
583 AR_TRACKING_STATE_PAUSED = 1,
584
585
586
587 AR_TRACKING_STATE_STOPPED = 2};
588
589
590
592
593
594 AR_CLOUD_ANCHOR_STATE_NONE = 0,
595
596
597
598
599 AR_CLOUD_ANCHOR_STATE_TASK_IN_PROGRESS = 1,
600
601
602 AR_CLOUD_ANCHOR_STATE_SUCCESS = 2,
603
604
605
606 AR_CLOUD_ANCHOR_STATE_ERROR_INTERNAL = -1,
607
608
609
610
611 AR_CLOUD_ANCHOR_STATE_ERROR_NOT_AUTHORIZED = -2,
612
613
614
615
616
617
618 AR_CLOUD_ANCHOR_STATE_ERROR_SERVICE_UNAVAILABLE = -3,
619
620
621
622
623 AR_CLOUD_ANCHOR_STATE_ERROR_RESOURCE_EXHAUSTED = -4,
624
625
626
627
628 AR_CLOUD_ANCHOR_STATE_ERROR_HOSTING_DATASET_PROCESSING_FAILED = -5,
629
630
631
632 AR_CLOUD_ANCHOR_STATE_ERROR_CLOUD_ID_NOT_FOUND = -6,
633
634
635
636
637
638 AR_CLOUD_ANCHOR_STATE_ERROR_RESOLVING_LOCALIZATION_NO_MATCH = -7,
639
640
641
642
643 AR_CLOUD_ANCHOR_STATE_ERROR_RESOLVING_SDK_VERSION_TOO_OLD = -8,
644
645
646
647
648 AR_CLOUD_ANCHOR_STATE_ERROR_RESOLVING_SDK_VERSION_TOO_NEW = -9};
649
650
651
653
654 AR_AVAILABILITY_UNKNOWN_ERROR = 0,
655
656
657 AR_AVAILABILITY_UNKNOWN_CHECKING = 1,
658
659
660 AR_AVAILABILITY_UNKNOWN_TIMED_OUT = 2,
661
662 AR_AVAILABILITY_UNSUPPORTED_DEVICE_NOT_CAPABLE = 100,
663
664
665 AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED = 201,
666
667
668 AR_AVAILABILITY_SUPPORTED_APK_TOO_OLD = 202,
669
670 AR_AVAILABILITY_SUPPORTED_INSTALLED = 203};
671
672
673
675
676 AR_INSTALL_STATUS_INSTALLED = 0,
677
678
679 AR_INSTALL_STATUS_INSTALL_REQUESTED = 1};
680
681
682
684
685
686
687
688
689 AR_INSTALL_BEHAVIOR_REQUIRED = 0,
690
691
692 AR_INSTALL_BEHAVIOR_OPTIONAL = 1};
693
694
695
697
698 AR_INSTALL_USER_MESSAGE_TYPE_APPLICATION = 0,
699
700 AR_INSTALL_USER_MESSAGE_TYPE_FEATURE = 1,
701
702
703 AR_INSTALL_USER_MESSAGE_TYPE_USER_ALREADY_INFORMED = 2};
704
705
706
708
709 AR_LIGHT_ESTIMATION_MODE_DISABLED = 0,
710
711
712 AR_LIGHT_ESTIMATION_MODE_AMBIENT_INTENSITY = 1};
713
714
715
717
718 AR_PLANE_FINDING_MODE_DISABLED = 0,
719
720 AR_PLANE_FINDING_MODE_HORIZONTAL = 1,
721
722 AR_PLANE_FINDING_MODE_VERTICAL = 2,
723
724 AR_PLANE_FINDING_MODE_HORIZONTAL_AND_VERTICAL = 3};
725
726
727
729
730
731
732
733
734 AR_UPDATE_MODE_BLOCKING = 0,
735
736
737
738 AR_UPDATE_MODE_LATEST_CAMERA_IMAGE = 1};
739
740
741
743
744 AR_PLANE_HORIZONTAL_UPWARD_FACING = 0,
745
746 AR_PLANE_HORIZONTAL_DOWNWARD_FACING = 1,
747
748 AR_PLANE_VERTICAL = 2};
749
750
751
753
754
755 AR_LIGHT_ESTIMATE_STATE_NOT_VALID = 0,
756
757 AR_LIGHT_ESTIMATE_STATE_VALID = 1};
758
759
760
762
763
764 AR_POINT_ORIENTATION_INITIALIZED_TO_IDENTITY = 0,
765
766
767 AR_POINT_ORIENTATION_ESTIMATED_SURFACE_NORMAL = 1};
768
769
770
772
773
774 AR_CLOUD_ANCHOR_MODE_DISABLED = 0,
775
776
777 AR_CLOUD_ANCHOR_MODE_ENABLED = 1};
778
779#undef AR_DEFINE_ENUM
780
781#ifdef __cplusplus
782extern "C" {
783#endif
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
815 void *application_context,
816 ArAvailability *out_availability);
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
870 void *application_activity,
871 bool user_requested_install,
872 ArInstallStatus *out_install_status);
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
905 void *application_activity,
906 int32_t user_requested_install,
907 ArInstallBehavior install_behavior,
908 ArInstallUserMessageType message_type,
909 ArInstallStatus *out_install_status);
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
932 void *application_context,
934
935
936
937
938
939
940
941
942
943
944
945
947
948
950
951
952
956 ArLightEstimationMode *light_estimation_mode);
957
958
959
963 ArLightEstimationMode light_estimation_mode);
964
965
966
969 ArPlaneFindingMode *plane_finding_mode);
970
971
972
975 ArPlaneFindingMode plane_finding_mode);
976
977
978
981 ArUpdateMode *update_mode);
982
983
984
987 ArUpdateMode update_mode);
988
989
992 ArCloudAnchorMode *out_cloud_anchor_mode);
993
994
995
998 ArCloudAnchorMode cloud_anchor_mode);
999
1000
1001
1002
1003
1004
1005
1006
1011
1012
1013
1014
1019
1020
1021
1022
1023
1024
1025
1026
1027
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1050 "deprecated in release 1.2.0. Please see function documentation");
1051
1052
1053
1054
1055
1056
1057
1058
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1083
1084
1085
1086
1087
1088
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1104 int32_t rotation,
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1144
1145
1146
1147
1148
1149
1150
1154
1155
1156
1157
1158
1159
1160
1161
1162
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1178 ArTrackableType filter_type,
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1223 const char *cloud_anchor_id,
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1244 const float *pose_raw,
1246
1247
1249
1250
1251
1252
1253
1254
1257 float *out_pose_raw);
1258
1259
1260
1261
1262
1263
1264
1267 float *out_matrix_col_major_4x4);
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1324 float *out_col_major_4x4);
1325
1326
1327
1328
1331 ArTrackingState *out_tracking_state);
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1346 float near,
1347 float far,
1348 float *dest_col_major_4x4);
1349
1350
1351
1352
1353
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1367
1368
1370
1371
1372
1373
1374
1377 int32_t *out_geometry_changed);
1378
1379
1380
1381
1382
1385 int64_t *out_timestamp_ns);
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1401 int32_t num_elements,
1402 const float *uvs_in,
1403 float *uvs_out);
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1433 float pixel_x,
1434 float pixel_y,
1436
1437
1438
1439
1440
1441
1442
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1466
1467
1468
1469
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1487
1488
1489
1490
1491
1492
1493
1494
1495
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1512 ArTrackableType filter_type,
1514
1515
1516
1517
1518
1519
1520
1521
1522
1525 int32_t *out_number_of_points);
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1542 const float **out_point_cloud_data);
1543
1544
1545
1548 int64_t *out_timestamp_ns);
1549
1550
1551
1552
1553
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1573 const ACameraMetadata **out_ndk_metadata);
1574
1575
1576
1577
1578
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1596
1597
1599
1600
1602
1603
1604
1605
1606
1607
1608
1609
1612
1613
1615
1616
1617
1618
1621 ArLightEstimateState *out_light_estimate_state);
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1635 float *out_pixel_intensity);
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1666 float *out_color_correction_4);
1667
1668
1669
1670
1671
1672
1673
1674
1675
1678
1679
1680
1682
1683
1686 int32_t *out_size);
1687
1688
1689
1692 int32_t index,
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1709
1710
1713 ArTrackingState *out_tracking_state);
1714
1715
1716
1717
1719
1720
1721
1722
1723
1724
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1738 char **out_cloud_anchor_id);
1739
1740
1741
1742
1743
1744
1745
1748 ArCloudAnchorState *out_state);
1749
1750
1751
1752
1753
1754
1755
1756
1757
1760
1761
1762
1764
1765
1768 int32_t *out_size);
1769
1770
1771
1774 int32_t index,
1776
1777
1778
1779
1780
1781
1782
1783
1785
1786
1789 ArTrackableType *out_trackable_type);
1790
1791
1792
1795 ArTrackingState *out_tracking_state);
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1813
1814
1815
1816
1817
1818
1819
1820
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1848
1849
1852 ArPlaneType *out_plane_type);
1853
1854
1855
1856
1857
1858
1859
1860
1861
1865
1866
1867
1868
1871 float *out_extent_x);
1872
1873
1874
1875
1878 float *out_extent_z);
1879
1880
1881
1884 int32_t *out_polygon_size);
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1897 float *out_polygon_xz);
1898
1899
1900
1904 int32_t *out_pose_in_extents);
1905
1906
1907
1911 int32_t *out_pose_in_polygon);
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1944 ArPointOrientationMode *out_orientation_mode);
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1979 float *out_extent_x);
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1997 float *out_extent_z);
1998
1999
2000
2001
2002
2005 int32_t *out_index);
2006
2007
2008
2009
2010
2011
2012
2013
2016 char **out_augmented_image_name);
2017
2018
2019
2020
2021
2022
2023
2024
2025
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2043 const uint8_t *database_raw_bytes,
2044 int64_t database_raw_bytes_size,
2046
2047
2048
2049
2050
2051
2052
2056 uint8_t **out_image_database_raw_bytes,
2057 int64_t *out_image_database_raw_bytes_size);
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2084 const char *image_name,
2085 const uint8_t *image_grayscale_pixels,
2086 int32_t image_width_in_pixels,
2087 int32_t image_height_in_pixels,
2088 int32_t image_stride_in_pixels,
2089 int32_t *out_index);
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2119 const char *image_name,
2120 const uint8_t *image_grayscale_pixels,
2121 int32_t image_width_in_pixels,
2122 int32_t image_height_in_pixels,
2123 int32_t image_stride_in_pixels,
2124 float image_width_in_meters,
2125 int32_t *out_index);
2126
2127
2131 int32_t *out_num_images);
2132
2133
2136
2137
2138
2139
2140
2141
2142
2143
2144
2147
2148
2149
2151
2152
2155 int32_t *out_size);
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2168 int32_t index,
2170
2171
2172
2173
2175
2176
2177
2179
2180
2183 float *out_distance);
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2218
2219
2220
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2238
2239
2240
2241
2242
2243
2244
2245
2247
2248
2250
2251#ifdef __cplusplus
2252}
2253#endif
2254
2255#endif
void ArByteArray_release(uint8_t *byte_array)
Releases a byte array created using an ARCore API function.
#define AR_DEPRECATED(_deprecation_string)
#define AR_DEFINE_ENUM(_type)
void ArString_release(char *str)
void ArAnchorList_create(const ArSession *session, ArAnchorList **out_anchor_list)
Creates an anchor list object.
void ArAnchorList_getSize(const ArSession *session, const ArAnchorList *anchor_list, int32_t *out_size)
Retrieves the number of anchors in this list.
void ArAnchor_getTrackingState(const ArSession *session, const ArAnchor *anchor, ArTrackingState *out_tracking_state)
Retrieves the current state of the pose of this anchor.
struct ArAnchorList_ ArAnchorList
void ArAnchor_getCloudAnchorState(const ArSession *session, const ArAnchor *anchor, ArCloudAnchorState *out_state)
void ArAnchorList_destroy(ArAnchorList *anchor_list)
void ArAnchor_getPose(const ArSession *session, const ArAnchor *anchor, ArPose *out_pose)
void ArAnchor_release(ArAnchor *anchor)
struct ArAnchor_ ArAnchor
void ArAnchor_acquireCloudAnchorId(ArSession *session, ArAnchor *anchor, char **out_cloud_anchor_id)
void ArAnchor_detach(ArSession *session, ArAnchor *anchor)
void ArAnchorList_acquireItem(const ArSession *session, const ArAnchorList *anchor_list, int32_t index, ArAnchor **out_anchor)
void ArCoreApk_checkAvailability(void *env, void *application_context, ArAvailability *out_availability)
ArStatus ArCoreApk_requestInstall(void *env, void *application_activity, bool user_requested_install, ArInstallStatus *out_install_status)
ArStatus ArCoreApk_requestInstallCustom(void *env, void *application_activity, int32_t user_requested_install, ArInstallBehavior install_behavior, ArInstallUserMessageType message_type, ArInstallStatus *out_install_status)
ArStatus ArAugmentedImageDatabase_deserialize(const ArSession *session, const uint8_t *database_raw_bytes, int64_t database_raw_bytes_size, ArAugmentedImageDatabase **out_augmented_image_database)
struct ArAugmentedImageDatabase_ ArAugmentedImageDatabase
ArStatus ArAugmentedImageDatabase_addImageWithPhysicalSize(const ArSession *session, ArAugmentedImageDatabase *augmented_image_database, const char *image_name, const uint8_t *image_grayscale_pixels, int32_t image_width_in_pixels, int32_t image_height_in_pixels, int32_t image_stride_in_pixels, float image_width_in_meters, int32_t *out_index)
void ArAugmentedImageDatabase_create(const ArSession *session, ArAugmentedImageDatabase **out_augmented_image_database)
Creates a new empty image database.
void ArAugmentedImageDatabase_destroy(ArAugmentedImageDatabase *augmented_image_database)
Releases memory used by an image database.
void ArAugmentedImageDatabase_getNumImages(const ArSession *session, const ArAugmentedImageDatabase *augmented_image_database, int32_t *out_num_images)
Returns the number of images in the image database.
ArStatus ArAugmentedImageDatabase_addImage(const ArSession *session, ArAugmentedImageDatabase *augmented_image_database, const char *image_name, const uint8_t *image_grayscale_pixels, int32_t image_width_in_pixels, int32_t image_height_in_pixels, int32_t image_stride_in_pixels, int32_t *out_index)
void ArAugmentedImageDatabase_serialize(const ArSession *session, const ArAugmentedImageDatabase *augmented_image_database, uint8_t **out_image_database_raw_bytes, int64_t *out_image_database_raw_bytes_size)
void ArAugmentedImage_getExtentZ(const ArSession *session, const ArAugmentedImage *augmented_image, float *out_extent_z)
void ArAugmentedImage_getExtentX(const ArSession *session, const ArAugmentedImage *augmented_image, float *out_extent_x)
void ArAugmentedImage_acquireName(const ArSession *session, const ArAugmentedImage *augmented_image, char **out_augmented_image_name)
struct ArAugmentedImage_ ArAugmentedImage
void ArAugmentedImage_getCenterPose(const ArSession *session, const ArAugmentedImage *augmented_image, ArPose *out_pose)
void ArAugmentedImage_getIndex(const ArSession *session, const ArAugmentedImage *augmented_image, int32_t *out_index)
void ArCamera_getPose(const ArSession *session, const ArCamera *camera, ArPose *out_pose)
struct ArCamera_ ArCamera
void ArCamera_getTrackingState(const ArSession *session, const ArCamera *camera, ArTrackingState *out_tracking_state)
void ArCamera_getViewMatrix(const ArSession *session, const ArCamera *camera, float *out_col_major_4x4)
void ArCamera_getProjectionMatrix(const ArSession *session, const ArCamera *camera, float near, float far, float *dest_col_major_4x4)
void ArCamera_release(ArCamera *camera)
void ArCamera_getDisplayOrientedPose(const ArSession *session, const ArCamera *camera, ArPose *out_pose)
void ArConfig_getCloudAnchorMode(const ArSession *session, const ArConfig *config, ArCloudAnchorMode *out_cloud_anchor_mode)
Gets the current cloud anchor mode from the ArConfig.
void ArConfig_setUpdateMode(const ArSession *session, ArConfig *config, ArUpdateMode update_mode)
void ArConfig_destroy(ArConfig *config)
Releases memory used by the provided configuration object.
void ArConfig_getAugmentedImageDatabase(const ArSession *session, const ArConfig *config, ArAugmentedImageDatabase *out_augmented_image_database)
void ArConfig_setAugmentedImageDatabase(const ArSession *session, ArConfig *config, const ArAugmentedImageDatabase *augmented_image_database)
struct ArConfig_ ArConfig
void ArConfig_setCloudAnchorMode(const ArSession *session, ArConfig *config, ArCloudAnchorMode cloud_anchor_mode)
void ArConfig_setPlaneFindingMode(const ArSession *session, ArConfig *config, ArPlaneFindingMode plane_finding_mode)
void ArConfig_setLightEstimationMode(const ArSession *session, ArConfig *config, ArLightEstimationMode light_estimation_mode)
void ArConfig_getPlaneFindingMode(const ArSession *session, const ArConfig *config, ArPlaneFindingMode *plane_finding_mode)
void ArConfig_create(const ArSession *session, ArConfig **out_config)
void ArConfig_getLightEstimationMode(const ArSession *session, const ArConfig *config, ArLightEstimationMode *light_estimation_mode)
void ArConfig_getUpdateMode(const ArSession *session, const ArConfig *config, ArUpdateMode *update_mode)
void ArFrame_transformDisplayUvCoords(const ArSession *session, const ArFrame *frame, int32_t num_elements, const float *uvs_in, float *uvs_out)
void ArFrame_getTimestamp(const ArSession *session, const ArFrame *frame, int64_t *out_timestamp_ns)
void ArFrame_getUpdatedAnchors(const ArSession *session, const ArFrame *frame, ArAnchorList *out_anchor_list)
void ArFrame_getLightEstimate(const ArSession *session, const ArFrame *frame, ArLightEstimate *out_light_estimate)
ArStatus ArFrame_acquireImageMetadata(const ArSession *session, const ArFrame *frame, ArImageMetadata **out_metadata)
void ArFrame_getDisplayGeometryChanged(const ArSession *session, const ArFrame *frame, int32_t *out_geometry_changed)
void ArFrame_acquireCamera(const ArSession *session, const ArFrame *frame, ArCamera **out_camera)
ArStatus ArFrame_acquirePointCloud(const ArSession *session, const ArFrame *frame, ArPointCloud **out_point_cloud)
void ArFrame_hitTest(const ArSession *session, const ArFrame *frame, float pixel_x, float pixel_y, ArHitResultList *hit_result_list)
void ArFrame_create(const ArSession *session, ArFrame **out_frame)
void ArFrame_getUpdatedTrackables(const ArSession *session, const ArFrame *frame, ArTrackableType filter_type, ArTrackableList *out_trackable_list)
void ArFrame_destroy(ArFrame *frame)
Releases an ArFrame and any references it holds.
void ArHitResultList_destroy(ArHitResultList *hit_result_list)
void ArHitResultList_getSize(const ArSession *session, const ArHitResultList *hit_result_list, int32_t *out_size)
Retrieves the number of hit results in this list.
void ArHitResult_destroy(ArHitResult *hit_result)
void ArHitResult_acquireTrackable(const ArSession *session, const ArHitResult *hit_result, ArTrackable **out_trackable)
void ArHitResult_getDistance(const ArSession *session, const ArHitResult *hit_result, float *out_distance)
Returns the distance from the camera to the hit location, in meters.
void ArHitResultList_create(const ArSession *session, ArHitResultList **out_hit_result_list)
Creates a hit result list object.
void ArHitResultList_getItem(const ArSession *session, const ArHitResultList *hit_result_list, int32_t index, ArHitResult *out_hit_result)
struct ArHitResult_ ArHitResult
struct ArHitResultList_ ArHitResultList
void ArHitResult_create(const ArSession *session, ArHitResult **out_hit_result)
Allocates an empty hit result object.
ArStatus ArHitResult_acquireNewAnchor(ArSession *session, ArHitResult *hit_result, ArAnchor **out_anchor)
void ArHitResult_getHitPose(const ArSession *session, const ArHitResult *hit_result, ArPose *out_pose)
void ArImageMetadata_getNdkCameraMetadata(const ArSession *session, const ArImageMetadata *image_metadata, const ACameraMetadata **out_ndk_metadata)
void ArImageMetadata_release(ArImageMetadata *metadata)
void ArImage_getNdkImage(const ArImage *image, const AImage **out_ndk_image)
Converts an ArImage object to an Android NDK AImage object.
struct ArImageMetadata_ ArImageMetadata
ArStatus ArFrame_acquireCameraImage(ArSession *session, ArFrame *frame, ArImage **out_image)
void ArImage_release(ArImage *image)
Releases an instance of ArImage returned by ArFrame_acquireCameraImage().
void ArLightEstimate_create(const ArSession *session, ArLightEstimate **out_light_estimate)
Allocates a light estimate object.
void ArLightEstimate_destroy(ArLightEstimate *light_estimate)
Releases the provided light estimate object.
void ArLightEstimate_getPixelIntensity(const ArSession *session, const ArLightEstimate *light_estimate, float *out_pixel_intensity)
struct ArLightEstimate_ ArLightEstimate
void ArLightEstimate_getColorCorrection(const ArSession *session, const ArLightEstimate *light_estimate, float *out_color_correction_4)
void ArLightEstimate_getState(const ArSession *session, const ArLightEstimate *light_estimate, ArLightEstimateState *out_light_estimate_state)
void ArPlane_getPolygon(const ArSession *session, const ArPlane *plane, float *out_polygon_xz)
void ArPlane_acquireSubsumedBy(const ArSession *session, const ArPlane *plane, ArPlane **out_subsumed_by)
void ArPlane_isPoseInPolygon(const ArSession *session, const ArPlane *plane, const ArPose *pose, int32_t *out_pose_in_polygon)
void ArPlane_getPolygonSize(const ArSession *session, const ArPlane *plane, int32_t *out_polygon_size)
void ArPlane_getExtentX(const ArSession *session, const ArPlane *plane, float *out_extent_x)
void ArPlane_getCenterPose(const ArSession *session, const ArPlane *plane, ArPose *out_pose)
void ArPlane_getExtentZ(const ArSession *session, const ArPlane *plane, float *out_extent_z)
void ArPlane_isPoseInExtents(const ArSession *session, const ArPlane *plane, const ArPose *pose, int32_t *out_pose_in_extents)
void ArPlane_getType(const ArSession *session, const ArPlane *plane, ArPlaneType *out_plane_type)
Retrieves the type (orientation) of the plane. See ::ArPlaneType.
void ArPoint_getPose(const ArSession *session, const ArPoint *point, ArPose *out_pose)
void ArPoint_getOrientationMode(const ArSession *session, const ArPoint *point, ArPointOrientationMode *out_orientation_mode)
void ArPointCloud_getData(const ArSession *session, const ArPointCloud *point_cloud, const float **out_point_cloud_data)
void ArPointCloud_release(ArPointCloud *point_cloud)
void ArPointCloud_getTimestamp(const ArSession *session, const ArPointCloud *point_cloud, int64_t *out_timestamp_ns)
void ArPointCloud_getNumberOfPoints(const ArSession *session, const ArPointCloud *point_cloud, int32_t *out_number_of_points)
struct ArPointCloud_ ArPointCloud
void ArPose_getPoseRaw(const ArSession *session, const ArPose *pose, float *out_pose_raw)
void ArPose_create(const ArSession *session, const float *pose_raw, ArPose **out_pose)
void ArPose_destroy(ArPose *pose)
Releases memory used by a pose object.
void ArPose_getMatrix(const ArSession *session, const ArPose *pose, float *out_matrix_col_major_4x4)
void ArSession_setDisplayGeometry(ArSession *session, int32_t rotation, int32_t width, int32_t height)
ArStatus ArSession_hostAndAcquireNewCloudAnchor(ArSession *session, const ArAnchor *anchor, ArAnchor **out_cloud_anchor)
void ArSession_getAllTrackables(const ArSession *session, ArTrackableType filter_type, ArTrackableList *out_trackable_list)
ArStatus ArSession_create(void *env, void *application_context, ArSession **out_session_pointer)
ArStatus ArSession_configure(ArSession *session, const ArConfig *config)
ArStatus ArSession_acquireNewAnchor(ArSession *session, const ArPose *pose, ArAnchor **out_anchor)
void ArSession_destroy(ArSession *session)
Releases resources used by an ARCore session.
void ArSession_setCameraTextureName(ArSession *session, uint32_t texture_id)
void ArSession_getAllAnchors(const ArSession *session, ArAnchorList *out_anchor_list)
struct ArSession_ ArSession
ArStatus ArSession_checkSupported(const ArSession *session, const ArConfig *config) AR_DEPRECATED("deprecated in release 1.2.0. Please see function documentation")
ArStatus ArSession_update(ArSession *session, ArFrame *out_frame)
ArStatus ArSession_resume(ArSession *session)
ArStatus ArSession_pause(ArSession *session)
ArStatus ArSession_resolveAndAcquireNewCloudAnchor(ArSession *session, const char *cloud_anchor_id, ArAnchor **out_cloud_anchor)
void ArTrackable_getAnchors(const ArSession *session, const ArTrackable *trackable, ArAnchorList *out_anchor_list)
void ArTrackableList_destroy(ArTrackableList *trackable_list)
void ArTrackableList_acquireItem(const ArSession *session, const ArTrackableList *trackable_list, int32_t index, ArTrackable **out_trackable)
struct ArTrackable_ ArTrackable
Trackable base type (reference type, long-lived).
void ArTrackable_getTrackingState(const ArSession *session, const ArTrackable *trackable, ArTrackingState *out_tracking_state)
void ArTrackableList_create(const ArSession *session, ArTrackableList **out_trackable_list)
Creates a trackable list object.
void ArTrackable_getType(const ArSession *session, const ArTrackable *trackable, ArTrackableType *out_trackable_type)
Retrieves the type of the trackable. See ::ArTrackableType for valid types.
struct ArTrackableList_ ArTrackableList
ArStatus ArTrackable_acquireNewAnchor(ArSession *session, ArTrackable *trackable, ArPose *pose, ArAnchor **out_anchor)
void ArTrackableList_getSize(const ArSession *session, const ArTrackableList *trackable_list, int32_t *out_size)
Retrieves the number of trackables in this list.
void ArTrackable_release(ArTrackable *trackable)