vrt_canvas.h
70.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
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
814
815
816
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
869
870
871
872
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
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
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
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
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
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
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
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
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
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
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
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2008
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* vrt_canvas.h
*
* Project:
* --------
* Venus Rendering Task
*
* Description:
* ------------
* Canvas UI / Animation Engine API
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
*
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef __VRT_CANVAS_H__
#define __VRT_CANVAS_H__
#ifdef __cplusplus
extern "C"
{
#endif
/*****************************************************************************
* Include
*****************************************************************************/
#include "vrt_datatype.h"
#include "vrt_system.h"
/*****************************************************************************
* Define
*****************************************************************************/
/* Default timeline duration time */
#define VRT_TIMELINE_DEFAULT_DUR_TIME 250
/* Infinite timeline repeat count */
#define VRT_TIMELINE_REPEAT_INFINITE 0xFFFFFFFF
/*****************************************************************************
* Typedef
*****************************************************************************/
/* Canvas states */
typedef enum
{
/* Unknown state. Canvas API is not initialized */
VRT_CANVAS_STATE_UNKNOWN = 0,
/* Shutdown state. VRT is inactive */
VRT_CANVAS_STATE_SHUTDOWN,
/* Operate state. VRT is active and rendering */
VRT_CANVAS_STATE_OPERATE,
/* Susped state. VRT is active, but is not rendering */
VRT_CANVAS_STATE_SUSPEND,
/* End of enumerate */
VRT_CANVAS_STATE_END_OF_ENUM
} vrt_canvas_staue_enum;
/* Predefined timing function ID */
typedef enum
{
/* Linear timing function. Default value */
VRT_TIMING_FUNC_ID_LINEAR = 0,
/* Ease timing function. */
VRT_TIMING_FUNC_ID_EASE,
/* Ease-in timing function. */
VRT_TIMING_FUNC_ID_EASE_IN,
/* Ease-out timing function. */
VRT_TIMING_FUNC_ID_EASE_OUT,
/* Ease-in ease-out timing function. */
VRT_TIMING_FUNC_ID_EASE_IN_EASE_OUT,
/* Damping out timing function. */
VRT_TIMING_FUNC_ID_DAMPING_OUT,
/* End of enumerate */
VRT_TIMING_FUNC_ID_END_OF_ENUM
} vrt_timing_func_id_enum;
/* Predefined interpolate function ID */
typedef enum
{
/* Step interpolate function. Default value */
VRT_INTERPOLATE_FUNC_ID_STEP = 0,
/* Step interpolate function. */
VRT_INTERPOLATE_FUNC_ID_LINEAR,
/* Linear interpolate function. */
VRT_INTERPOLATE_FUNC_ID_SLERP,
/* Slerp interpolate function. */
VRT_INTERPOLATE_FUNC_ID_SPLINE,
/* Spline interpolate function. */
VRT_INTERPOLATE_FUNC_ID_SQUAD,
/* Squad of enumerate */
VRT_INTERPOLATE_FUNC_ID_END_OF_ENUM
} vrt_interpolate_func_id_enum;
/* The action after vrt_frame_commit_end() */
typedef enum
{
VRT_FRAME_COMMIT_ACTION_KEEP = 0,
VRT_FRAME_COMMIT_ACTION_FORCE_SUSPEND,
VRT_FRAME_COMMIT_ACTION_FORCE_RESUME,
VRT_FRAME_COMMIT_ACTION_END_OF_ENUM
} vrt_frame_commit_action_enum;
/* The blocking type after vrt_frame_commit_end() */
typedef enum
{
VRT_FRAME_COMMIT_BLOCK_TYPE_NONE = 0,
VRT_FRAME_COMMIT_BLOCK_TYPE_RENDER_START,
VRT_FRAME_COMMIT_BLOCK_TYPE_RENDER_END,
VRT_FRAME_COMMIT_BLOCK_TYPE_END_OF_ENUM
} vrt_frame_commit_block_type_enum;
/*****************************************************************************
* Global Function
*****************************************************************************/
/*
* Canvas engine functions
*/
/*****************************************************************************
* FUNCTION
* vrt_canvas_init
* DESCRIPTION
* Initial Canvas API at start up.
* Canvas API state will become VRT_CANVAS_STATE_SHUTDOWN.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_init(vrt_mem_provider_handle provider);
/*****************************************************************************
* FUNCTION
* vrt_canvas_get_state
* DESCRIPTION
* Return the state of Canvas API
* PARAMETERS
* void
* RETURNS
* The state of Canvas API
* SEE ALSO
* vrt_canvas_staue_enum
*****************************************************************************/
extern vrt_canvas_staue_enum vrt_canvas_get_state(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_wait_rendering_complete
* DESCRIPTION
* Wait for rendering complete
* PARAMETERS
* void
* RETURNS
* void
* SEE ALSO
* vrt_canvas_staue_enum
*****************************************************************************/
extern void vrt_canvas_wait_rendering_complete(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_suspend
* DESCRIPTION
* Suspend Canvas API. Canvas API state will become VRT_CANVAS_STATE_SUSPEND.
* It has no effect if Canvas API is shutdown.
* PARAMETERS
* void
* RETURNS
* void
* SEE ALSO
* vrt_canvas_staue_enum
*****************************************************************************/
extern void vrt_canvas_suspend(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_resume
* DESCRIPTION
* Resume Canvas API. Canvas API state will become VRT_CANVAS_STATE_OPERATE.
* It has no effect if Canvas API is shutdown.
* PARAMETERS
* void
* RETURNS
* void
* SEE ALSO
* vrt_canvas_staue_enum
*****************************************************************************/
extern void vrt_canvas_resume(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_entry
* DESCRIPTION
* Start Canvas API to entry a VRT screen.
* Canvas API state will become VRT_CANVAS_STATE_SUSPEND.
* PARAMETERS
* param : [IN] Pointer to vrt_canvas_entry_param_struct
* RETURNS
* void
* SEE ALSO
* vrt_canvas_staue_enum
*****************************************************************************/
extern void vrt_canvas_entry(const vrt_canvas_entry_param_struct *param);
/*****************************************************************************
* FUNCTION
* vrt_canvas_entered
* DESCRIPTION
* Canvas API is ready to go.
* Must be called between vrt_canvas_entry() and vrt_canvas_leave().
* PARAMETERS
* void
* RETURNS
* void
* SEE ALSO
* vrt_canvas_entry(), vrt_canvas_leave()
*****************************************************************************/
extern void vrt_canvas_entered(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_leave
* DESCRIPTION
* Stop Canvas API to leave a VRT screen.
* Canvas API state will become VRT_CANVAS_STATE_SHUTDOWN.
* PARAMETERS
* param : [IN] Pointer to vrt_canvas_entry_param_struct
* RETURNS
* void
* SEE ALSO
* vrt_canvas_staue_enum
*****************************************************************************/
extern void vrt_canvas_leave(const vrt_canvas_leave_param_struct *param);
/*****************************************************************************
* FUNCTION
* vrt_canvas_power_off
* DESCRIPTION
* Ask Canvas API to enter power off mode, ex. backlight off
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_power_off(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_power_on
* DESCRIPTION
* Ask Canvas API to enter power on mode, ex. backlight off
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_power_on(void);
#ifdef __MMI_REDUCED_UI_BUFFER__
/*****************************************************************************
* FUNCTION
* vrt_canvas_switch_render_buffer_mode
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_switch_render_buffer_mode(void);
#endif /* __MMI_REDUCED_UI_BUFFER__ */
/*****************************************************************************
* FUNCTION
* vrt_canvas_deinit_render_buffers
* DESCRIPTION
* Ask Canvas API to deinitialize blt layers and release memory
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_deinit_render_buffers(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_init_render_buffers
* DESCRIPTION
* Ask Canvas API to initialize blt layers
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_init_render_buffers(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_pause_img_anim
* DESCRIPTION
* Pause all animation images in the screen
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_pause_img_anim(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_resume_img_anim
* DESCRIPTION
* Resume all animation images in the screen
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_resume_img_anim(void);
/*
* Frame create functions
*/
/*****************************************************************************
* FUNCTION
* vrt_frame_create
* DESCRIPTION
* Create a new VRT frame handle
* PARAMETERS
* user_data : [IN] The user data to attache on the VRT frame handle (for debug)
* RETURNS
* The handle of new VRT frame
*****************************************************************************/
extern vrt_frame_handle vrt_frame_create(void *user_data);
/*****************************************************************************
* FUNCTION
* vrt_frame_release
* DESCRIPTION
* Release a VRT frame handle
* PARAMETERS
* frame_handle : [IN] The frame handle to release
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_release(vrt_frame_handle frame_handle);
/*
* Frame animatable property functions
*/
/*****************************************************************************
* FUNCTION
* vrt_frame_get_property_type
* DESCRIPTION
* Return the type ID of the given frame property ID
* PARAMETERS
* property_id : [IN] The frame property ID to get
* RETURNS
* The type ID of the given frame property ID
*****************************************************************************/
extern vrt_type_id_enum vrt_frame_get_property_type(
vrt_object_property_id_enum property_id);
/*****************************************************************************
* FUNCTION
* vrt_frame_init_property
* DESCRIPTION
* Return the visual property structure of the given VRT frame handle
* Modify the structure to initial a new VRT frame.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to initialize
* RETURNS
* The visual property structure
*****************************************************************************/
extern vrt_frame_visual_property_struct *vrt_frame_init_property(
vrt_frame_handle frame_handle);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_3d_dirty
* DESCRIPTION
* Mark there is any 3d property dirty which should case frame content dirty.
* PARAMETERS
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_3d_dirty(void);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_need_commit
* DESCRIPTION
* Set canvas engine need to process commit later.
* PARAMETERS
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_need_commit(void);
/*****************************************************************************
* FUNCTION
* vrt_object_add_property_timeline
* DESCRIPTION
* description
* PARAMETERS
* object_handle : [IN] The VRT object handle to add timeline
* property_id : [IN] The property ID to add
* to_value : [IN] Pointer to to-value, the type should be same as the type of property_id
* value_size : [IN] the to-value size, the size should be same as the size of property_id
* dur_time : [IN] Duration time to add
* timing_callback : [IN] The timing function callback to add, can be NULL for default
* RETURNS
* void
*****************************************************************************/
extern void vrt_object_add_property_timeline(
vrt_object_handle object_handle,
vrt_object_property_id_enum property_id,
const void *from_value,
const void *to_value,
vrt_u32 value_size,
vrt_msec_type dur_time,
const vrt_timeline_timing_callback_struct *timing_callback);
/*****************************************************************************
* FUNCTION
* vrt_object_remove_property_timeline
* DESCRIPTION
* remove preperty timeline of the object
* PARAMETERS
* object_handle : [IN] The VRT object handle to remove timeline
* property_id : [IN] The property ID to remove
* RETURNS
* void
*****************************************************************************/
extern void vrt_object_remove_property_timeline(
vrt_object_handle object_handle,
vrt_object_property_id_enum property_id);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_filter
* DESCRIPTION
* Set the filter function callback on a VRT frame.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to add
* filter : [IN] The filter function callback to add, can be NULL
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_filter(
vrt_frame_handle frame_handle,
const void *filter);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_owner_draw
* DESCRIPTION
* Sets the frame owner draw property.
* PARAMETERS
* frame_handle [IN] frame handle to set
* owner draw [IN] owner draw struct
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_owner_draw(
vrt_frame_handle frame_handle,
const void *owner_draw);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_material
* DESCRIPTION
* Sets the frame material.
* PARAMETERS
* frame_handle [IN] frame handle to set
* material [IN] material handle
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_material(
vrt_frame_handle frame_handle,
vrt_object_handle material);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_world
* DESCRIPTION
* Sets world to the frame.
* PARAMETERS
* frame_handle [IN] frame handle to set
* world [IN] world handle
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_world(
vrt_frame_handle frame_handle,
vrt_object_handle world);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_property_effect_callback
* DESCRIPTION
* Set the frame property effect function callback on a VRT frame.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to add
* watch_frame_handle : [IN] The watch VRT frame handle
* callback : [IN] The frame property effect function callback to add, can be NULL
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_property_effect_callback(
vrt_frame_handle frame_handle,
vrt_frame_handle watch_frame_handle,
const vrt_frame_property_effect_callback_struct *callback);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_property_monitor_callback
* DESCRIPTION
* Set the frame property monitor function callback on a VRT frame.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to add
* callback : [IN] The frame property monitor function callback to add, can be NULL
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_property_monitor_callback(
vrt_frame_handle frame_handle,
const vrt_frame_property_monitor_callback_struct *callback);
/*****************************************************************************
* FUNCTION
* vrt_object_force_set_property_value
* DESCRIPTION
* Force set a property value of a VRT animatable.
* It may suspend and resume VRT if it is rendering.
* PARAMETERS
* vrt_animatable_handle : [IN] The VRT animatable handle to set
* vrt_object_property_id_enum : [IN] The property ID to set
* value_buf : [IN] pointer to the value buffer
* value_buf_size : [IN] The buffer size, must be same as the size of given frame property ID
* RETURNS
* void
*****************************************************************************/
extern void vrt_object_force_set_property_value(
vrt_animatable_handle object_handle,
vrt_object_property_id_enum property_id,
const void *value_buf,
vrt_u32 value_buf_size);
/*****************************************************************************
* FUNCTION
* vrt_frame_force_get_property_value
* DESCRIPTION
* Force get a property value of a VRT frame.
* It may suspend and resume VRT if it is rendering.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to get
* property_id : [IN] The frame property ID to get
* value_buf : [OUT] pointer to the value buffer
* value_buf_size : [IN] The buffer size, must be same as the size of given frame property ID
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_force_get_property_value(
vrt_frame_handle frame_handle,
vrt_object_property_id_enum property_id,
void *value_buf,
vrt_u32 value_buf_size);
/*****************************************************************************
* FUNCTION
* vrt_frame_get_cache_buffer
* DESCRIPTION
* Return the cache frame buffer of the given VRT frame handle.
* Only can be used in VRT callback functions.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to get
* RETURNS
* Pointer to the cache frame buffer of the given VRT frame handle
*****************************************************************************/
extern vrt_u8 *vrt_frame_get_cache_buffer(vrt_frame_handle frame_handle);
/*****************************************************************************
* FUNCTION
* vrt_frame_lock_cache_buffer
* DESCRIPTION
* Lock and return the cache frame buffer of the given VRT frame handle.
* Only can be used in VRT callback functions.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to lock
* lock_mode : [IN] The mode to lock cache
* RETURNS
* Pointer to the cache frame buffer of the given VRT frame handle.
* Return NULL if the frame is not cached or the memory for buffer is insufficient.
*****************************************************************************/
extern vrt_u8 *vrt_frame_lock_cache_buffer(vrt_frame_handle frame_handle, vrt_cache_lock_mode_enum lock_mode);
/*****************************************************************************
* FUNCTION
* vrt_frame_unlock_cache_buffer
* DESCRIPTION
* Unlock the cache frame buffer of the given VRT frame handle.
* Only can be used in VRT callback functions.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to unlock
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_unlock_cache_buffer(vrt_frame_handle frame_handle);
/*****************************************************************************
* FUNCTION
* vrt_frame_get_has_animation
* DESCRIPTION
* get a VRT frame whether has play a animation.
* It may suspend and resume VRT if it is rendering.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to initialize
* RETURNS
* vrt_bool, return ture if has play a animation, otherwise return false
*****************************************************************************/
extern vrt_bool vrt_frame_get_has_animation(vrt_frame_handle frame_handle);
/*
* Frame non-animatable (setting) property functions
*/
/*****************************************************************************
* FUNCTION
* vrt_frame_set_opaque_mode
* DESCRIPTION
* Set the opaque mode to the given VRT frame handle.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* opaque_mode : [IN] The opaque mode to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_opaque_mode(vrt_frame_handle frame_handle, vrt_frame_opaque_mode_enum opaque_mode);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_quality
* DESCRIPTION
* Set the quality type to the given VRT frame handle.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* quality : [IN] The quality type to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_quality(vrt_frame_handle frame_handle, vrt_render_quality_enum quality);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_is_cached
* DESCRIPTION
* Set the cache switch to the given VRT frame handle.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* cached : [IN] The cache switch to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_is_cached(vrt_frame_handle frame_handle, vrt_bool cached);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_cache_mode
* DESCRIPTION
* Set the cache mode to the given VRT frame handle.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* mode : [IN] The cache mode to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_cache_mode(vrt_frame_handle frame_handle, vrt_cache_mode_enum mode);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_hints
* DESCRIPTION
* Set the frame hints to the given VRT frame handle.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* hints : [IN] The frame hints to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_hints(vrt_frame_handle frame_handle, vrt_frame_hints_enum hints);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_culling_type
* DESCRIPTION
* Set the culling type to the given VRT frame handle.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* culling_type : [IN] The culling type to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_culling_type(vrt_frame_handle frame_handle, vrt_frame_culling_type_enum culling_type);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_is_z_sort_child
* DESCRIPTION
* Set the z-sort switch to the given VRT frame handle.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* is_z_sort_child : [IN] The z-sort switch to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_is_z_sort_child(vrt_frame_handle frame_handle, vrt_bool is_z_sort_child);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_content_dirty
* DESCRIPTION
* Set the VRT frame content is invalidate and need to redraw.
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_content_dirty(vrt_frame_handle frame_handle);
/*****************************************************************************
* FUNCTION
* vrt_frame_play_img_content
* DESCRIPTION
* set the parameter of play animation image if frame_handle has animation image content
* It will take effect after next commit.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* play_img_content : [IN] The parameter of play animation image
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_play_img_content(vrt_frame_handle frame_handle, vrt_frame_play_img_content_struct *play_img_content);
/*****************************************************************************
* FUNCTION
* vrt_frame_force_swap_img_buf
* DESCRIPTION
*
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_force_swap_img_buf(
vrt_frame_handle frame_handle,
vrt_u32 cmd_index,
const vrt_image_buffer_struct *img_buf);
/*****************************************************************************
* FUNCTION
* vrt_frame_set_layer_frame
* DESCRIPTION
* Sets the layer handle.
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set
* layer_handle : [IN] layer handle
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_set_layer_frame(vrt_frame_handle frame_handle, vrt_u32 layer_handle);
/*
* Timeline functions
*/
/*****************************************************************************
* FUNCTION
* vrt_timeline_get_predefined_timing_func
* DESCRIPTION
* Return the predefined timing function with given ID
* PARAMETERS
* timing_func_id : [IN] The timing function ID to get
* RETURNS
* Pointer to the predefined timing function with given ID
*****************************************************************************/
extern const vrt_timeline_timing_callback_struct *vrt_timeline_get_predefined_timing_func(vrt_timing_func_id_enum timing_func_id);
/*****************************************************************************
* FUNCTION
* vrt_timeline_get_predefined_interpolate_func
* DESCRIPTION
* Return the predefined interpolation function with given ID
* PARAMETERS
* interpolation_func_id : [IN] The interpolation function ID to get
* RETURNS
* Pointer to the predefined interpolation function with given ID
*****************************************************************************/
extern vrt_timeline_interpolation_funcptr_type vrt_timeline_get_predefined_interpolate_func(vrt_interpolate_func_id_enum interpolation_func_id);
/*****************************************************************************
* FUNCTION
* vrt_frame_add_timeline
* DESCRIPTION
* Add a new VRT timeline a on the given VRT frame handle
* PARAMETERS
* frame_handle : [IN] The VRT frame to add
* property_id : [IN] The frame property ID to add
* user_data : [IN] The user data to attache on the new VRT timeline (for debug)
* RETURNS
* The handle of the new VRT timeline
*****************************************************************************/
extern vrt_timeline_handle vrt_frame_add_timeline(
vrt_frame_handle frame_handle,
vrt_object_property_id_enum property_id,
vrt_bool has_from_to_value,
void *user_data);
/*****************************************************************************
* FUNCTION
* vrt_object_get_property_type
* DESCRIPTION
* Return the type ID of the given object property ID
* PARAMETERS
* property_id : [IN] The object property ID to get
* RETURNS
* The type ID of the given object property ID
*****************************************************************************/
extern vrt_type_id_enum vrt_object_get_property_type(
vrt_object_property_id_enum property_id);
/*****************************************************************************
* FUNCTION
* vrt_object_add_timeline
* DESCRIPTION
* Add a new VRT timeline a on the given VRT object handle
* PARAMETERS
* object_handle : [IN] The VRT object to add
* property_id : [IN] The object property ID to add
* user_data : [IN] The user data to attache on the new VRT timeline (for debug)
* RETURNS
* The handle of the new VRT timeline
*****************************************************************************/
extern vrt_timeline_handle vrt_object_add_timeline(
vrt_object_handle object_handle,
vrt_object_property_id_enum property_id,
vrt_bool has_from_to_value,
void *user_data);
/*****************************************************************************
* FUNCTION
* vrt_object_remove_timeline
* DESCRIPTION
* Remove the given VRT timleine from its VRT object.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to remove
* RETURNS
* void
*****************************************************************************/
extern void vrt_object_remove_timeline(vrt_timeline_handle timeline_handle);
/*****************************************************************************
* FUNCTION
* vrt_timeline_set_value
* DESCRIPTION
* Set from-value and to-value to the given timeline.
* Can only called before the timeline committed.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to set
* from_value : [IN] Pointer to the from-value to set, can be NULL
* to_value : [IN] Pointer to the to-value to set
* by_value : [IN] Pointer to the by-value to set
* value_size : [IN] The size of values
* RETURNS
* void
*****************************************************************************/
extern void vrt_timeline_set_value(vrt_timeline_handle timeline_handle, const void *from_value, const void *to_value, const void *by_value, vrt_u32 value_size);
/*****************************************************************************
* FUNCTION
* vrt_timeline_set_time
* DESCRIPTION
* Set start-time and duration-time to the given timeline.
* Can only called before the timeline committed.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to set
* start_time : [IN] Start-time to set
* dur_time : [IN] Duration-time to set
* update_dur : [IN] Update-duration-time to set
* is_rel_start_time : [IN] Whatever the given start-time is relative time or not
* RETURNS
* void
*****************************************************************************/
extern void vrt_timeline_set_time(vrt_timeline_handle timeline_handle, vrt_msec_type start_time, vrt_msec_type dur_time, vrt_msec_type update_duration, vrt_bool is_rel_start_time);
/*****************************************************************************
* FUNCTION
* vrt_timeline_set_time
* DESCRIPTION
* Set repeat duration time and repeat count to the given timeline.
* Can only called before the timeline committed.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to set
* repeat_duration : [IN] Repeat duration time to set
* repeat_count : [IN] Duration count to set
* auto_reversed : [IN] Whatever auto reversed
* RETURNS
* void
*****************************************************************************/
extern void vrt_timeline_set_repeat(vrt_timeline_handle timeline_handle, vrt_msec_type repeat_duration, vrt_u32 repeat_count, vrt_bool auto_reversed);
/*****************************************************************************
* FUNCTION
* vrt_timeline_set_timing_func
* DESCRIPTION
* Set timing function to the given timeline with ID
* Can only called before the timeline committed.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to set
* timing_func_id : [IN] Timing function ID to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_timeline_set_timing_func(vrt_timeline_handle timeline_handle, vrt_timing_func_id_enum timing_func_id);
/*****************************************************************************
* FUNCTION
* vrt_timeline_set_besizer_timing_func
* DESCRIPTION
* Set timing function to the given timeline with besizer parameters
* Can only called before the timeline committed.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to set
* p1_x : [IN] x coordinate of the point 1
* p1_y : [IN] y coordinate of the point 1
* p2_x : [IN] x coordinate of the point 2
* p2_y : [IN] y coordinate of the point 2
* RETURNS
* void
*****************************************************************************/
extern void vrt_timeline_set_besizer_timing_func(vrt_timeline_handle timeline_handle, vrt_float p1_x, vrt_float p1_y, vrt_float p2_x, vrt_float p2_y);
/*****************************************************************************
* FUNCTION
* vrt_timeline_set_custom_timing_func
* DESCRIPTION
* Set timing function to the given timeline with custom timing function callback
* Can only called before the timeline committed.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to set
* callback : [IN] The custom timing function callback to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_timeline_set_custom_timing_func(vrt_timeline_handle timeline_handle, const vrt_timeline_timing_callback_struct *callback);
/*****************************************************************************
* FUNCTION
* vrt_timeline_set_custom_interpolation_func
* DESCRIPTION
* Set custom interpolation function callback to the given timeline
* Can only called before the timeline committed.
* PARAMETERS
* timeline_handle : [IN] The VRT timeline handle to set
* callback : [IN] The custom interpolation function callback to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_timeline_set_custom_interpolation_func(vrt_timeline_handle timeline_handle, const vrt_timeline_interplation_callback_struct *callback);
/*
* Commit functions
*/
/*****************************************************************************
* FUNCTION
* vrt_frame_commit_beign
* DESCRIPTION
* Begin to suspend and commit all scene graph
* PARAMETERS
* current_time : [IN] The time of this commit
* update_canvas : [IN] Whatever need to update scene graph
* RETURNS
* void
*****************************************************************************/
extern void vrt_frame_commit_beign(vrt_msec_type current_time, vrt_bool update_canvas, vrt_frame_commit_action_enum action, vrt_frame_commit_block_type_enum block_type);
/*****************************************************************************
* FUNCTION
* vrt_frame_commit_end
* DESCRIPTION
* End to suspend and commit all scene graph
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern vrt_bool vrt_frame_commit_end(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_copy_draw_cmds
* DESCRIPTION
* copy the draw commands of a particulat frame
* PARAMETERS
* frame handle
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_copy_draw_cmds(vrt_frame_handle handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_copy_subtree
* DESCRIPTION
* copy draw commands of a subtree
* PARAMETERS
* frame handle
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_copy_subtree(vrt_frame_handle handle);
/*****************************************************************************
* FUNCTION
* vrt_frame_get_commit_counter
* DESCRIPTION
* Return the commit counter.
* The value can check if any commit between two this function calls.
* PARAMETERS
* void
* RETURNS
* The counter
*****************************************************************************/
extern vrt_u32 vrt_frame_get_commit_counter(void);
/*
* Canvas draw context functions
*/
/*****************************************************************************
* FUNCTION
* vrt_canvas_begin
* DESCRIPTION
* Prepare a new draw context to draw.
* All draw command function should be called between vrt_canvas_begin and vrt_canvas_end.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_begin(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_begin
* DESCRIPTION
* End to prepare a new draw context to draw.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_end(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_comment
* DESCRIPTION
* Add a comment to draw context
* PARAMETERS
* string : [IN] The comment to add
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_comment(const vrt_char *string);
/*****************************************************************************
* FUNCTION
* vrt_canvas_push_and_set_active_frame
* DESCRIPTION
* Push the current VRT frame and set a new active VRT frame to draw
* PARAMETERS
* frame_handle : [IN] The VRT frame handle to set active
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_push_and_set_active_frame(vrt_frame_handle frame_handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_pop_and_restore_frame
* DESCRIPTION
* Pop the VRT frame handle in stack and restore to be active
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_pop_and_restore_frame(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_font
* DESCRIPTION
* Set font to draw context
* PARAMETERS
* font : [IN] The font to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_font(const vrt_font_struct *font);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_ellipsis
* DESCRIPTION
* Set the ellipsis string to draw a truncated text
* PARAMETERS
* ellipsis : [IN] The ellipsis string to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_ellipsis(const vrt_wchar *ellipsis, vrt_bool is_dynamic_string);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_clip
* DESCRIPTION
* Set the clip rectangle to draw context
* PARAMETERS
* clip_rect : [IN] The clip rectangle to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_clip(const vrt_rect_struct *clip_rect);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_fill_color
* DESCRIPTION
* Set the fill color to draw context
* PARAMETERS
* color : [IN] The fill color to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_fill_color(vrt_color_type color);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_stroke_color
* DESCRIPTION
* Set the stroke color to draw context
* PARAMETERS
* color : [IN] The stroke color to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_stroke_color(vrt_color_type color);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_background_color
* DESCRIPTION
* Set the background color
* Background color is the color of region that is not covered by any frame.
* PARAMETERS
* color : [IN] The background color to set
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_background_color(vrt_color_type color);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_layer_frame_clear_color
* DESCRIPTION
* Set the layer frame clear color
* PARAMETERS
* color : [IN] clear color
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_layer_frame_clear_color(vrt_color_type color);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_fallback_image
* DESCRIPTION
* Set the frame fallback image
* PARAMETERS
* resId : [IN] resource id of fallback image
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_set_fallback_image(vrt_s32 resId);
/*****************************************************************************
* FUNCTION
* vrt_canvas_disable_freeze
* DESCRIPTION
* Set if disable VRT freezing display
* PARAMETERS
* is_disabled : [IN] If disable VRT freezing display
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_disable_freeze(vrt_bool is_disabled);
/*****************************************************************************
* FUNCTION
* vrt_canvas_fill_rect
* DESCRIPTION
* Fill a rectangle with fill color
* PARAMETERS
* x : [IN] The x position of the rectangle
* y : [IN] The y position of the rectangle
* width : [IN] The width size of the rectangle
* height : [IN] The height size of the rectangle
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_fill_rect(vrt_s32 x, vrt_s32 y, vrt_s32 width, vrt_s32 height);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_pixel
* DESCRIPTION
* Draw a pixel with stroke color
* PARAMETERS
* x : [IN] The x position of the pixel
* y : [IN] The y position of the pixel
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_pixel(vrt_s32 x, vrt_s32 y);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_line
* DESCRIPTION
* Draw a line with stroke color
* PARAMETERS
* x1 : [IN] The x position of point 1
* y1 : [IN] The y position of point 1
* x2 : [IN] The x position of point 2
* y2 : [IN] The y position of point 2
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_line(vrt_s32 x1, vrt_s32 y1, vrt_s32 x2, vrt_s32 y2);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_rect
* DESCRIPTION
* Draw a rectangle with stroke color
* PARAMETERS
* rect : [IN] The rectangle position and size
* width : [IN] The width size of the rectangle
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_rect(const vrt_rect_struct *rect, vrt_s32 width);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_aa_line
* DESCRIPTION
* Draw a anti-aliasing line with stroke color
* PARAMETERS
* x1 : [IN] The x position of point 1
* y1 : [IN] The y position of point 1
* x2 : [IN] The x position of point 2
* y2 : [IN] The y position of point 2
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_aa_line(vrt_s32 x1, vrt_s32 y1, vrt_s32 x2, vrt_s32 y2);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_from_mem
* DESCRIPTION
* Draw an image from mem, with image resource 8-bytes header
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* image_ptr : [IN] Pointer to the image
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_from_mem(vrt_s32 x, vrt_s32 y, const void *image_ptr);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_from_res_id
* DESCRIPTION
* Draw an image from res id
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* res_id : [IN] Resource id
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_from_res_id(vrt_s32 x, vrt_s32 y, vrt_res_id res_id);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_from_file
* DESCRIPTION
* Draw an image from file
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* filename : [IN] The file name of the image
* info : [IN] The info of the image
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_from_file(vrt_s32 x, vrt_s32 y, const vrt_wchar *filename, const vrt_sys_image_info_struct *info);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_resized_image_from_mem
* DESCRIPTION
* Draw a resized image from mem, with image resource 8-bytes header
* PARAMETERS
* rect : [IN] The position and size to draw
* image_ptr : [IN] Pointer to the image
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_resized_image_from_mem(const vrt_rect_struct *rect, const void *image_ptr);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_resized_image_from_res_id
* DESCRIPTION
* Draw a resized image from res id
* PARAMETERS
* rect : [IN] The position and size to draw
* res_id : [IN] res_id
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_resized_image_from_res_id(const vrt_rect_struct *rect, vrt_res_id res_id);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_resized_image_from_file
* DESCRIPTION
* Draw a resized image from file
* PARAMETERS
* rect : [IN] The position and size to draw
* filename : [IN] The file name of the image
* info : [IN] The info of the image
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_resized_image_from_file(const vrt_rect_struct *rect, const vrt_wchar *filename, const vrt_sys_image_info_struct *info);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_content_from_mem
* DESCRIPTION
* Draw an image from memory, placement in the current frame bounds,
* with image resource 8-bytes header
* PARAMETERS
* image_ptr : [IN] Pointer to the image
* place_type : [IN] The placement type to draw
* image_size : [IN] the size of given image (must same as given image)
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_content_from_mem(const void *image_ptr, vrt_frame_content_placement_type_enum place_type, const vrt_size_struct *image_size);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_content_from_res_id
* DESCRIPTION
* Draw an image from res id, placement in the current frame bounds
* PARAMETERS
* res_id : [IN] Resource id
* place_type : [IN] The placement type to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_content_from_res_id(vrt_res_id res_id, vrt_frame_content_placement_type_enum place_type);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_content_from_file
* DESCRIPTION
* Draw an image from file, placement in the current frame bounds,
* PARAMETERS
* filename : [IN] The file name of the image
* place_type : [IN] The placement type to draw
* info : [IN] The info of the image
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_content_from_file(const vrt_wchar *filename, vrt_frame_content_placement_type_enum place_type, const vrt_sys_image_info_struct *info);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_content_from_layer
* DESCRIPTION
* Draw an image from a layer, placement in the current frame bounds,
* PARAMETERS
* gdi_handle : [IN] The GDI layer to draw
* place_type : [IN] The placement type to draw
* image_size : [IN] the size of given image (must same as given image)
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_content_from_layer(void *gdi_handle, vrt_frame_content_placement_type_enum place_type, const vrt_size_struct *image_size);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_text
* DESCRIPTION
* Draw a text
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* string : [IN] The text to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_text(vrt_s32 x, vrt_s32 y, const vrt_wchar *string, vrt_bool is_dynamic_string);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_text_truncated
* DESCRIPTION
* Draw a truncated text
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* string : [IN] The text to draw
* width : [IN] The width to truncated
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_text_truncated(vrt_s32 x, vrt_s32 y, const vrt_wchar *string, vrt_s32 width, vrt_bool is_dynamic_string);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_text_truncated
* DESCRIPTION
* Draw a truncated text
* PARAMETERS
* rect : [IN] The rectangle to draw
* baseline : [IN] The baseline to draw
* string : [IN] The text to draw
* width : [IN] The width to truncated
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_text_truncated_baseline(const vrt_rect_struct *rect, vrt_s32 baseline, const vrt_wchar *string, vrt_s32 width, vrt_bool is_dynamic_string);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_text_n
* DESCRIPTION
* Draw a text with length
* PARAMETERS
* pos : [IN] The position to draw
* string : [IN] The text to draw
* len : [IN] The character number of text
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_text_n(const vrt_point_struct *pos, const vrt_wchar *string, vrt_u32 len, vrt_bool is_dynamic_string);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_text_n
* DESCRIPTION
* Draw a text with baseline
* PARAMETERS
* rect : [IN] The rectangle to draw
* baseline : [IN] The baseline to draw
* string : [IN] The text to draw
* len : [IN] The character number of text
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_text_n_baseline(const vrt_rect_struct *rect, vrt_s32 baseline, const vrt_wchar *string, vrt_u32 len, vrt_bool is_dynamic_string);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_layer
* DESCRIPTION
* Draw a GDI layer
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* gdi_handle : [IN] The GDI handle to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_layer(vrt_s32 x, vrt_s32 y, void *gdi_handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_resized_layer
* DESCRIPTION
* Draw a resized GDI layer
* PARAMETERS
* rect : [IN] The position and size to draw
* gdi_handle : [IN] The GDI handle to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_resized_layer(const vrt_rect_struct *rect, void *gdi_handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_img_buf
* DESCRIPTION
* Draw an image buffer
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* img_buf : [IN] The image buffer to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_img_buf(vrt_s32 x, vrt_s32 y, const vrt_image_buffer_struct *img_buf);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_img_raw_data
* DESCRIPTION
* Draw an image raw data with no 8 byte header
* PARAMETERS
* x : [IN] The x position to draw
* y : [IN] The y position to draw
* img_buf : [IN] The image buffer with non 8 byte header to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_img_raw_data(vrt_s32 x, vrt_s32 y, const vrt_file_raw_data_buffer_struct *img_buf);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_resized_raw_data
* DESCRIPTION
* Draw a resized image buffer with not image 8 byte header
* PARAMETERS
* rect : [IN] The position and size to draw
* img_buf : [IN] The image buffer with non 8 byte header to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_resized_raw_data(const vrt_rect_struct *rect, const vrt_file_raw_data_buffer_struct *img_buf);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_content_from_raw_data
* DESCRIPTION
* Draw an image buffer, placement in the current frame bounds,
* with not image 8-bytes header
* PARAMETERS
* img_buf : [IN] The image buffer with non 8 byte header to draw
* place_type : [IN] The placement type to draw
* image_size : [IN] the size of given image (must same as given image)
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_image_content_from_raw_data(const vrt_file_raw_data_buffer_struct *img_buf, vrt_frame_content_placement_type_enum place_type, const vrt_size_struct *image_size);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_resized_img_buf
* DESCRIPTION
* Draw a resized image buffer
* PARAMETERS
* rect : [IN] The position and size to draw
* img_buf : [IN] The image buffer to draw
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_resized_img_buf(const vrt_rect_struct *rect, const vrt_image_buffer_struct *img_buf);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_image_content_from_img_buf
* DESCRIPTION
* Draw an image buffer, placement in the current frame bounds,
* with image resource 8-bytes header
* PARAMETERS
* img_buf : [IN] The image buffer to draw
* place_type : [IN] The placement type to draw
* image_size : [IN] the size of given image (must same as given image)
* RETURNS
* The command index
*****************************************************************************/
extern vrt_u32 vrt_canvas_draw_image_content_from_img_buf(const vrt_image_buffer_struct *img_buf, vrt_frame_content_placement_type_enum place_type, const vrt_size_struct *image_size);
/*****************************************************************************
* FUNCTION
* vrt_canvas_draw_world
* DESCRIPTION
* Draw 3d world,
* PARAMETERS
* handle : [IN] The handle to world
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_draw_world(vrt_object_handle handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_set_resource
* DESCRIPTION
* Set image resource
* PARAMETERS
* image_ptr [IN] pointer to image
* RETURNS
* void
*****************************************************************************/
/* For detail description, please refer to vrt_canvas.h */
extern void vrt_canvas_set_resource(const vrt_image_source_struct *image_src);
/*****************************************************************************
* FUNCTION
* vrt_canvas_get_resouce
* DESCRIPTION
* Get image buffer from image source
* PARAMETERS
* img_src [IN] pointer to image source
* img_buf [IN] pointer to image buffer structure
* RETURNS
* void
*****************************************************************************/
extern vrt_bool vrt_canvas_get_resource(vrt_image_source_struct *img_src, vrt_image_buffer_struct *img_buf);
/*****************************************************************************
* FUNCTION
* vrt_canvas_before_using_resource
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_before_using_resource(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_after_using_resource
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_after_using_resource(void);
/*****************************************************************************
* FUNCTION
* vrt_canvas_get_frame_visual_property
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern vrt_frame_visual_property_struct *vrt_canvas_get_frame_visual_property(vrt_frame_property_handle frame_property_handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_get_frame_property_handle
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern vrt_frame_property_handle vrt_canvas_get_frame_property_handle(vrt_frame_handle frame_handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_convert_point_to_root_frame
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_convert_point_to_root_frame(vrt_frame_property_handle frame_property_handle, vrt_point_struct *point);
/*****************************************************************************
* FUNCTION
* vrt_canvas_intersect_rect_to_root_frame
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern void vrt_canvas_intersect_rect_to_root_frame(vrt_frame_property_handle frame_property_handle, vrt_rect_struct *rect);
/*****************************************************************************
* FUNCTION
* vrt_canvas_get_animation_image_status
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern vrt_animation_image_status_struct *vrt_canvas_get_animation_image_status(vrt_frame_property_handle frame_property_handle);
/*****************************************************************************
* FUNCTION
* vrt_canvas_snapshot
* DESCRIPTION
*
* PARAMETERS
*
* RETURNS
* void
*****************************************************************************/
extern vrt_bool vrt_canvas_snapshot(const vrt_image_buffer_struct *snapshotBuffer);
/*
* ***Experimental Internal functions
*/
extern vrt_color_type_enum vrt_get_default_alpha_color_format(void);
extern vrt_u32 vrt_set_busy_sleep_tick(vrt_u32 tick);
extern void *vrt_canvas_get_instance(void);
extern vrt_float vrt_timing_func_timeline_time(vrt_float t, void *data, vrt_u32 data_size);
#ifdef __cplusplus
} /* extern "C"*/
#endif
#endif /* __VRT_CANVAS_H__ */