summaryrefslogtreecommitdiff
path: root/src/include/mm_camcorder.h
blob: 0eb6492926eb4c0ea5df79781db56a9c78c8b6fc (plain)
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
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
/*
 * libmm-camcorder
 *
 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Contact: Jeongmo Yang <jm80.yang@samsung.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

/**
	@addtogroup CAMCORDER
	@{

	@par
	This part describes the APIs with repect to Multimedia Camcorder.
	Camcorder is for recording audio and video from audio and video input devices, capturing
	still image from video input device, and audio recording from audio input
	device.

	@par
	Camcorder can be reached by calling functions as shown in the following
	figure, "The State of Camcorder".

	@par
	@image html	camcorder_state.png	"The State of Camcorder"	width=12cm
	@image latex	camcorder_state.png	"The State of Camcorder"	width=12cm

	@par
	Between each states there is intermediate state, and in this state,
	any function call which change the camcorder state will be failed.

	@par
	Recording state and paused state exists when the mode of camcorder is
	video-capture or audio-capture mode. In case of image-capture mode, CAPTURING state will
	exsit.

	@par
<div>
<table>
	<tr>
		<td>FUNCTION</td>
		<td>PRE-STATE</td>
		<td>POST-STATE</td>
		<td>SYNC TYPE</td>
	</tr>
	<tr>
		<td>mm_camcorder_create()</td>
		<td>NONE</td>
		<td>NULL</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_destroy()</td>
		<td>NULL</td>
		<td>NONE</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_realize()</td>
		<td>NULL</td>
		<td>READY</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_unrealize()</td>
		<td>READY</td>
		<td>NULL</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_start()</td>
		<td>READY</td>
		<td>PREPARED</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_stop()</td>
		<td>PREPARED</td>
		<td>READY</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_capture_start()</td>
		<td>PREPARED</td>
		<td>CAPTURING</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_capture_stop()</td>
		<td>CAPTURING</td>
		<td>PREPARED</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_record()</td>
		<td>PREPARED/PAUSED</td>
		<td>RECORDING</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_pause()</td>
		<td>RECORDING</td>
		<td>PAUSED</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_commit()</td>
		<td>RECORDING/PAUSED</td>
		<td>PREPARED</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_cancel()</td>
		<td>RECORDING/PAUSED</td>
		<td>PREPARED</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_set_message_callback()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_set_video_stream_callback()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_set_video_capture_callback()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_get_state()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_get_attributes()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_set_attributes()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_get_attribute_info()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_init_focusing()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_start_focusing()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
	<tr>
		<td>mm_camcorder_stop_focusing()</td>
		<td>N/A</td>
		<td>N/A</td>
		<td>SYNC</td>
	</tr>
</table>
</div>

	@par
	* Attribute @n
	Attribute system is an interface to operate camcorder. Depending on each attribute, camcorder behaves differently.
	Attribute system provides get/set functions. Setting proper attributes, a user can control camcorder as he want. (mm_camcorder_set_attributes())
	Also, a user can comprehend current status of the camcorder, calling getter function(mm_camcorder_get_attributes()).
	Beware, arguments of mm_camcorder_set_attributes() and mm_camcorder_get_attributes() should be finished with 'NULL'.
	This is a rule for the variable argument.
	@par
	Besides its value, each Attribute also has 'type' and 'validity type'. 'type' describes variable type that the attribute can get.
	If you input a value that has wrong type, camcorder will not work properly or be crashed. 'validity' describes array or
	range of values that are able to set to the attribute. 'validity type' defines type of the 'validity'.
	@par
	A user can retrieve these values using mm_camcorder_get_attribute_info().
	Following tables have 'Attribute name', 'Attribute macro', 'Type', and 'Validity type'. You can refer '#MMCamAttrsType' and '#MMCamAttrsValidType'
	for discerning 'Type' and 'Validity type'.


	@par
	Following are the attributes which should be set before initialization (#mm_camcorder_realize):

	@par
<div>
<table>
	<tr>
		<td><center><b>Attribute</b></center></td>
		<td><center><b>Description</b></center></td>
	</tr>
	<tr>
		<td>#MMCAM_MODE</td>
		<td>Mode of camcorder ( still/video/audio )</td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_DEVICE</td>
		<td>Audio device ID for capturing audio stream</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_DEVICE_COUNT</td>
		<td>Video device count</td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_ENCODER</td>
		<td>Audio codec for encoding audio stream</td>
	</tr>
	<tr>
		<td>#MMCAM_VIDEO_ENCODER</td>
		<td>Video codec for encoding video stream</td>
	</tr>
	<tr>
		<td>#MMCAM_IMAGE_ENCODER</td>
		<td>Image codec for capturing still-image</td>
	</tr>
	<tr>
		<td>#MMCAM_FILE_FORMAT</td>
		<td>File format for recording media stream</td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_SAMPLERATE</td>
		<td>Sampling rate of audio stream ( This is an integer field )</td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_FORMAT</td>
		<td>Audio format of each sample</td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_CHANNEL</td>
		<td>Channels of each sample ( This is an integer field )</td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_INPUT_ROUTE(deprecated)</td>
		<td>Set audio input route</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_FORMAT</td>
		<td>Format of video stream. This is an integer field</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_FPS</td>
		<td>Frames per second ( This is an integer field )</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_WIDTH</td>
		<td>Width of input video stream</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_HEIGHT</td>
		<td>Height of input video stream</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_FPS_AUTO</td>
		<td>FPS Auto. When you set true to this attribute, FPS will vary depending on the amount of the light.</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_HANDLE</td>
		<td>Pointer of display buffer or ID of xwindow</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_DEVICE</td>
		<td>Device of display</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_SURFACE</td>
		<td>Surface of display</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_SOURCE_X</td>
		<td>X position of source rectangle. When you want to crop the source, you can set the area with this value.</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_SOURCE_Y</td>
		<td>Y position of source rectangle. When you want to crop the source, you can set the area with this value.</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_SOURCE_WIDTH</td>
		<td>Width of source rectangle. When you want to crop the source, you can set the area with this value.</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_SOURCE_HEIGHT</td>
		<td>Height of source rectangle. When you want to crop the source, you can set the area with this value.</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_ROTATION</td>
		<td>Rotation of display</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_VISIBLE</td>
		<td>Visible of display</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_SCALE</td>
		<td>A scale of displayed image</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_GEOMETRY_METHOD</td>
		<td>A method that describes a form of geometry for display</td>
	</tr>
</table>
</div>

	@par
	Following are the attributes which should be set before recording (mm_camcorder_record()):

	@par
<div>
<table>
	<tr>
		<td><center><b>Attribute</b></center></td>
		<td><center><b>Description</b></center></td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_ENCODER_BITRATE</td>
		<td>Bitrate of Audio Encoder</td>
	</tr>
	<tr>
		<td>#MMCAM_VIDEO_ENCODER_BITRATE</td>
		<td>Bitrate of Video Encoder</td>
	</tr>
	<tr>
		<td>#MMCAM_TARGET_FILENAME</td>
		<td>Target filename. Only used in Audio/Video recording. This is not used for capturing.</td>
	</tr>
	<tr>
		<td>#MMCAM_TARGET_MAX_SIZE</td>
		<td>Maximum size of recording file(Kbyte). If the size of file reaches this value.</td>
	</tr>
	<tr>
		<td>#MMCAM_TARGET_TIME_LIMIT</td>
		<td>Time limit of recording file. If the elapsed time of recording reaches this value.</td>
	</tr>
</table>
</div>

	@par
	Following are the attributes which should be set before capturing (mm_camcorder_capture_start()):

	@par
<div>
<table>
	<tr>
		<td><center><b>Attribute</b></center></td>
		<td><center><b>Description</b></center></td>
	</tr>
	<tr>
		<td>#MMCAM_IMAGE_ENCODER_QUALITY</td>
		<td>Encoding quality of Image codec</td>
	</tr>
	<tr>
		<td>#MMCAM_CAPTURE_FORMAT</td>
		<td>Pixel format that you want to capture</td>
	</tr>
	<tr>
		<td>#MMCAM_CAPTURE_WIDTH</td>
		<td>Width of the image that you want to capture</td>
	</tr>
	<tr>
		<td>#MMCAM_CAPTURE_HEIGHT</td>
		<td>Height of the image that you want to capture</td>
	</tr>
	<tr>
		<td>#MMCAM_CAPTURE_COUNT</td>
		<td>Total count of capturing</td>
	</tr>
	<tr>
		<td>#MMCAM_CAPTURE_INTERVAL</td>
		<td>Interval between each capturing on Multishot ( MMCAM_CAPTURE_COUNT > 1 )</td>
	</tr>
</table>
</div>

	@par
	Following are the attributes which can be set anytime:

	@par
<div>
<table>
	<tr>
		<td><center><b>Attribute</b></center></td>
		<td><center><b>Description</b></center></td>
	</tr>
	<tr>
		<td>#MMCAM_AUDIO_VOLUME</td>
		<td>Input volume of audio source ( double value )</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_DIGITAL_ZOOM</td>
		<td>Digital zoom level</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_OPTICAL_ZOOM</td>
		<td>Optical zoom level</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_FOCUS_MODE</td>
		<td>Focus mode</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_AF_SCAN_RANGE</td>
		<td>AF Scan range</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_AF_TOUCH_X</td>
		<td>X coordinate of touching position</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_AF_TOUCH_Y</td>
		<td>Y coordinate of touching position</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_AF_TOUCH_WIDTH</td>
		<td>Width of touching area</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_AF_TOUCH_HEIGHT</td>
		<td>Height of touching area</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_EXPOSURE_MODE</td>
		<td>Exposure mode</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_EXPOSURE_VALUE</td>
		<td>Exposure value</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_F_NUMBER</td>
		<td>f number of camera</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_SHUTTER_SPEED</td>
		<td>Shutter speed</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_ISO</td>
		<td>ISO of capturing image</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_WDR</td>
		<td>Wide dynamic range</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_ANTI_HANDSHAKE</td>
		<td>Anti Handshake</td>
	</tr>
	<tr>
		<td>#MMCAM_CAMERA_FOCAL_LENGTH</td>
		<td>Focal length of camera lens</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_BRIGHTNESS</td>
		<td>Brightness level</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_CONTRAST</td>
		<td>Contrast level</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_WB</td>
		<td>White balance</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_COLOR_TONE</td>
		<td>Color tone (Color effect)</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_SCENE_MODE</td>
		<td>Scene mode (Program mode)</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_SATURATION</td>
		<td>Saturation level</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_HUE</td>
		<td>Hue level</td>
	</tr>
	<tr>
		<td>#MMCAM_FILTER_SHARPNESS</td>
		<td>Sharpness level</td>
	</tr>
	<tr>
		<td>#MMCAM_CAPTURE_BREAK_CONTINUOUS_SHOT</td>
		<td>Set this as true when you want to stop multishot immediately</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_RECT_X</td>
		<td>X position of display rectangle (This is only available when MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI)</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_RECT_Y</td>
		<td>Y position of display rectangle (This is only available when MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI)</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_RECT_WIDTH</td>
		<td>Width of display rectangle (This is only available when MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI)</td>
	</tr>
	<tr>
		<td>#MMCAM_DISPLAY_RECT_HEIGHT</td>
		<td>Height of display rectangle (This is only available when MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI)</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_ENABLE</td>
		<td>Enable to write tags (If this value is FALSE, none of tag information will be written to captured file)</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_IMAGE_DESCRIPTION</td>
		<td>Image description</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_ORIENTATION</td>
		<td>Orientation of captured image</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_VIDEO_ORIENTATION</td>
		<td>Orientation of encoded video</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_SOFTWARE</td>
		<td>software name and version</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_LATITUDE</td>
		<td>Latitude of captured postion (GPS information)</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_LONGITUDE</td>
		<td>Longitude of captured postion (GPS information)</td>
	</tr>
	<tr>
		<td>#MMCAM_TAG_ALTITUDE</td>
		<td>Altitude of captured postion (GPS information)</td>
	</tr>
	<tr>
		<td>#MMCAM_STROBE_CONTROL</td>
		<td>Strobe control</td>
	</tr>
	<tr>
		<td>#MMCAM_STROBE_MODE</td>
		<td>Operation Mode of strobe</td>
	</tr>
	<tr>
		<td>#MMCAM_DETECT_MODE</td>
		<td>Detection mode</td>
	</tr>
	<tr>
		<td>#MMCAM_DETECT_NUMBER</td>
		<td>Total number of detected object</td>
	</tr>
	<tr>
		<td>#MMCAM_DETECT_FOCUS_SELECT</td>
		<td>Select one of detected objects</td>
	</tr>
</table>
</div>
 */



#ifndef __MM_CAMCORDER_H__
#define __MM_CAMCORDER_H__


/*=======================================================================================
| INCLUDE FILES										|
========================================================================================*/
#include <glib.h>

#include <mm_types.h>
#include <mm_error.h>
#include <mm_message.h>

#ifdef __cplusplus
extern "C" {
#endif

/*=======================================================================================
| GLOBAL DEFINITIONS AND DECLARATIONS FOR CAMCORDER					|
========================================================================================*/

/*=======================================================================================
| MACRO DEFINITIONS									|
========================================================================================*/
/**
 * Get numerator. Definition for fraction setting, such as MMCAM_CAMERA_SHUTTER_SPEED and MMCAM_CAMERA_EXPOSURE_VALUE.
 */
#define MM_CAMCORDER_GET_NUMERATOR(x)					((int)(((int)(x) >> 16) & 0xFFFF))
/**
 * Get denominator. Definition for fraction setting, such as MMCAM_CAMERA_SHUTTER_SPEED and MMCAM_CAMERA_EXPOSURE_VALUE.
 */
#define MM_CAMCORDER_GET_DENOMINATOR(x)					((int)(((int)(x)) & 0xFFFF))
/**
 * Set fraction value. Definition for fraction setting, such as MMCAM_CAMERA_SHUTTER_SPEED and MMCAM_CAMERA_EXPOSURE_VALUE.
 */
#define MM_CAMCORDER_SET_FRACTION(numerator, denominator)	((int)((((int)(numerator)) << 16) | (int)(denominator)))

/* Attributes Macros */
/**
 * Mode of camcorder (still/video/audio).
 * @see		MMCamcorderModeType
 */
#define MMCAM_MODE                              "mode"

/**
 * Audio device ID for capturing audio stream.
 * @see		MMAudioDeviceType (in mm_types.h)
 */
#define MMCAM_AUDIO_DEVICE                      "audio-device"

/**
 * Video device count.
 */
#define MMCAM_CAMERA_DEVICE_COUNT               "camera-device-count"

/**
 * Facing direction of camera device.
 * @see		MMCamcorderCameraFacingDirection
 */
#define MMCAM_CAMERA_FACING_DIRECTION           "camera-facing-direction"

/**
 * Audio codec for encoding audio stream.
 * @see		MMAudioCodecType  (in mm_types.h)
 */
#define MMCAM_AUDIO_ENCODER                     "audio-encoder"

/**
 * Video codec for encoding video stream.
 * @see		MMVideoCodecType (in mm_types.h)
 */
#define MMCAM_VIDEO_ENCODER                     "video-encoder"

/**
 * Image codec for capturing still-image.
 * @see		MMImageCodecType (in mm_types.h)
 */
#define MMCAM_IMAGE_ENCODER                     "image-encoder"

/**
 * File format for recording media stream.
 * @see		MMFileFormatType (in mm_types.h)
 */
#define MMCAM_FILE_FORMAT                       "file-format"

/**
 * Sampling rate of audio stream. This is an integer field.
 */
#define MMCAM_AUDIO_SAMPLERATE                  "audio-samplerate"

/**
 * Audio format of each sample.
 * @see		MMCamcorderAudioFormat
 */
#define MMCAM_AUDIO_FORMAT                      "audio-format"

/**
 * Channels of each sample. This is an integer field.
 */
#define MMCAM_AUDIO_CHANNEL                     "audio-channel"

/**
 * Input volume of audio source. Double value.
 */
#define MMCAM_AUDIO_VOLUME                      "audio-volume"

/**
 * Disable Audio stream when record.
 */
#define MMCAM_AUDIO_DISABLE                     "audio-disable"

/**
 * Set audio input route
 * @remarks	Deprecated. This will be removed soon.
 * @see		MMAudioRoutePolicy (in mm_types.h)
 */
#define MMCAM_AUDIO_INPUT_ROUTE                 "audio-input-route"

/**
 * Format of video stream. This is an integer field
 * @see		MMPixelFormatType (in mm_types.h)
 */
#define MMCAM_CAMERA_FORMAT                     "camera-format"

/**
 * Slow motion rate when video recording
 * @remarks	Deprecated
 */
#define MMCAM_CAMERA_SLOW_MOTION_RATE           "camera-slow-motion-rate"

/**
 * Motion rate when video recording
 * @remarks	This should be bigger than 0(zero).
 *		Default value is 1 and it's for normal video recording.
 *		If the value is smaller than 1, recorded file will be played slower,
 *		otherwise, recorded file will be played faster.
 */
#define MMCAM_CAMERA_RECORDING_MOTION_RATE      "camera-recording-motion-rate"

/**
 * Frames per second. This is an integer field
 *
 */
#define MMCAM_CAMERA_FPS                        "camera-fps"

/**
 * Width of preview stream.
 */
#define MMCAM_CAMERA_WIDTH                      "camera-width"

/**
 * Height of preview stream.
 */
#define MMCAM_CAMERA_HEIGHT                     "camera-height"

/**
 * Width of video stream.
 */
#define MMCAM_VIDEO_WIDTH                       "video-width"

/**
 * Height of video stream.
 */
#define MMCAM_VIDEO_HEIGHT                      "video-height"

/**
 * Digital zoom level.
 */
#define MMCAM_CAMERA_DIGITAL_ZOOM               "camera-digital-zoom"

/**
 * Optical zoom level.
 */
#define MMCAM_CAMERA_OPTICAL_ZOOM               "camera-optical-zoom"

/**
 * Focus mode
 * @see		MMCamcorderFocusMode
 */
#define MMCAM_CAMERA_FOCUS_MODE                 "camera-focus-mode"

/**
 * AF Scan range
 * @see		MMCamcorderAutoFocusType
 */
#define MMCAM_CAMERA_AF_SCAN_RANGE              "camera-af-scan-range"

/**
 * X coordinate of touching position. Only available when you set '#MM_CAMCORDER_AUTO_FOCUS_TOUCH' to '#MMCAM_CAMERA_AF_SCAN_RANGE'.
 * @see		MMCamcorderAutoFocusType
 */
#define MMCAM_CAMERA_AF_TOUCH_X                 "camera-af-touch-x"

/**
 * Y coordinate of touching position. Only available when you set '#MM_CAMCORDER_AUTO_FOCUS_TOUCH' to '#MMCAM_CAMERA_AF_SCAN_RANGE'.
 * @see		MMCamcorderAutoFocusType
 */
#define MMCAM_CAMERA_AF_TOUCH_Y                 "camera-af-touch-y"

/**
 * Width of touching area. Only available when you set '#MM_CAMCORDER_AUTO_FOCUS_TOUCH' to '#MMCAM_CAMERA_AF_SCAN_RANGE'.
 * @see		MMCamcorderAutoFocusType
 */
#define MMCAM_CAMERA_AF_TOUCH_WIDTH             "camera-af-touch-width"

/**
 * Height of touching area. Only available when you set '#MM_CAMCORDER_AUTO_FOCUS_TOUCH' to '#MMCAM_CAMERA_AF_SCAN_RANGE'.
 * @see		MMCamcorderAutoFocusType
 */
#define MMCAM_CAMERA_AF_TOUCH_HEIGHT            "camera-af-touch-height"

/**
 * Exposure mode
 * @see		MMCamcorderAutoExposureType
 */
#define MMCAM_CAMERA_EXPOSURE_MODE              "camera-exposure-mode"

/**
 * Exposure value
 */
#define MMCAM_CAMERA_EXPOSURE_VALUE             "camera-exposure-value"

/**
 * f number of camera
 */
#define MMCAM_CAMERA_F_NUMBER                   "camera-f-number"

/**
 * Shutter speed
 */
#define MMCAM_CAMERA_SHUTTER_SPEED              "camera-shutter-speed"

/**
 * ISO of capturing image
 * @see		MMCamcorderISOType
 */
#define MMCAM_CAMERA_ISO                        "camera-iso"

/**
 * Wide dynamic range.
 * @see		MMCamcorderWDRMode
 */
#define MMCAM_CAMERA_WDR                        "camera-wdr"

/**
 * Focal length of camera lens.
 */
#define MMCAM_CAMERA_FOCAL_LENGTH               "camera-focal-length"

/**
 * Anti Handshake
 * @see		MMCamcorderAHSMode
 */
#define MMCAM_CAMERA_ANTI_HANDSHAKE             "camera-anti-handshake"

/**
 * Video Stabilization
 * @see		MMCamcorderVideoStabilizationMode
 */
#define MMCAM_CAMERA_VIDEO_STABILIZATION        "camera-video-stabilization"

/**
 * FPS Auto. When you set true to this attribute, FPS will vary depending on the amount of the light.
 */
#define MMCAM_CAMERA_FPS_AUTO                   "camera-fps-auto"

/**
 * Rotation angle of video input stream.
 * @see		MMVideoInputRotationType (in mm_types.h)
 */
#define MMCAM_CAMERA_ROTATION                   "camera-rotation"

/**
 * HDR(High Dynamic Range) Capture mode
 * @see		MMCamcorderHDRMode
 */
#define MMCAM_CAMERA_HDR_CAPTURE                "camera-hdr-capture"

/**
 * Bitrate of Audio Encoder
 */
#define MMCAM_AUDIO_ENCODER_BITRATE             "audio-encoder-bitrate"

/**
 * Bitrate of Video Encoder
 */
#define MMCAM_VIDEO_ENCODER_BITRATE             "video-encoder-bitrate"

/**
 * Encoding quality of Image codec
 */
#define MMCAM_IMAGE_ENCODER_QUALITY             "image-encoder-quality"

/**
 * Brightness level
 */
#define MMCAM_FILTER_BRIGHTNESS                 "filter-brightness"

/**
 * Contrast level
 */
#define MMCAM_FILTER_CONTRAST                   "filter-contrast"

/**
 * White balance
 * @see		MMCamcorderWhiteBalanceType
 */
#define MMCAM_FILTER_WB                         "filter-wb"

/**
 * Color tone. (Color effect)
 * @see		MMCamcorderColorToneType
 */
#define MMCAM_FILTER_COLOR_TONE                 "filter-color-tone"

/**
 * Scene mode (Program mode)
 * @see		MMCamcorderSceneModeType
 */
#define MMCAM_FILTER_SCENE_MODE                 "filter-scene-mode"

/**
 * Saturation  level
 */
#define MMCAM_FILTER_SATURATION                 "filter-saturation"

/**
 * Hue  level
 */
#define MMCAM_FILTER_HUE                        "filter-hue"

/**
 * Sharpness  level
 */
#define MMCAM_FILTER_SHARPNESS                  "filter-sharpness"

/**
 * Pixel format that you want to capture. If you set MM_PIXEL_FORMAT_ENCODED,
 * the result will be encoded by image codec specified in #MMCAM_IMAGE_ENCODER.
 * If not, the result will be raw data.
 *
 * @see		MMPixelFormatType (in mm_types.h)
 */
#define MMCAM_CAPTURE_FORMAT                    "capture-format"

/**
 * Width of the image that you want to capture
 */
#define MMCAM_CAPTURE_WIDTH                     "capture-width"

/**
 * Height of the image that you want to capture

 */
#define MMCAM_CAPTURE_HEIGHT                    "capture-height"

/**
 * Total count of capturing. If you set this, it will caputre multiple time.
 */
#define MMCAM_CAPTURE_COUNT                     "capture-count"

/**
 * Interval between each capturing on Multishot.
 */
#define MMCAM_CAPTURE_INTERVAL                  "capture-interval"

/**
 * Set this when you want to stop multishot immediately.
 */
#define MMCAM_CAPTURE_BREAK_CONTINUOUS_SHOT     "capture-break-cont-shot"

/**
 * Raw data of captured image which resolution is same as preview.
 * This is READ-ONLY attribute and only available in capture callback.
 * This should be used after casted as MMCamcorderCaptureDataType.
 */
#define MMCAM_CAPTURED_SCREENNAIL               "captured-screennail"

/**
 * Raw data of EXIF. This is READ-ONLY attribute and only available in capture callback.
 */
#define MMCAM_CAPTURED_EXIF_RAW_DATA            "captured-exif-raw-data"

/**
 * Pointer of display buffer or ID of xwindow.
 */
#define MMCAM_DISPLAY_HANDLE                    "display-handle"

/**
 * Device of display.
 * @see		MMDisplayDeviceType (in mm_types.h)
 */
#define MMCAM_DISPLAY_DEVICE                    "display-device"

/**
 * Surface of display.
 * @see		MMDisplaySurfaceType (in mm_types.h)
 */
#define MMCAM_DISPLAY_SURFACE                    "display-surface"

/**
 * Mode of display.
 * @see		MMDisplayModeType (in mm_types.h)
 */
#define MMCAM_DISPLAY_MODE                       "display-mode"

/**
 * X position of display rectangle.
 * This is only available when #MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI.
 * @see		MMCamcorderGeometryMethod
 */
#define MMCAM_DISPLAY_RECT_X                    "display-rect-x"

/**
 * Y position of display rectangle
 * This is only available when #MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI.
 * @see		MMCamcorderGeometryMethod
 */
#define MMCAM_DISPLAY_RECT_Y                    "display-rect-y"

/**
 * Width of display rectangle
 * This is only available when #MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI.
 * @see		MMCamcorderGeometryMethod
 */
#define MMCAM_DISPLAY_RECT_WIDTH                "display-rect-width"

/**
 * Height of display rectangle
 * This is only available when #MMCAM_DISPLAY_GEOMETRY_METHOD is MM_CAMCORDER_CUSTOM_ROI.
 * @see		MMCamcorderGeometryMethod
 */
#define MMCAM_DISPLAY_RECT_HEIGHT               "display-rect-height"

/**
 * X position of source rectangle. When you want to crop the source, you can set the area with this value.
 */
#define MMCAM_DISPLAY_SOURCE_X                  "display-src-x"

/**
 * Y position of source rectangle. When you want to crop the source, you can set the area with this value.
 */
#define MMCAM_DISPLAY_SOURCE_Y                  "display-src-y"

/**
 * Width of source rectangle. When you want to crop the source, you can set the area with this value.
 */
#define MMCAM_DISPLAY_SOURCE_WIDTH              "display-src-width"

/**
 * Height of source rectangle. When you want to crop the source, you can set the area with this value.
 */
#define MMCAM_DISPLAY_SOURCE_HEIGHT             "display-src-height"

/**
 * Rotation angle of display.
 * @see		MMDisplayRotationType (in mm_types.h)
 */
#define MMCAM_DISPLAY_ROTATION                  "display-rotation"

/**
 * Flip of display.
 * @see		MMFlipType (in mm_types.h)
 */
#define MMCAM_DISPLAY_FLIP                      "display-flip"

/**
 * Visible of display.
 */
#define MMCAM_DISPLAY_VISIBLE                   "display-visible"

/**
 * A scale of displayed image. Available value is like below.
 * @see		MMDisplayScaleType (in mm_types.h)
 */
#define MMCAM_DISPLAY_SCALE                     "display-scale"

/**
 * A method that describes a form of geometry for display.
 * @see		MMCamcorderGeometryMethod
 */
#define MMCAM_DISPLAY_GEOMETRY_METHOD           "display-geometry-method"

/**
 * A videosink name of evas surface.
 * This is READ-ONLY attribute.
 */
#define MMCAM_DISPLAY_EVAS_SURFACE_SINK         "display-evas-surface-sink"

/**
 * This attribute is only available if value of MMCAM_DISPLAY_EVAS_SURFACE_SINK "evaspixmapsink"
 */
#define MMCAM_DISPLAY_EVAS_DO_SCALING           "display-evas-do-scaling"

/**
 * Target filename. Only used in Audio/Video recording. This is not used for capturing.
 */
#define MMCAM_TARGET_FILENAME                   "target-filename"

/**
 * Maximum size(Kbyte) of recording file. If the size of file reaches this value,
 * camcorder will send 'MM_MESSAGE_CAMCORDER_MAX_SIZE' message.
 */
#define MMCAM_TARGET_MAX_SIZE                   "target-max-size"

/**
 * Time limit(Second) of recording file. If the elapsed time of recording reaches this value,
 * camcorder will send 'MM_MESSAGE_CAMCORDER_TIME_LIMIT' message.
 */
#define MMCAM_TARGET_TIME_LIMIT                 "target-time-limit"

/**
 * Enable to write tags. If this value is FALSE, none of tag information will be written to captured file.
 */
#define MMCAM_TAG_ENABLE                        "tag-enable"

/**
 * Image description.
 */
#define MMCAM_TAG_IMAGE_DESCRIPTION             "tag-image-description"

/**
 * Orientation of captured image
 * @see		MMCamcorderTagOrientation
 */
#define MMCAM_TAG_ORIENTATION                   "tag-orientation"

/**
 * Orientation of captured video
 * @see		MMCamcorderTagVideoOrientation
 */
#define MMCAM_TAG_VIDEO_ORIENTATION            "tag-video-orientation"

/**
 * software name and version
 */
#define MMCAM_TAG_SOFTWARE                      "tag-software"

/**
 * Enable to write tags related to GPS. If this value is TRUE, tags related GPS information will be written to captured file.
 */
#define MMCAM_TAG_GPS_ENABLE                    "tag-gps-enable"

/**
 * Latitude of captured postion. GPS information.
 */
#define MMCAM_TAG_LATITUDE                      "tag-latitude"

/**
 * Longitude of captured postion. GPS information.
 */
#define MMCAM_TAG_LONGITUDE                     "tag-longitude"

/**
 * Altitude of captured postion. GPS information.
 */
#define MMCAM_TAG_ALTITUDE                      "tag-altitude"

/**
 * Strobe control
 * @see		MMCamcorderStrobeControl
 */
#define MMCAM_STROBE_CONTROL                    "strobe-control"

/**
 * Operation Mode of strobe
 * @see		MMCamcorderStrobeMode
 */
#define MMCAM_STROBE_MODE                       "strobe-mode"

/**
 * Detection mode
 * @see		MMCamcorderDetectMode
 */
#define MMCAM_DETECT_MODE                       "detect-mode"

/**
 * Total number of detected object
 */
#define MMCAM_DETECT_NUMBER                     "detect-number"

/**
 * You can use this attribute to select one of detected objects.
 */
#define MMCAM_DETECT_FOCUS_SELECT               "detect-focus-select"

/**
 * Recommend preview format for capture
 */
#define MMCAM_RECOMMEND_PREVIEW_FORMAT_FOR_CAPTURE     "recommend-preview-format-for-capture"

/**
 * Recommend preview format for recording
 */
#define MMCAM_RECOMMEND_PREVIEW_FORMAT_FOR_RECORDING   "recommend-preview-format-for-recording"

/**
 * Recommend rotation of display
 */
#define MMCAM_RECOMMEND_DISPLAY_ROTATION        "recommend-display-rotation"

/**
 * Recommend width of camera preview.
 * This attribute can be used with #mm_camcorder_get_attribute_info and #MMCamcorderPreviewType.
 * @see		mm_camcorder_get_attribute_info, MMCamcorderPreviewType
 */
#define MMCAM_RECOMMEND_CAMERA_WIDTH            "recommend-camera-width"

/**
 * Recommend height of camera preview
 * This attribute can be used with #mm_camcorder_get_attribute_info and #MMCamcorderPreviewType.
 * @see		mm_camcorder_get_attribute_info, MMCamcorderPreviewType
 */
#define MMCAM_RECOMMEND_CAMERA_HEIGHT           "recommend-camera-height"

/**
 * Enable to play capture sound
 */
#define MMCAM_CAPTURE_SOUND_ENABLE              "capture-sound-enable"

/**
 * Flip of video input stream.
 * @see		MMFlipType (in mm_types.h)
 */
#define MMCAM_CAMERA_FLIP                       "camera-flip"

/**
 * Support Zero Shutter Lag capture
 */
#define MMCAM_SUPPORT_ZSL_CAPTURE               "support-zsl-capture"

/**
* Support zero copy format
*/
#define MMCAM_SUPPORT_ZERO_COPY_FORMAT          "support-zero-copy-format"

/**
* Support media packet callback
*/
#define MMCAM_SUPPORT_MEDIA_PACKET_PREVIEW_CB   "support-media-packet-preview-cb"

/**
* Support user buffer for zero copy
*/
#define MMCAM_SUPPORT_USER_BUFFER               "support-user-buffer"

/**
* Buffer fd from user
*/
#define MMCAM_USER_BUFFER_FD                    "user-buffer-fd"

/**
 * Enable to write tags for recorded file
 */
#define MMCAM_RECORDER_TAG_ENABLE               "recorder-tag-enable"

/**
 * Determines the socket stream path
 */
#define MMCAM_DISPLAY_SOCKET_PATH               "display-socket-path"

/**
 * Client PID
 */
#define MMCAM_CLIENT_PID                        "client-pid"

/**
 * Root directory of application
 */
#define MMCAM_ROOT_DIRECTORY                    "root-directory"

/**
 * Bitrate for encoded preview stream
 */
#define MMCAM_ENCODED_PREVIEW_BITRATE           "encoded-preview-bitrate"

/**
 * GOP interval for encoded preview stream
 */
#define MMCAM_ENCODED_PREVIEW_GOP_INTERVAL      "encoded-preview-gop-interval"

/**
 * The distance to move the camera horizontally and physically
 */
#define MMCAM_CAMERA_PAN_MECHA                  "camera-pan-mecha"

/**
 * The distance to move the camera horizontally
 */
#define MMCAM_CAMERA_PAN_ELEC                   "camera-pan-elec"

/**
 * The distance to move the camera vertically and physically
 */
#define MMCAM_CAMERA_TILT_MECHA                 "camera-tilt-mecha"

/**
 * The distance to move the camera vertically
 */
#define MMCAM_CAMERA_TILT_ELEC                  "camera-tilt-elec"

/**
 * The type of PTZ(Pan Tilt Zoom). Mechanical or Electonic PTZ.
 */
#define MMCAM_CAMERA_PTZ_TYPE                   "camera-ptz-type"

/**
 * Stream type and index for sound route
 */
#define MMCAM_SOUND_STREAM_TYPE                 "sound-stream-type"
#define MMCAM_SOUND_STREAM_INDEX                "sound-stream-index"

/**
 * The display reuse flag and sink element pointer
 */
#define MMCAM_DISPLAY_REUSE_HINT                "display-reuse-hint"
#define MMCAM_DISPLAY_REUSE_ELEMENT             "display-reuse-element"

/**
 * The GBbus connection from outside
 */
#define MMCAM_GDBUS_CONNECTION                  "gdbus-connection"

/**
 * Replay gain enable
 */
#define MMCAM_AUDIO_REPLAY_GAIN_ENABLE          "audio-replay-gain-enable"

/**
 * Reference level for replay gain
 */
#define MMCAM_AUDIO_REPLAY_GAIN_REFERENCE_LEVEL "audio-replay-gain-reference-level"

/*=======================================================================================
| ENUM DEFINITIONS									|
========================================================================================*/
/**
 * An enumeration for camcorder states.
 */
typedef enum {
	MM_CAMCORDER_STATE_NONE,		/**< Camcorder is not created yet */
	MM_CAMCORDER_STATE_NULL,		/**< Camcorder is created, but not initialized yet */
	MM_CAMCORDER_STATE_READY,		/**< Camcorder is ready to capture */
	MM_CAMCORDER_STATE_PREPARE,		/**< Camcorder is prepared to capture (Preview) */
	MM_CAMCORDER_STATE_CAPTURING,		/**< Camcorder is now capturing still images */
	MM_CAMCORDER_STATE_RECORDING,		/**< Camcorder is now recording */
	MM_CAMCORDER_STATE_PAUSED,		/**< Camcorder is paused while recording */
	MM_CAMCORDER_STATE_NUM,			/**< Number of camcorder states */
} MMCamcorderStateType;

/**
 * An enumeration for camcorder mode.
 */
typedef enum {
	MM_CAMCORDER_MODE_VIDEO_CAPTURE = 0,    /**< Video recording and Image capture mode */
	MM_CAMCORDER_MODE_AUDIO,                /**< Audio recording mode */
} MMCamcorderModeType;

/**
 * An enumeration for facing direction.
 */
typedef enum {
	MM_CAMCORDER_CAMERA_FACING_DIRECTION_REAR = 0, /**< Facing direction of camera is REAR */
	MM_CAMCORDER_CAMERA_FACING_DIRECTION_FRONT,    /**< Facing direction of camera is FRONT */
} MMCamcorderCameraFacingDirection;


/**
 * An enumeration of Audio Format.
 */
typedef enum {
	MM_CAMCORDER_AUDIO_FORMAT_PCM_U8 = 0,		/**< unsigned 8bit audio */
	MM_CAMCORDER_AUDIO_FORMAT_PCM_S16_LE = 2,	/**< signed 16bit audio. Little endian. */
} MMCamcorderAudioFormat;


/**
 * An enumeration for color tone. Color tone provides an impression of
 * seeing through a tinted glass.
 */
enum MMCamcorderColorToneType {
	MM_CAMCORDER_COLOR_TONE_NONE = 0,               /**< None */
	MM_CAMCORDER_COLOR_TONE_MONO,                   /**< Mono */
	MM_CAMCORDER_COLOR_TONE_SEPIA,                  /**< Sepia */
	MM_CAMCORDER_COLOR_TONE_NEGATIVE,               /**< Negative */
	MM_CAMCORDER_COLOR_TONE_BLUE,                   /**< Blue */
	MM_CAMCORDER_COLOR_TONE_GREEN,                  /**< Green */
	MM_CAMCORDER_COLOR_TONE_AQUA,                   /**< Aqua */
	MM_CAMCORDER_COLOR_TONE_VIOLET,                 /**< Violet */
	MM_CAMCORDER_COLOR_TONE_ORANGE,                 /**< Orange */
	MM_CAMCORDER_COLOR_TONE_GRAY,                   /**< Gray */
	MM_CAMCORDER_COLOR_TONE_RED,                    /**< Red */
	MM_CAMCORDER_COLOR_TONE_ANTIQUE,                /**< Antique */
	MM_CAMCORDER_COLOR_TONE_WARM,                   /**< Warm */
	MM_CAMCORDER_COLOR_TONE_PINK,                   /**< Pink */
	MM_CAMCORDER_COLOR_TONE_YELLOW,                 /**< Yellow */
	MM_CAMCORDER_COLOR_TONE_PURPLE,                 /**< Purple */
	MM_CAMCORDER_COLOR_TONE_EMBOSS,                 /**< Emboss */
	MM_CAMCORDER_COLOR_TONE_OUTLINE,                /**< Outline */
	MM_CAMCORDER_COLOR_TONE_SOLARIZATION,           /**< Solarization */
	MM_CAMCORDER_COLOR_TONE_SKETCH,                 /**< Sketch */
	MM_CAMCORDER_COLOR_TONE_WASHED,                 /**< Washed */
	MM_CAMCORDER_COLOR_TONE_VINTAGE_WARM,           /**< Vintage warm */
	MM_CAMCORDER_COLOR_TONE_VINTAGE_COLD,           /**< Vintage cold */
	MM_CAMCORDER_COLOR_TONE_POSTERIZATION,          /**< Posterization */
	MM_CAMCORDER_COLOR_TONE_CARTOON,                /**< Cartoon */
	MM_CAMCORDER_COLOR_TONE_SELECTIVE_RED,          /**< Selective color - Red */
	MM_CAMCORDER_COLOR_TONE_SELECTIVE_GREEN,        /**< Selective color - Green */
	MM_CAMCORDER_COLOR_TONE_SELECTIVE_BLUE,         /**< Selective color - Blue */
	MM_CAMCORDER_COLOR_TONE_SELECTIVE_YELLOW,       /**< Selective color - Yellow */
	MM_CAMCORDER_COLOR_TONE_SELECTIVE_RED_YELLOW,   /**< Selective color - Red and Yellow */
};


/**
 * An enumeration for white balance. White Balance is the control that adjusts
 * the camcorder's color sensitivity to match the prevailing color of white
 * outdoor light, yellower indoor light, or (sometimes) greenish fluorescent
 * light. White balance may be set either automatically or manually. White balance
 * may be set "incorrectly" on purpose to achieve special effects.
 */
enum MMCamcorderWhiteBalanceType {
	MM_CAMCORDER_WHITE_BALANCE_NONE = 0,		/**< None */
	MM_CAMCORDER_WHITE_BALANCE_AUTOMATIC,		/**< Automatic */
	MM_CAMCORDER_WHITE_BALANCE_DAYLIGHT,		/**< Daylight */
	MM_CAMCORDER_WHITE_BALANCE_CLOUDY,		/**< Cloudy */
	MM_CAMCORDER_WHITE_BALANCE_FLUOROSCENT,		/**< Fluorescent */
	MM_CAMCORDER_WHITE_BALANCE_INCANDESCENT,	/**< Incandescent */
	MM_CAMCORDER_WHITE_BALANCE_SHADE,		/**< Shade */
	MM_CAMCORDER_WHITE_BALANCE_HORIZON,		/**< Horizon */
	MM_CAMCORDER_WHITE_BALANCE_FLASH,		/**< Flash */
	MM_CAMCORDER_WHITE_BALANCE_CUSTOM,		/**< Custom */
};


/**
 * An enumeration for scene mode. Scene mode gives the environment condition
 * for operating camcorder. The mode of operation can be in daylight, night and
 * backlight. It can be an automatic setting also.
 */
enum MMCamcorderSceneModeType {
	MM_CAMCORDER_SCENE_MODE_NORMAL = 0,     /**< Normal */
	MM_CAMCORDER_SCENE_MODE_PORTRAIT,       /**< Portrait */
	MM_CAMCORDER_SCENE_MODE_LANDSCAPE,      /**< Landscape */
	MM_CAMCORDER_SCENE_MODE_SPORTS,         /**< Sports */
	MM_CAMCORDER_SCENE_MODE_PARTY_N_INDOOR, /**< Party & indoor */
	MM_CAMCORDER_SCENE_MODE_BEACH_N_INDOOR, /**< Beach & indoor */
	MM_CAMCORDER_SCENE_MODE_SUNSET,         /**< Sunset */
	MM_CAMCORDER_SCENE_MODE_DUSK_N_DAWN,    /**< Dusk & dawn */
	MM_CAMCORDER_SCENE_MODE_FALL_COLOR,     /**< Fall */
	MM_CAMCORDER_SCENE_MODE_NIGHT_SCENE,    /**< Night scene */
	MM_CAMCORDER_SCENE_MODE_FIREWORK,       /**< Firework */
	MM_CAMCORDER_SCENE_MODE_TEXT,           /**< Text */
	MM_CAMCORDER_SCENE_MODE_SHOW_WINDOW,    /**< Show window */
	MM_CAMCORDER_SCENE_MODE_CANDLE_LIGHT,   /**< Candle light */
	MM_CAMCORDER_SCENE_MODE_BACKLIGHT,      /**< Backlight */
	MM_CAMCORDER_SCENE_MODE_AQUA,           /**< Aqua */
};


/**
 * An enumeration for focusing .
 */
enum MMCamcorderFocusMode {
	MM_CAMCORDER_FOCUS_MODE_NONE = 0,	/**< Focus mode is None */
	MM_CAMCORDER_FOCUS_MODE_PAN,		/**< Pan focus mode*/
	MM_CAMCORDER_FOCUS_MODE_AUTO,		/**< Autofocus mode*/
	MM_CAMCORDER_FOCUS_MODE_MANUAL,		/**< Manual focus mode*/
	MM_CAMCORDER_FOCUS_MODE_TOUCH_AUTO,	/**< Touch Autofocus mode*/
	MM_CAMCORDER_FOCUS_MODE_CONTINUOUS,	/**< Continuous Autofocus mode*/
};


/**
 * An enumeration for auto focus scan range (af scan range)
 */
enum MMCamcorderAutoFocusType {
	MM_CAMCORDER_AUTO_FOCUS_NONE = 0,	/**< Scan autofocus is not set */
	MM_CAMCORDER_AUTO_FOCUS_NORMAL,		/**< Scan autofocus normally*/
	MM_CAMCORDER_AUTO_FOCUS_MACRO,		/**< Scan autofocus in macro mode(close distance)*/
	MM_CAMCORDER_AUTO_FOCUS_FULL,		/**< Scan autofocus in full mode(all range scan, limited by dev spec)*/
};


/**
 * An enumeration for focus state.
 * When 'MM_MESSAGE_CAMCORDER_FOCUS_CHANGED' is delievered through 'MMMessageCallback',
 * this enumeration will be set to 'code' of MMMessageParamType.
 */
enum MMCamcorderFocusStateType {
	MM_CAMCORDER_FOCUS_STATE_RELEASED = 0,	/**< Focus released.*/
	MM_CAMCORDER_FOCUS_STATE_ONGOING,	/**< Focus in pregress*/
	MM_CAMCORDER_FOCUS_STATE_FOCUSED,	/**< Focus success*/
	MM_CAMCORDER_FOCUS_STATE_FAILED,	/**< Focus failed*/
};


/**
 * An enumeration for ISO.
 */
enum MMCamcorderISOType {
	MM_CAMCORDER_ISO_AUTO = 0,		/**< ISO auto mode*/
	MM_CAMCORDER_ISO_50,			/**< ISO 50*/
	MM_CAMCORDER_ISO_100,			/**< ISO 100*/
	MM_CAMCORDER_ISO_200,			/**< ISO 200*/
	MM_CAMCORDER_ISO_400,			/**< ISO 400*/
	MM_CAMCORDER_ISO_800,			/**< ISO 800*/
	MM_CAMCORDER_ISO_1600,			/**< ISO 1600*/
	MM_CAMCORDER_ISO_3200,			/**< ISO 3200*/
	MM_CAMCORDER_ISO_6400,			/**< ISO 6400*/
	MM_CAMCORDER_ISO_12800,			/**< ISO 12800*/
};

/**
 * An enumeration for Automatic exposure.
 */
enum MMCamcorderAutoExposureType {
	MM_CAMCORDER_AUTO_EXPOSURE_OFF = 0,	/**< AE off*/
	MM_CAMCORDER_AUTO_EXPOSURE_ALL,		/**< AE on, XXX mode*/
	MM_CAMCORDER_AUTO_EXPOSURE_CENTER_1,	/**< AE on, XXX mode*/
	MM_CAMCORDER_AUTO_EXPOSURE_CENTER_2,	/**< AE on, XXX mode*/
	MM_CAMCORDER_AUTO_EXPOSURE_CENTER_3,	/**< AE on, XXX mode*/
	MM_CAMCORDER_AUTO_EXPOSURE_SPOT_1,	/**< AE on, XXX mode*/
	MM_CAMCORDER_AUTO_EXPOSURE_SPOT_2,	/**< AE on, XXX mode*/
	MM_CAMCORDER_AUTO_EXPOSURE_CUSTOM_1,	/**< AE on, XXX mode*/
	MM_CAMCORDER_AUTO_EXPOSURE_CUSTOM_2,	/**< AE on, XXX mode*/
};


/**
 * An enumeration for WDR mode .
 */
enum MMCamcorderWDRMode {
	MM_CAMCORDER_WDR_OFF = 0,		/**< WDR OFF*/
	MM_CAMCORDER_WDR_ON,			/**< WDR ON*/
	MM_CAMCORDER_WDR_AUTO,			/**< WDR AUTO*/
};


/**
 * An enumeration for HDR capture mode
 */
enum MMCamcorderHDRMode {
	MM_CAMCORDER_HDR_OFF = 0,               /**< HDR OFF */
	MM_CAMCORDER_HDR_ON,                    /**< HDR ON and no original data - capture callback will be come once */
	MM_CAMCORDER_HDR_ON_AND_ORIGINAL,       /**< HDR ON and original data - capture callback will be come twice(1st:Original, 2nd:HDR) */
};


/**
 * An enumeration for Anti-handshake mode .
 */
enum MMCamcorderAHSMode {
	MM_CAMCORDER_AHS_OFF = 0,		/**< AHS OFF*/
	MM_CAMCORDER_AHS_ON,			/**< AHS ON*/
	MM_CAMCORDER_AHS_AUTO,			/**< AHS AUTO*/
	MM_CAMCORDER_AHS_MOVIE,			/**< AHS MOVIE*/
};


/**
 * An enumeration for Video stabilization mode
 */
enum MMCamcorderVideoStabilizationMode {
	MM_CAMCORDER_VIDEO_STABILIZATION_OFF = 0,	/**< Video Stabilization OFF*/
	MM_CAMCORDER_VIDEO_STABILIZATION_ON,		/**< Video Stabilization ON*/
};


/**
 * Geometry method for camcorder display.
 */
enum MMCamcorderGeometryMethod {
	MM_CAMCORDER_LETTER_BOX = 0,		/**< Letter box*/
	MM_CAMCORDER_ORIGIN_SIZE,		/**< Origin size*/
	MM_CAMCORDER_FULL,			/**< full-screen*/
	MM_CAMCORDER_CROPPED_FULL,		/**< Cropped full-screen*/
	MM_CAMCORDER_ORIGIN_OR_LETTER,		/**< Origin size or Letter box*/
	MM_CAMCORDER_CUSTOM_ROI,		/**< Explicitely described destination ROI*/
};


/**
 * An enumeration for orientation values of tag .
 */
enum MMCamcorderTagOrientation {
	MM_CAMCORDER_TAG_ORT_NONE = 0,		/**< No Orientation.*/
	MM_CAMCORDER_TAG_ORT_0R_VT_0C_VL,	/**< The 0th row is at the visual top of the image, and the 0th column is the visual left-hand side.*/
	MM_CAMCORDER_TAG_ORT_0R_VT_0C_VR,	/**< The 0th row is at the visual top of the image, and the 0th column is the visual right-hand side.*/
	MM_CAMCORDER_TAG_ORT_0R_VB_0C_VR,	/**< The 0th row is at the visual bottom of the image, and the 0th column is the visual right-hand side.*/
	MM_CAMCORDER_TAG_ORT_0R_VB_0C_VL,	/**< The 0th row is at the visual bottom of the image, and the 0th column is the visual left-hand side.*/
	MM_CAMCORDER_TAG_ORT_0R_VL_0C_VT,	/**< The 0th row is the visual left-hand side of the image, and the 0th column is the visual top.*/
	MM_CAMCORDER_TAG_ORT_0R_VR_0C_VT,	/**< The 0th row is the visual right-hand side of the image, and the 0th column is the visual top.*/
	MM_CAMCORDER_TAG_ORT_0R_VR_0C_VB,	/**< The 0th row is the visual right-hand side of the image, and the 0th column is the visual bottom.*/
	MM_CAMCORDER_TAG_ORT_0R_VL_0C_VB,	/**< The 0th row is the visual left-hand side of the image, and the 0th column is the visual bottom.*/
};

/**
 * An enumeration for captured video orientation values of tag .
 */
enum MMCamcorderTagVideoOrientation {
	MM_CAMCORDER_TAG_VIDEO_ORT_NONE = 0,	/**< No Orientation.*/
	MM_CAMCORDER_TAG_VIDEO_ORT_90,		/**< 90 degree */
	MM_CAMCORDER_TAG_VIDEO_ORT_180,	/**< 180 degree */
	MM_CAMCORDER_TAG_VIDEO_ORT_270,	/**< 270 degree */
};



/**
 * An enumeration for Strobe mode.
 */
enum MMCamcorderStrobeMode {
	MM_CAMCORDER_STROBE_MODE_OFF = 0,		/**< Always off */
	MM_CAMCORDER_STROBE_MODE_ON,			/**< Always splashes */
	MM_CAMCORDER_STROBE_MODE_AUTO,			/**< Depending on intensity of light, strobe starts to flash. */
	MM_CAMCORDER_STROBE_MODE_REDEYE_REDUCTION,	/**< Red eye reduction. Multiple flash before capturing. */
	MM_CAMCORDER_STROBE_MODE_SLOW_SYNC,		/**< Slow sync. A type of curtain synchronization. */
	MM_CAMCORDER_STROBE_MODE_FRONT_CURTAIN,		/**< Front curtain. A type of curtain synchronization. */
	MM_CAMCORDER_STROBE_MODE_REAR_CURTAIN,		/**< Rear curtain. A type of curtain synchronization. */
	MM_CAMCORDER_STROBE_MODE_PERMANENT,		/**< keep turned on until turning off */
};


/**
 * An enumeration for Strobe Control.
 */
enum MMCamcorderStrobeControl {
	MM_CAMCORDER_STROBE_CONTROL_OFF = 0,	/**< turn off the flash light */
	MM_CAMCORDER_STROBE_CONTROL_ON,		/**< turn on the flash light */
	MM_CAMCORDER_STROBE_CONTROL_CHARGE,	/**< charge the flash light */
};


/**
 * An enumeration for Detection mode.
 */
enum MMCamcorderDetectMode {
	MM_CAMCORDER_DETECT_MODE_OFF = 0,	/**< turn detection off */
	MM_CAMCORDER_DETECT_MODE_ON,		/**< turn detection on */
};


/**
 * An enumeration for recommended preview resolution.
 */
enum MMCamcorderPreviewType {
	MM_CAMCORDER_PREVIEW_TYPE_NORMAL = 0,   /**< normal ratio like 4:3 */
	MM_CAMCORDER_PREVIEW_TYPE_WIDE,         /**< wide ratio like 16:9 */
	MM_CAMCORDER_PREVIEW_TYPE_SQUARE,       /**< square ratio like 1:1 */
};


/**********************************
*          Attribute info         *
**********************************/
/**
 * An enumeration for attribute values types.
 */
typedef enum {
	MM_CAM_ATTRS_TYPE_INVALID = -1,		/**< Type is invalid */
	MM_CAM_ATTRS_TYPE_INT,			/**< Integer type attribute */
	MM_CAM_ATTRS_TYPE_DOUBLE,		/**< Double type attribute */
	MM_CAM_ATTRS_TYPE_STRING,		/**< UTF-8 String type attribute */
	MM_CAM_ATTRS_TYPE_DATA,			/**< Pointer type attribute */
} MMCamAttrsType;


/**
 * An enumeration for attribute validation type.
 */
typedef enum {
	MM_CAM_ATTRS_VALID_TYPE_INVALID = -1,	/**< Invalid validation type */
	MM_CAM_ATTRS_VALID_TYPE_NONE,		/**< Do not check validity */
	MM_CAM_ATTRS_VALID_TYPE_INT_ARRAY,	/**< validity checking type of integer array */
	MM_CAM_ATTRS_VALID_TYPE_INT_RANGE,	/**< validity checking type of integer range */
	MM_CAM_ATTRS_VALID_TYPE_DOUBLE_ARRAY,	/**< validity checking type of double array */
	MM_CAM_ATTRS_VALID_TYPE_DOUBLE_RANGE,	/**< validity checking type of double range */
} MMCamAttrsValidType;


/**
 * An enumeration for attribute access flag.
 */
typedef enum {
	MM_CAM_ATTRS_FLAG_DISABLED = 0,		/**< None flag is set. This means the attribute is not allowed to use.  */
	MM_CAM_ATTRS_FLAG_READABLE = 1 << 0,	/**< Readable */
	MM_CAM_ATTRS_FLAG_WRITABLE = 1 << 1,	/**< Writable */
	MM_CAM_ATTRS_FLAG_MODIFIED = 1 << 2,	/**< Modified */
	MM_CAM_ATTRS_FLAG_RW = MM_CAM_ATTRS_FLAG_READABLE | MM_CAM_ATTRS_FLAG_WRITABLE,	/**< Readable and Writable */
} MMCamAttrsFlag;


/**********************************
*          Stream data            *
**********************************/
/**
 * An enumeration for stream data type.
 */
typedef enum {
	MM_CAM_STREAM_DATA_YUV420 = 0,          /**< YUV420 Packed type - 1 plane */
	MM_CAM_STREAM_DATA_YUV422,              /**< YUV422 Packed type - 1 plane */
	MM_CAM_STREAM_DATA_YUV420SP,            /**< YUV420 SemiPlannar type - 2 planes */
	MM_CAM_STREAM_DATA_YUV420P,             /**< YUV420 Plannar type - 3 planes */
	MM_CAM_STREAM_DATA_YUV422P,             /**< YUV422 Plannar type - 3 planes */
	MM_CAM_STREAM_DATA_ENCODED,             /**< Encoded data type - 1 plane */
	MM_CAM_STREAM_DATA_DEPTH,               /**< Depth data type - 1 plane */
	MM_CAM_STREAM_DATA_RGB                  /**< RGB data type - 1 plane */
} MMCamStreamData;


/*=======================================================================================
| STRUCTURE DEFINITIONS									|
========================================================================================*/
/**
 * A structure for attribute information
 */
typedef struct {
	MMCamAttrsType type;
	MMCamAttrsFlag flag;
	MMCamAttrsValidType validity_type;

	/**
	 * A union that describes validity of the attribute.
	 * Only when type is 'MM_CAM_ATTRS_TYPE_INT' or 'MM_CAM_ATTRS_TYPE_DOUBLE',
	 * the attribute can have validity.
	 */
	union {
		/**
		 * Validity structure for integer array.
		 */
		 struct {
			int *array;		/**< a pointer of array */
			int count;		/**< size of array */
			int def;		/**< default value. Real value not index of array */
		} int_array;

		/**
		 * Validity structure for integer range.
		 */
		struct {
			int min;		/**< minimum range */
			int max;		/**< maximum range */
			int def;		/**< default value */
		} int_range;

		/**
		 * Validity structure for double array.
		 */
		 struct {
			double *array;		/**< a pointer of array */
			int count;		/**< size of array */
			double def;		/**< default value. Real value not index of array */
		} double_array;

		/**
		 * Validity structure for double range.
		 */
		struct {
			double min;		/**< minimum range */
			double max;		/**< maximum range */
			double def;		/**< default value */
		} double_range;
	};
} MMCamAttrsInfo;


/* General Structure */
/**
 * Structure for capture data.
 */
typedef struct {
	void *data;			/**< pointer of captured image */
	unsigned int length;		/**< length of captured image (in byte)*/
	MMPixelFormatType format;	/**< image format */
	int width;			/**< width of captured image */
	int height;			/**< height of captured image */
	int encoder_type;		/**< encoder type */
} MMCamcorderCaptureDataType;


/**
 * Structure for video stream data.
 */
#define BUFFER_MAX_PLANE_NUM 4

typedef struct {
	union {
		struct {
			unsigned char *yuv;
			unsigned int length_yuv;
		} yuv420, yuv422;
		struct {
			unsigned char *y;
			unsigned int length_y;
			unsigned char *uv;
			unsigned int length_uv;
		} yuv420sp;
		struct {
			unsigned char *y;
			unsigned int length_y;
			unsigned char *u;
			unsigned int length_u;
			unsigned char *v;
			unsigned int length_v;
		} yuv420p, yuv422p;
		struct {
			unsigned char *data;
			unsigned int length_data;
		} encoded, depth, rgb;
	} data;                         /**< pointer of captured stream */
	MMCamStreamData data_type;      /**< data type */
	unsigned int length_total;      /**< total length of stream buffer (in byte)*/
	unsigned int num_planes;        /**< number of planes */
	MMPixelFormatType format;       /**< image format */
	int width;                      /**< width of video buffer */
	int height;                     /**< height of video buffer */
	unsigned int timestamp;         /**< timestamp of stream buffer (msec)*/
	void *bo[BUFFER_MAX_PLANE_NUM]; /**< TBM buffer object */
	void *internal_buffer;          /**< Internal buffer pointer */
	int stride[BUFFER_MAX_PLANE_NUM];    /**< Stride of each plane */
	int elevation[BUFFER_MAX_PLANE_NUM]; /**< Elevation of each plane */
} MMCamcorderVideoStreamDataType;


/**
 * Structure for audio stream data.
 */
typedef struct {
	void *data;				/**< pointer of captured stream */
	unsigned int length;			/**< length of stream buffer (in byte)*/
	MMCamcorderAudioFormat format;		/**< audio format */
	int channel;				/**< number of channel of the stream */
	unsigned int timestamp;			/**< timestamp of stream buffer (msec)*/
	float volume_dB;			/**< dB value of audio stream */
} MMCamcorderAudioStreamDataType;


/**
 * Structure for muxed stream data.
 */
typedef struct {
	void *data;             /**< pointer of muxed stream */
	unsigned int length;    /**< length of stream buffer (in byte) */
	unsigned long long offset;  /**< current offset for data */
} MMCamcorderMuxedStreamDataType;


/**
  * Prerequisite information for mm_camcorder_create()
  * The information to set prior to create.
  */
typedef struct {
	enum MMVideoDeviceType videodev_type;	/**< Video device type */
	/* For future use */
	int reserved[4];			/**< reserved fields */
} MMCamPreset;


/**
 * Report structure of recording file
 */
typedef struct {
	char *recording_filename;		/**< File name of stored recording file. Please free after using. */
} MMCamRecordingReport; /**< report structure definition of recording file */


/**
 * Face detect defailed information
 */
typedef struct _MMCamFaceInfo {
	int id;                                 /**< id of each face */
	int score;                              /**< score of each face */
	MMRectType rect;                        /**< area of face */
} MMCamFaceInfo;

/**
 * Face detect information
 */
typedef struct _MMCamFaceDetectInfo {
	int num_of_faces;                       /**< number of detected faces */
	MMCamFaceInfo *face_info;               /**< face information, this should be freed after use it. */
} MMCamFaceDetectInfo;


/*=======================================================================================
| TYPE DEFINITIONS									|
========================================================================================*/
/**
 *	Function definition for video stream callback.
 *  Be careful! In this function, you can't call functions that change the state of camcorder such as mm_camcorder_stop(),
 *  mm_camcorder_unrealize(), mm_camcorder_record(), mm_camcorder_commit(), and mm_camcorder_cancel(), etc.
 *  Please don't hang this function long. It may cause low performance of preview or occur timeout error from video source.
 *  Also, you're not allowed to call mm_camcorder_stop() even in other context, while you're hanging this function.
 *  I recommend to you releasing this function ASAP.
 *
 *	@param[in]	stream			Reference pointer to video stream data
 *	@param[in]	user_param		User parameter which is received from user when callback function was set
 *	@return		This function returns true on success, or false on failure.
 *	@remarks		This function is issued in the context of gstreamer (video sink thread).
 */
typedef gboolean (*mm_camcorder_video_stream_callback)(MMCamcorderVideoStreamDataType *stream, void *user_param);


/**
 *	Function definition for audio stream callback.
 *  Be careful! In this function, you can't call functions that change the state of camcorder such as mm_camcorder_stop(),
 *  mm_camcorder_unrealize(), mm_camcorder_record(), mm_camcorder_commit(), and mm_camcorder_cancel(), etc.
 *  Please don't hang this function long. It may cause low performance of camcorder or occur timeout error from audio source.
 *  I recommend to you releasing this function ASAP.
 *
 *	@param[in]	stream			Reference pointer to audio stream data
 *	@param[in]	user_param		User parameter which is received from user when callback function was set
 *	@return		This function returns true on success, or false on failure.
 *	@remarks
 */
typedef gboolean (*mm_camcorder_audio_stream_callback)(MMCamcorderAudioStreamDataType *stream, void *user_param);


/**
 *	Function definition for muxed stream callback.
 *  Be careful! In this function, you can't call functions that change the state of camcorder such as mm_camcorder_stop(),
 *  mm_camcorder_unrealize(), mm_camcorder_record(), mm_camcorder_commit(), and mm_camcorder_cancel(), etc.
 *  Please don't hang this function long. It may cause low performance of camcorder or occur timeout error from encoding pipeline.
 *  I recommend to you releasing this function ASAP.
 *
 *	@param[in]	stream			Reference pointer to muxed stream data
 *	@param[in]	user_param		User parameter which is received from user when callback function was set
 *	@return		This function returns true on success, or false on failure.
 *	@remarks
 */
typedef gboolean (*mm_camcorder_muxed_stream_callback)(MMCamcorderMuxedStreamDataType *stream, void *user_param);


/**
 *	Function definition for video capture callback.
 *  Like '#mm_camcorder_video_stream_callback', you can't call mm_camcorder_stop() while you are hanging this function.
 *
 *	@param[in]	frame			Reference pointer to captured data
 *	@param[in]	thumbnail		Reference pointer to thumbnail data
 *	@param[in]	user_param		User parameter which is received from user when callback function was set
 *	@return		This function returns true on success, or false on failure.
 *	@remarks		This function is issued in the context of gstreamer (video src thread).
 */
typedef gboolean (*mm_camcorder_video_capture_callback)(MMCamcorderCaptureDataType *frame, MMCamcorderCaptureDataType *thumbnail, void *user_param);


/*=======================================================================================
| GLOBAL FUNCTION PROTOTYPES								|
========================================================================================*/
/**
 *    mm_camcorder_create:\n
 *  Create camcorder object. This is the function that an user who wants to use mm_camcorder calls first.
 *  This function creates handle structure and initialize mutex, attributes, gstreamer.
 *  When this function success, it will return  a handle of newly created object.
 *  A user have to put the handle when he calls every function of mm_camcorder. \n
 *  Second argument of this function is the field to decribe pre-setting information of mm_camcorder such as which camera device it will use.
 *  Normally, MM_VIDEO_DEVICE_CAMERA0 is for Main camera(or Mega camera, Back camera),
 *  and MM_VIDEO_DEVICE_CAMERA1 is for VGA camera (or Front camera). If you want audio recording,
 *  please set MM_VIDEO_DEVICE_NONE. (No camera device is needed.)
 *
 *	@param[out]	camcorder	A handle of camcorder.
 *	@param[in]	info		Information for camera device. Depending on this information,
 *					camcorder opens different camera devices.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_destroy
 *	@pre		None
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_NULL
 *	@remarks	You can create multiple handles on a context at the same time. However,
 *			camcorder cannot guarantee proper operation because of limitation of resources, such as
 *			camera device, audio device, and display device.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean initialize_camcorder()
{
	int err;
	MMCamPreset cam_info;
#if 1
	cam_info.videodev_type = MM_VIDEO_DEVICE_CAMERA0;
#else
	// when you want to record audio only, enable this.
	cam_info.videodev_type = MM_VIDEO_DEVICE_NONE;
#endif

	err = mm_camcorder_create(&hcam, &cam_info);

	if (err != MM_ERROR_NONE) {
		printf("Fail to call mm_camcorder_create = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_create(MMHandleType *camcorder, MMCamPreset *info);


/**
 *    mm_camcorder_destroy:\n
 *  Destroy camcorder object. Release handle and all of the resources that were created in mm_camcorder_create().\n
 *  This is the finalizing function of mm_camcorder. If this function is not called or fails to call, the handle isn't released fully.
 *  This function releases attributes, mutexes, sessions, and handle itself. This function also removes all of remaining messages.
 *  So if your application should wait a certain message of mm_camcorder, please wait to call this function till getting the message.
 *
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_create
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_NULL
 *	@post		Because the handle is not valid, you can't check the state.
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean destroy_camcorder()
{
	int err;

	//Destroy camcorder handle
	err = mm_camcorder_destroy(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_destroy  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_destroy(MMHandleType camcorder);


/**
 *    mm_camcorder_realize:\n
 *  Allocate resources for camcorder and initialize it.
 *  This also creates streamer pipeline. So you have to set attributes that are pivotal to create
 *  the pipeline before calling this function. This function also takes a roll to manage confliction
 *  between different applications which use camcorder. For example, if you try to use camcorder when
 *  other application that is more important such as call application, this function will return
 *  'MM_ERROR_POLICY_BLOCKED'. On the contrary, if your application that uses camcorder starts to launch
 *  while another application that uses speaker and has lower priority, your application will kick
 *  another application.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_unrealize
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_NULL
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_READY
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

//For image capturing
gboolean initialize_image_capture()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	//Set video device as 'camera0' (main camera device)
	cam_info.videodev_type = MM_VIDEO_DEVICE_CAMERA0;

	err = mm_camcorder_create(&hcam, &cam_info);

	if (err != MM_ERROR_NONE) {
		printf("Fail to call mm_camcorder_create = %x\n", err);
		return FALSE;
	}

	mm_camcorder_set_message_callback(hcam,(MMMessageCallback)msg_callback, (void*)hcam);
	mm_camcorder_set_video_capture_callback(hcam,(mm_camcorder_video_capture_callback)camcordertest_video_capture_cb, (void*)hcam);

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_MODE, MM_CAMCORDER_MODE_IMAGE,
					  MMCAM_IMAGE_ENCODER, MM_IMAGE_CODEC_JPEG,
					  MMCAM_CAMERA_WIDTH, 640,
					  MMCAM_CAMERA_HEIGHT, 480,
					  MMCAM_CAMERA_FORMAT, MM_PIXEL_FORMAT_YUYV,
					  MMCAM_CAMERA_FPS, 30,
					  MMCAM_DISPLAY_ROTATION, MM_DISPLAY_ROTATION_270,
					  MMCAM_DISPLAY_HANDLE, (void*) hdisplay,          hsize,
					  MMCAM_CAPTURE_FORMAT, MM_PIXEL_FORMAT_ENCODED,
					  MMCAM_CAPTURE_WIDTH, 640,
					  MMCAM_CAPTURE_HEIGHT, 480,
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	err =  mm_camcorder_realize(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_realize  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

//For A/V capturing
gboolean initialize_video_capture()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	//Set video device as 'camera0' (main camera device)
	cam_info.videodev_type = MM_VIDEO_DEVICE_CAMERA0;

	err = mm_camcorder_create(&hcam, &cam_info);

	if (err != MM_ERROR_NONE) {
		printf("Fail to call mm_camcorder_create = %x\n", err);
		return FALSE;
	}

	mm_camcorder_set_message_callback(hcam,(MMMessageCallback)msg_callback, hcam);

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_MODE, MM_CAMCORDER_MODE_VIDEO,
					  MMCAM_AUDIO_DEVICE, MM_AUDIO_DEVICE_MIC,
					  MMCAM_AUDIO_ENCODER, MM_AUDIO_CODEC_AAC,
					  MMCAM_VIDEO_ENCODER, MM_VIDEO_CODEC_MPEG4,
					  MMCAM_FILE_FORMAT, MM_FILE_FORMAT_3GP,
					  MMCAM_CAMERA_WIDTH, 1280,
					  MMCAM_CAMERA_HEIGHT, 720,
					  MMCAM_CAMERA_FORMAT, MM_PIXEL_FORMAT_NV12,
					  MMCAM_CAMERA_FPS, 30,
					  MMCAM_AUDIO_SAMPLERATE, 44100,
					  MMCAM_AUDIO_FORMAT, MM_CAMCORDER_AUDIO_FORMAT_PCM_S16_LE,
					  MMCAM_AUDIO_CHANNEL, 2,
					  MMCAM_DISPLAY_ROTATION, MM_DISPLAY_ROTATION_270,
					  MMCAM_DISPLAY_HANDLE, (void*) hdisplay,		hsize,
					  MMCAM_TARGET_FILENAME, TARGET_FILENAME, strlen(TARGET_FILENAME),
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	err =  mm_camcorder_realize(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_realize  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

//For audio(only) capturing
gboolean initialize_audio_capture()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	//Set no video device, because audio recording doesn't need video input.
	cam_info.videodev_type = MM_VIDEO_DEVICE_NONE;

	err = mm_camcorder_create(&hcam, &cam_info);

	if (err != MM_ERROR_NONE) {
		printf("Fail to call mm_camcorder_create = %x\n", err);
		return FALSE;
	}

	mm_camcorder_set_message_callback(hcam,(MMMessageCallback)msg_callback, (void*)hcam);

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_MODE, MM_CAMCORDER_MODE_AUDIO,
					  MMCAM_AUDIO_DEVICE, MM_AUDIO_DEVICE_MIC,
					  MMCAM_AUDIO_ENCODER, MM_AUDIO_CODEC_AAC,
					  MMCAM_FILE_FORMAT, MM_FILE_FORMAT_3GP,
					  MMCAM_AUDIO_SAMPLERATE, 44100,
					  MMCAM_AUDIO_FORMAT, MM_CAMCORDER_AUDIO_FORMAT_PCM_S16_LE,
					  MMCAM_AUDIO_CHANNEL, 2,
					  MMCAM_TARGET_FILENAME, TARGET_FILENAME, strlen(TARGET_FILENAME),
					  MMCAM_TARGET_TIME_LIMIT, 360000,
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	err =  mm_camcorder_realize(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_realize  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}
 *	@endcode
 */
int mm_camcorder_realize(MMHandleType camcorder);


/**
 *    mm_camcorder_unrealize:\n
 *  Uninitialize camcoder resources and free allocated memory.
 *  Most important resource that is released here is gstreamer pipeline of mm_camcorder.
 *  Because most of resources, such as camera device, video display device, and audio I/O device, are operating on the gstreamer pipeline,
 *  this function should be called to release its resources.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_realize
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_READY
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_NULL
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean unrealize_camcorder()
{
	int err;

	//Release all resources of camcorder handle
	err =  mm_camcorder_unrealize(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_unrealize  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_unrealize(MMHandleType camcorder);


/**
 *	mm_camcorder_start:\n
 *   Start previewing. (Image/Video mode)
 *  'mm_camcorder_video_stream_callback' is activated after calling this function.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_stop
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_READY
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_PREPARE
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

//For image capturing
gboolean initialize_image_capture()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	//Set video device as 'camera0' (main camera device)
	cam_info.videodev_type = MM_VIDEO_DEVICE_CAMERA0;

	err = mm_camcorder_create(&hcam, &cam_info);

	if (err != MM_ERROR_NONE) {
			printf("Fail to call mm_camcorder_create = %x\n", err);
			return FALSE;
	}

	mm_camcorder_set_message_callback(hcam,(MMMessageCallback)msg_callback, (void*)hcam);
	mm_camcorder_set_video_capture_callback(hcam,(mm_camcorder_video_capture_callback)camcordertest_video_capture_cb, (void*)hcam);

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_MODE, MM_CAMCORDER_MODE_IMAGE,
					  MMCAM_IMAGE_ENCODER, MM_IMAGE_CODEC_JPEG,
					  MMCAM_CAMERA_WIDTH, 640,
					  MMCAM_CAMERA_HEIGHT, 480,
					  MMCAM_CAMERA_FORMAT, MM_PIXEL_FORMAT_YUYV,
					  MMCAM_CAMERA_FPS, 30,
					  MMCAM_DISPLAY_ROTATION, MM_DISPLAY_ROTATION_270,
					  MMCAM_DISPLAY_HANDLE, (void*) hdisplay,          hsize,
					  MMCAM_CAPTURE_FORMAT, MM_PIXEL_FORMAT_ENCODED,
					  MMCAM_CAPTURE_WIDTH, 640,
					  MMCAM_CAPTURE_HEIGHT, 480,
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	err =  mm_camcorder_realize(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_realize  = %x\n", err);
		return FALSE;
	}

	// start camcorder
	err = mm_camcorder_start(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_start  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

//For A/V capturing
gboolean initialize_video_capture()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	//Set video device as 'camera0' (main camera device)
	cam_info.videodev_type = MM_VIDEO_DEVICE_CAMERA0;

	err = mm_camcorder_create(&hcam, &cam_info);

	if (err != MM_ERROR_NONE) {
			printf("Fail to call mm_camcorder_create = %x\n", err);
			return FALSE;
	}

	mm_camcorder_set_message_callback(hcam,(MMMessageCallback)msg_callback, hcam);

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_MODE, MM_CAMCORDER_MODE_VIDEO,
					  MMCAM_AUDIO_DEVICE, MM_AUDIO_DEVICE_MIC,
					  MMCAM_AUDIO_ENCODER, MM_AUDIO_CODEC_AAC,
					  MMCAM_VIDEO_ENCODER, MM_VIDEO_CODEC_MPEG4,
					  MMCAM_FILE_FORMAT, MM_FILE_FORMAT_3GP,
					  MMCAM_CAMERA_WIDTH, 1280,
					  MMCAM_CAMERA_HEIGHT, 720,
					  MMCAM_CAMERA_FORMAT, MM_PIXEL_FORMAT_NV12,
					  MMCAM_CAMERA_FPS, 30,
					  MMCAM_AUDIO_SAMPLERATE, 44100,
					  MMCAM_AUDIO_FORMAT, MM_CAMCORDER_AUDIO_FORMAT_PCM_S16_LE,
					  MMCAM_AUDIO_CHANNEL, 2,
					  MMCAM_DISPLAY_ROTATION, MM_DISPLAY_ROTATION_270,
					  MMCAM_DISPLAY_HANDLE, (void*) hdisplay,		hsize,
					  MMCAM_TARGET_FILENAME, TARGET_FILENAME, strlen(TARGET_FILENAME),
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	err =  mm_camcorder_realize(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_realize  = %x\n", err);
		return FALSE;
	}

	// start camcorder
	err = mm_camcorder_start(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_start  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

//For audio(only) capturing
gboolean initialize_audio_capture()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	//Set no video device, because audio recording doesn't need video input.
	cam_info.videodev_type = MM_VIDEO_DEVICE_NONE;

	err = mm_camcorder_create(&hcam, &cam_info);

	if (err != MM_ERROR_NONE) {
		printf("Fail to call mm_camcorder_create = %x\n", err);
		return FALSE;
	}

	mm_camcorder_set_message_callback(hcam,(MMMessageCallback)msg_callback, (void*)hcam);

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_MODE, MM_CAMCORDER_MODE_AUDIO,
					  MMCAM_AUDIO_DEVICE, MM_AUDIO_DEVICE_MIC,
					  MMCAM_AUDIO_ENCODER, MM_AUDIO_CODEC_AAC,
					  MMCAM_FILE_FORMAT, MM_FILE_FORMAT_3GP,
					  MMCAM_AUDIO_SAMPLERATE, 44100,
					  MMCAM_AUDIO_FORMAT, MM_CAMCORDER_AUDIO_FORMAT_PCM_S16_LE,
					  MMCAM_AUDIO_CHANNEL, 2,
					  MMCAM_TARGET_FILENAME, TARGET_FILENAME, strlen(TARGET_FILENAME),
					  MMCAM_TARGET_TIME_LIMIT, 360000,
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	err =  mm_camcorder_realize(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_realize  = %x\n", err);
		return FALSE;
	}

	// start camcorder
	err = mm_camcorder_start(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_start  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}
 *	@endcode
 */
int mm_camcorder_start(MMHandleType camcorder);


/**
 *    mm_camcorder_stop:\n
 *  Stop previewing. (Image/Video mode)
 *  This function will change the status of pipeline. If an application doesn't return callbacks
 *  of camcorder, this function can be locked. For example, if your application still
 *  holds '#mm_camcorder_video_capture_callback' or '#mm_camcorder_video_stream_callback',
 *  this function could be hung. So users have to return every callback before calling this function.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_start
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_PREPARE
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_READY
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean stop_camcorder()
{
	int err;

	//Stop preview
	err =  mm_camcorder_stop(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_stop  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_stop(MMHandleType camcorder);


/**
 *    mm_camcorder_capture_start:\n
 *  Start capturing of still images. (Image mode only)
 *  Captured image will be delievered through 'mm_camcorder_video_capture_callback'.
 *  So basically, the operation is working asynchronously. \n
 *  When a user call this function, MSL will stop to retrieving preview from camera device.
 *  Then set capture resolution, pixel format, and encoding type to camera driver. After resuming,
 *  camera can get still image.  A user will be notified by
 *  'MM_MESSAGE_CAMCORDER_CAPTURED' message when capturing succeed. When a user sets
 *  multishot (by setting multiple number to MMCAM_CAPTURE_COUNT), the message
 *  will be called multiple time. You can get the number of image from 'code' of
 *  'MMMessageParamType'.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_capture_stop
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_PREPARE
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_CAPTURING
 *	@remarks	To call this function, preview should be started successfully.\n
 *			This function is a pair of mm_camcorder_capture_stop().
 *			So user should call mm_camcorder_capture_stop() after getting captured image.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean capturing_picture()
{
	int err;

	err =  mm_camcorder_capture_start(hcam);
	if (err < 0)
	{
		printf("Fail to call mm_camcorder_capture_start  = %x\n", err);
		return FALSE;
	}

	//mm_camcorder_capture_stop should be called after getting
	//MM_MESSAGE_CAMCORDER_CAPTURED message.

	return TRUE;
}


 *	@endcode
 */
int mm_camcorder_capture_start(MMHandleType camcorder);


/**
 *    mm_camcorder_capture_stop:\n
 *  Stop capturing of still images. (Image mode only)
 *  This function notifies the end of capturing and launch preview again.
 *  Just as mm_camcorder_capture_start(), this funciton stops still image stream and set preview information such as
 *  resolution, pixel format, and framerate to camera driver. Then it command to start preview.
 *  If you don't call this, preview will not be displayed even though capturing was finished.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_capture_start
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_CAPTURING
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_PREPARE
 *	@remarks	To call this function, a user has to call mm_camcorder_capture_start() first.\n
 *			This is not a function to stop multishot in the middle of operation. For that,
 *			please use '#MMCAM_CAPTURE_BREAK_CONTINUOUS_SHOT' instead.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean capturing_picture_stop()
{
	int err;

	err =  mm_camcorder_capture_stop(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_capture_stop  = %x\n", err);
		return FALSE;
	}

	//After calling upper function, preview will start.

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_capture_stop(MMHandleType camcorder);


/**
 *    mm_camcorder_record:\n
 *  Start recording. (Audio/Video mode only)
 *  Camcorder starts to write a file when you call this function. You can specify the name of file
 *  using '#MMCAM_TARGET_FILENAME'. Beware, if you fail to call mm_camcorder_commit() or mm_camcorder_cancel(),
 *  the recorded file is still on the storage.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_pause
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_PREPARE
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_RECORDING
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean record_and_cancel_video_file()
{
	int err;

	// Start recording
	err =  mm_camcorder_record(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_record  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_record(MMHandleType camcorder);


/**
 *    mm_camcorder_pause:\n
 *  Pause A/V recording or Audio recording. (Audio/Video mode only)
 *  On video recording, you can see preview while on pausing. So mm_camcorder cuts video stream path to encoder and keep the flow to preview.
 *  If you call mm_camcorder_commit() while on pausing, the recorded file only has Audio and Video stream which were generated before pause().
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_record
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_RECORDING
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_PAUSED
 *	@remarks	Even though this function is for pausing recording, small amount of buffers could be recorded after pause().
 *			Because the buffers which are existed in the queue were created before pause(), the buffers should be recorded.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean record_pause_and_resume_recording()
{
	int err;

	// Start recording
	err =  mm_camcorder_record(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_record  = %x\n", err);
		return FALSE;
	}

	// Wait while recording...

	// Pause
	err =  mm_camcorder_pause(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_pause  = %x\n", err);
		return FALSE;
	}

	// Pausing...

	// Resume
	err =  mm_camcorder_record(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_record  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}


 *	@endcode
 */
int mm_camcorder_pause(MMHandleType camcorder);


/**
 *    mm_camcorder_commit:\n
 *  Stop recording and save results.  (Audio/Video mode only)\n
 *  After starting recording, encoded data frame will be stored in the location specified in MMCAM_TARGET_FILENAME.
 *  Some encoder or muxer require a certain type of finalizing such as adding some information to header.
 *  This function takes that roll. So if you don't call this function after recording, the result file may not be playable.\n
 *  After committing successfully, camcorder resumes displaying preview (video recording case).
 *  Because this is the function for saving the recording result, the operation is available
 *  only when the mode of camcorder is MM_CAMCORDER_MODE_AUDIO or MM_CAMCORDER_MODE_VIDEO.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_cancel
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_RECORDING
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_PREPARE
 *	@remarks	This function can take a few second when recording time is long.
 *			and if there are only quite few input buffer from video src or audio src,
 *			committing could be failed.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean record_and_save_video_file()
{
	int err;

	// Start recording
	err =  mm_camcorder_record(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_record  = %x\n", err);
		return FALSE;
	}

	// Wait while recording for test...
	// In normal case, mm_camcorder_record() and mm_camcorder_commit() aren't called in the same function.

	// Save file
	err =  mm_camcorder_commit(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_commit  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_commit(MMHandleType camcorder);


/**
 *	mm_camcorder_cancel:\n
 *    Stop recording and discard the result. (Audio/Video mode only)
 *	When a user want to finish recording without saving the result file, this function can be used.
 *	Like mm_camcorder_commit(), this function also stops recording, release related resources(like codec) ,and goes back to preview status.
 *	However, instead of saving file, this function unlinks(delete) the result.\n
 *	Because this is the function for canceling recording, the operation is available
 *	only when mode is MM_CAMCORDER_MODE_AUDIO or MM_CAMCORDER_MODE_VIDEO.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_commit
 *	@pre		Previous state of mm-camcorder should be MM_CAMCORDER_STATE_RECORDING
 *	@post		Next state of mm-camcorder will be MM_CAMCORDER_STATE_PREPARE
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean record_and_cancel_video_file()
{
	int err;

	// Start recording
	err =  mm_camcorder_record(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_record  = %x\n", err);
		return FALSE;
	}

	// Wait while recording...

	// Cancel recording
	err =  mm_camcorder_cancel(hcam);
	if (err < 0) {
		printf("Fail to call mm_camcorder_cancel  = %x\n", err);
		return FALSE;
	}

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_cancel(MMHandleType camcorder);


/**
 *    mm_camcorder_set_message_callback:\n
 *  Set callback for receiving messages from camcorder. Through this callback function, camcorder
 *  sends various message including status changes, asynchronous error, capturing, and limitations.
 *  One thing you have to know is that message callback is working on the main loop of application.
 *  So until releasing the main loop, message callback will not be called.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@param[in]	callback	Function pointer of callback function. Please refer 'MMMessageCallback'.
 *	@param[in]	user_data	User parameter for passing to callback function.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		MMMessageCallback
 *	@pre		None
 *	@post		None
 *	@remarks	registered 'callback' is called on main loop of the application. So until the main loop is released, 'callback' will not be called.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean setting_msg_callback()
{
	//set callback
	mm_camcorder_set_message_callback(hcam,(MMMessageCallback)msg_callback, (void*)hcam);

	return TRUE;
}


 *	@endcode
 */
int mm_camcorder_set_message_callback(MMHandleType camcorder, MMMessageCallback callback, void *user_data);


/**
 *    mm_camcorder_set_video_stream_callback:\n
 *  Set callback for user defined video stream callback function.
 *  Users can retrieve video frame using registered callback.
 *  The callback function holds the same buffer that will be drawed on the display device.
 *  So if an user change the buffer, it will be displayed on the device.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@param[in]	callback	Function pointer of callback function.
 *	@param[in]	user_data	User parameter for passing to callback function.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_video_stream_callback
 *	@pre		None
 *	@post		None
 *	@remarks	registered 'callback' is called on internal thread of camcorder. Regardless of the status of main loop, this function will be called.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean setting_video_stream_callback()
{
	//set callback
	mm_camcorder_set_video_stream_callback(hcam, (mm_camcorder_video_stream_callback)camcordertest_video_stream_cb, (void*)hcam);

	return TRUE;
}
 *	@endcode
 */
int mm_camcorder_set_video_stream_callback(MMHandleType camcorder, mm_camcorder_video_stream_callback callback, void *user_data);


/**
 *    mm_camcorder_set_video_capture_callback:\n
 *  Set callback for user defined video capture callback function.  (Image mode only)
 *  mm_camcorder deliever captured image through the callback.\n
 *  Normally, this function provides main captured image and thumnail image. But depending on the environment,
 *  thumnail would not be available. Information related with main captured image and thumnail image is also included
 *  in the argument of the callback function.
 *  For more detail information of callback, please refer 'mm_camcorder_video_capture_callback'.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@param[in]	callback	Function pointer of callback function.
 *	@param[in]	user_data	User parameter for passing to callback function.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_video_capture_callback
 *	@pre		None
 *	@post		None
 *	@remarks	registered 'callback' is called on internal thread of camcorder. Regardless of the status of main loop, this function will be called.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean setting_capture_callback()
{
	//set callback
	mm_camcorder_set_video_capture_callback(hcam,(mm_camcorder_video_capture_callback)camcordertest_video_capture_cb, (void*)hcam);

	return TRUE;
}
 *	@endcode
 */
int mm_camcorder_set_video_capture_callback(MMHandleType camcorder, mm_camcorder_video_capture_callback callback, void *user_data);


/**
 *    mm_camcorder_set_audio_stream_callback:\n
 *  Set callback for user defined audio stream callback function.
 *  Users can retrieve audio data using registered callback.
 *  The callback function holds the same buffer that will be recorded.
 *  So if an user change the buffer, the result file will has the buffer.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@param[in]	callback	Function pointer of callback function.
 *	@param[in]	user_data	User parameter for passing to callback function.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_audio_stream_callback
 *	@pre		None
 *	@post		None
 *	@remarks	registered 'callback' is called on internal thread of camcorder. Regardless of the status of main loop, this function will be called.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean setting_audio_stream_callback()
{
	//set callback
	mm_camcorder_set_audio_stream_callback(hcam, (mm_camcorder_audio_stream_callback)camcordertest_audio_stream_cb, (void*)hcam);

	return TRUE;
}
 *  @endcode
 */
int mm_camcorder_set_audio_stream_callback(MMHandleType camcorder, mm_camcorder_audio_stream_callback callback, void *user_data);


/**
 *    mm_camcorder_set_muxed_stream_callback:\n
 *  Set callback for user defined muxed stream callback function.
 *  Users can retrieve muxed data using registered callback.
 *  The callback function holds the same buffer that will be recorded.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@param[in]	callback	Function pointer of callback function.
 *	@param[in]	user_data	User parameter for passing to callback function.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_muxed_stream_callback
 *	@pre		None
 *	@post		None
 *	@remarks	registered 'callback' is called on internal thread of camcorder. Regardless of the status of main loop, this function will be called.
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean setting_muxed_stream_callback()
{
	//set callback
	mm_camcorder_set_muxed_stream_callback(hcam, (mm_camcorder_muxed_stream_callback)camcordertest_muxed_stream_cb, (void*)hcam);

	return TRUE;
}
 *  @endcode
 */
int mm_camcorder_set_muxed_stream_callback(MMHandleType camcorder, mm_camcorder_muxed_stream_callback callback, void *user_data);


/**
 *    mm_camcorder_get_state:\n
 *  Get the current state of camcorder.
 *  mm_camcorder is working on the base of its state. An user should check the state of mm_camcorder before calling its functions.
 *  If the handle is avaiable, user can retrieve the value.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@param[out]	state		On return, it contains current state of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		MMCamcorderStateType
 *	@pre		None
 *	@post		None
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean get_state_of_camcorder()
{
	MMCamcorderStateType state;

	//Get state of camcorder
	mm_camcorder_get_state(hcam, &state);
	printf("Current status is %d\n", state);

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_get_state(MMHandleType camcorder, MMCamcorderStateType *state);
int mm_camcorder_get_state2(MMHandleType camcorder, MMCamcorderStateType *state, MMCamcorderStateType *old_state);


/**
 *    mm_camcorder_get_attributes:\n
 *  Get attributes of camcorder with given attribute names. This function can get multiple attributes
 *  simultaneously. If one of attribute fails, this function will stop at the point.
 *  'err_attr_name' let you know the name of the attribute.
 *
 *	@param[in]	camcorder	Specifies the camcorder  handle.
 *	@param[out]	err_attr_name	Specifies the name of attributes that made an error. If the function doesn't make an error, this will be null. @n
 *					Free this variable after using.
 *	@param[in]	attribute_name	attribute name that user want to get.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@pre		None
 *	@post		None
 *	@remarks	You can retrieve multiple attributes at the same time.  @n
 *			This function must finish with 'NULL' argument.  @n
 *			ex) mm_camcorder_get_attributes(....... , NULL);
 *	@see		mm_camcorder_set_attributes
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean getting_attribute()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_get_attributes(hcamcorder, NULL,	//The second is the argument for debugging. But you can skip this.
					  MMCAM_MODE,  &mode,	//You have to input a pointer instead of variable itself.
					  NULL);		//mm_camcorder_set_attributes() should be finished with a NULL argument.

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_get_attributes(MMHandleType camcorder,  char **err_attr_name, const char *attribute_name, ...) G_GNUC_NULL_TERMINATED;



/**
 *    mm_camcorder_set_attributes:\n
 *  Set attributes of camcorder with given attribute names. This function can set multiple attributes
 *  simultaneously. If one of attribute fails, this function will stop at the point.
 *  'err_attr_name' let you know the name of the attribute.
 *
 *	@param[in]	camcorder	Specifies the camcorder  handle.
 *	@param[out]	err_attr_name	Specifies the name of attributes that made an error. If the function doesn't make an error, this will be null. @n
 *					Free this variable after using.
 *	@param[in]	attribute_name	attribute name that user want to set.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@pre		None
 *	@post		None
 *	@remarks	You can put multiple attributes to camcorder at the same time.  @n
 *			This function must finish with 'NULL' argument.  @n
 *			ex) mm_camcorder_set_attributes(....... , NULL);
 *	@see		mm_camcorder_get_attributes
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean setting_attribute()
{
	int err;
	MMCamPreset cam_info;
	char *err_attr_name = NULL;
	void * hdisplay = NULL;
	int hsize = 0;

	hdisplay = &ad.xid;		//xid of xwindow. This value can be different depending on your environment.
	hsize = sizeof(ad.xid);		//size of xid structure.

	// camcorder attribute setting
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,		//The second is the argument for debugging.
					  MMCAM_MODE, MM_CAMCORDER_MODE_IMAGE,
					  MMCAM_IMAGE_ENCODER, MM_IMAGE_CODEC_JPEG,
					  MMCAM_CAMERA_WIDTH, 640,
					  MMCAM_CAMERA_HEIGHT, 480,
					  MMCAM_CAMERA_FORMAT, MM_PIXEL_FORMAT_YUYV,
					  MMCAM_CAMERA_FPS, 30,
					  MMCAM_DISPLAY_ROTATION, MM_DISPLAY_ROTATION_270,
					  MMCAM_DISPLAY_HANDLE, (void*) hdisplay,          hsize,		//Beware some types require 'size' value, too. (STRING, DATA type attributes)
					  MMCAM_CAPTURE_FORMAT, MM_PIXEL_FORMAT_ENCODED,
					  MMCAM_CAPTURE_WIDTH, 640,
					  MMCAM_CAPTURE_HEIGHT, 480,
					  NULL);		//mm_camcorder_set_attributes() should be finished with a NULL argument.

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);		//When the function failed, 'err_attr_name' has the name of attr that made the error.
		if (err_attr_name) {
			free(err_attr_name);			//Please free 'err_attr_name', after using the argument.
			err_attr_name = NULL;
			return FALSE;
		}
	}

	return TRUE;
}
 *	@endcode
 */
int mm_camcorder_set_attributes(MMHandleType camcorder,  char **err_attr_name, const char *attribute_name, ...) G_GNUC_NULL_TERMINATED;


/**
 *    mm_camcorder_get_attribute_info:\n
 *  Get detail information of the attribute. To manager attributes, an user may want to know the exact character of the attribute,
 *  such as type, flag, and validity. This is the function to provide such information.
 *  Depending on the 'validity_type', validity union would be different. To know about the type of union, please refer 'MMCamAttrsInfo'.
 *
 *	@param[in]	camcorder	Specifies the camcorder  handle.
 *	@param[in]	attribute_name	attribute name that user want to get information.
 *	@param[out]	info		a structure that holds information related with the attribute.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@pre		None
 *	@post		None
 *	@remarks	If the function succeeds, 'info' holds detail information about the attribute, such as type,
 *			flag, validity_type, validity_values, and default values.
 *	@see		mm_camcorder_get_attributes, mm_camcorder_set_attributes
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean getting_info_from_attribute()
{
	MMCamAttrsInfo info;
	int err;

	err = mm_camcorder_get_attribute_info(handle, MMCAM_CAPTURE_HEIGHT, &info);
	if (err < 0) {
		printf("Fail to call mm_camcorder_get_attribute_info()");
		return FALSE;
	}

	//Now 'info' has many information about 'MMCAM_CAPTURE_HEIGHT'

	return TRUE;
}
 *	@endcode
 */
int mm_camcorder_get_attribute_info(MMHandleType camcorder, const char *attribute_name, MMCamAttrsInfo *info);


/**
 *    mm_camcorder_get_fps_list_by_resolution:\n
 *  Get detail information of the fps configure. To manager fps, an user may want to know the supported fps list by the current preview resolution,
 *  Gives attribute information structure, from the configure data.
 *  Depending on the 'validity_type', validity union would be different. To know about the type of union, please refer 'MMCamAttrsInfo'.
 *
 *	@param[in]	camcorder	Specifies the camcorder  handle.
 *	@param[in]	width	width value of the current Preview resolution.
 *	@param[in]	height	height value of the current Preview resolution.
 *	@param[out]	fps_info		a structure that holds information related with the attribute.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@pre		None
 *	@post		None
 *	@remarks	If the function succeeds, 'info' holds detail information about the attribute, such as type,
 *			flag, validity_type, validity_values, and default values.
 *	@see		mm_camcorder_get_attributes, mm_camcorder_set_attributes
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean getting_info_from_attribute()
{
	MMCamAttrsInfo info;
	int err;

	err = mm_camcorder_get_fps_list_by_resolution(handle, width, height, &info);
	if (err < 0) {
		printf("Fail to call mm_camcorder_get_attribute_info()");
		return FALSE;
	}

	//Now 'info' has many information about 'MMCAM_CAPTURE_HEIGHT'

	return TRUE;
}
 *	@endcode
 */
int mm_camcorder_get_fps_list_by_resolution(MMHandleType camcorder, int width, int height, MMCamAttrsInfo *fps_info);


/**
 *    mm_camcorder_init_focusing:\n
 *  Initialize focusing. \n
 *  This function stops focusing action and adjust the camera lens to initial position.
 *  Some camera applciation requires to initialize its lens position after releasing half shutter. In that case,
 *  this should be a good choice. Comparing with mm_camcorder_stop_focusing, this function not only stops focusing,
 *  but also initialize the lens. Preview image might be out-focused after calling this function.
 *	@param[in]	camcorder  A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@pre		The status of camcorder should be MM_CAMCORDER_STATE_PREPARE, MM_CAMCORDER_STATE_RECORDING, or MM_CAMCORDER_STATE_PAUSED.
 *	@post		None
 *	@remarks	None
 *	@see		mm_camcorder_start_focusing, mm_camcorder_stop_focusing
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean start_autofocus()
{
	int err;
	char * err_attr_name = NULL;

	// Set focus mode to 'AUTO' and scan range to 'AF Normal'.
	//You just need to set these values one time. After that, just call mm_camcorder_start_focusing().
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_CAMERA_FOCUS_MODE, MM_CAMCORDER_FOCUS_MODE_AUTO,
					  MMCAM_CAMERA_AF_SCAN_RANGE, MM_CAMCORDER_AUTO_FOCUS_NORMAL,
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	mm_camcorder_init_focusing(hcam);
	mm_camcorder_start_focusing(hcam);
	printf("Waiting for adjusting focus\n");

	// Waiting for 'MM_MESSAGE_CAMCORDER_FOCUS_CHANGED'

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_init_focusing(MMHandleType camcorder);


/**
 *    mm_camcorder_start_focusing:\n
 *  Start focusing. \n
 *  This function command to start focusing opeartion. Because focusing operation depends on mechanic or electric module,
 *  it may take small amount of time. (For ex, 500ms ~ 3sec). \n
 *  This function works asynchronously. When an user call this function,  it will return immediately.
 *  However, focusing operation will continue until it gets results.
 *  After finishing operation, you can get 'MM_MESSAGE_CAMCORDER_FOCUS_CHANGED' message.
 *  'param.code' of the message structure describes the fucusing was success or not.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@pre		None
 *	@post		None
 *	@remarks	None
 *	@see		mm_camcorder_init_focusing, mm_camcorder_stop_focusing
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean start_autofocus()
{
	int err;
	char * err_attr_name = NULL;

	// Set focus mode to 'AUTO' and scan range to 'AF Normal'.
	//You just need to set these values one time. After that, just call mm_camcorder_start_focusing().
	err = mm_camcorder_set_attributes((MMHandleType)hcam, &err_attr_name,
					  MMCAM_CAMERA_FOCUS_MODE, MM_CAMCORDER_FOCUS_MODE_AUTO,
					  MMCAM_CAMERA_AF_SCAN_RANGE, MM_CAMCORDER_AUTO_FOCUS_NORMAL,
					  NULL);

	if (err < 0) {
		printf("Set attrs fail. (%s:%x)\n", err_attr_name, err);
		if (err_attr_name) {
			free(err_attr_name);
			err_attr_name = NULL;
			return FALSE;
		}
	}

	mm_camcorder_init_focusing(hcam);
	mm_camcorder_start_focusing(hcam);
	printf("Waiting for adjusting focus\n");

	// Waiting for 'MM_MESSAGE_CAMCORDER_FOCUS_CHANGED'

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_start_focusing(MMHandleType camcorder);


/**
 *    mm_camcorder_stop_focusing:\n
 *  Stop focusing. This function halts focusing operation.\n
 *  This is the function to stop focusing in the middle of the operation. So if focusing is already finished or not started yet,
 *  this function will do nothing.
 *
 *	@param[in]	camcorder	A handle of camcorder.
 *	@return		This function returns zero(MM_ERROR_NONE) on success, or negative value with error code.\n
 *			Please refer 'mm_error.h' to know the exact meaning of the error.
 *	@see		mm_camcorder_init_focusing, mm_camcorder_start_focusing
 *	@pre		mm_camcorder_start_focusing() should be called before calling this function.
 *	@post		None
 *	@remarks	None
 *	@par example
 *	@code

#include <mm_camcorder.h>

gboolean stop_autofocus()
{
	int err;

	//Stop focusing
	mm_camcorder_stop_focusing(hcam);

	return TRUE;
}

 *	@endcode
 */
int mm_camcorder_stop_focusing(MMHandleType camcorder);

/* emit signal */
void mm_camcorder_emit_signal(MMHandleType camcorder, const char *object_name,
	const char *interface_name, const char *signal_name, int value);

/* check compatability between codec and file format */
int mm_camcorder_check_codec_fileformat_compatibility(const char *codec_type, int codec, int file_format);

/* external storage state management */
int mm_camcorder_manage_external_storage_state(MMHandleType camcorder, int storage_state);

/**
	@}
 */

#ifdef __cplusplus
}
#endif

#endif /* __MM_CAMCORDER_H__ */