summaryrefslogtreecommitdiff
path: root/doc/media_content_doc.h
blob: d27b8fdf5039f76c2d6b0ceb74c314a67e87d77c (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
/*
 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * 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.
 */


#ifndef __TIZEN_MEDIA_CONTENT_DOC_H__
#define __TIZEN_MEDIA_CONTENT_DOC_H__

/**
 * @defgroup CAPI_MEDIA_CONTENT_MODULE Media Content
 * @brief The Media Content API provides functions, enumerations used in the entire Content Service.
 *
 * @ingroup CAPI_CONTENT_FRAMEWORK
 *
 * @section CAPI_MEDIA_CONTENT_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_MEDIA_CONTENT_MODULE_OVERVIEW Overview
 * The Media Content API provides functions and enumerations used in the entire Content Service.\n
 * The information about media items i.e. image, audio, video and ebook, are managed in the content database and
 * operations that involve database requires an active connection with the media content service.\n
 * During media scanning, Media Service extract media information automatically. media information include basic file info like
 * path, size, modified time etc and some metadata like ID3tag, EXIF, thumbnail, etc. (thumbnail extracted only in Internal and SD card storage.) \n
 * Since 3.0, a thumbnail is not automatically extracted during media scanning. A thumbnail will be created only when media_info_generate_thumbnail() is called by any application. \n
 * Media content services do not manage hidden files. \n
 * The API provides functions for connecting (#media_content_connect()) and disconnecting (#media_content_disconnect()) from the media content service.
 *
 * The API consists of @ref CAPI_CONTENT_MEDIA_ALBUM_MODULE, @ref CAPI_CONTENT_MEDIA_BOOKMARK_MODULE, @ref CAPI_CONTENT_MEDIA_FACE_MODULE,
 * @ref CAPI_CONTENT_MEDIA_FILTER_MODULE, @ref CAPI_CONTENT_MEDIA_FOLDER_MODULE, @ref CAPI_CONTENT_MEDIA_GROUP_MODULE,
 * @ref CAPI_CONTENT_MEDIA_INFO_MODULE, @ref CAPI_CONTENT_MEDIA_PLAYLIST_MODULE, @ref CAPI_CONTENT_MEDIA_TAG_MODULE API.
 *
 * <table>
 * <tr>
 *    <th>API</th>
 *    <th>Description</th>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_ALBUM_MODULE </td>
 *    <td> Provide information about the media album. </td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_BOOKMARK_MODULE </td>
 *    <td> Provide information about the media bookmark. </td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_FACE_MODULE </td>
 *    <td> Provide information about the detected faces from image. </td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_FILTER_MODULE </td>
 *    <td> Provide functions for creating and destroying media filters.\n
 * Provide functions to get filter properties</td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_FOLDER_MODULE </td>
 *    <td> Provide information about folders (e.g. path, name, modification date) stored on the device.\n
 * Provide information about the media items present in the folders.</td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_GROUP_MODULE </td>
 *    <td> Provide information about the media group(e.g. media artist, album, genre, year). </td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_INFO_MODULE </td>
 *    <td> Provide generic information about media content items (i.e. image, audio, video, ebook and others).\n
 *  Provide details about audio files (e.g. name, genre etc) present in the device.\n
 *  Provide details about image files (e.g. width, height, orientation etc) present in the device.\n
 *  Provide details about video files (e.g. width, height, duration etc) present in the device.\n
 *  Provide details about ebook files (e.g. subject, author etc) present in the device.</td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_PLAYLIST_MODULE </td>
 *    <td> Provide information about the media playlist. </td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_TAG_MODULE </td>
 *    <td> Provide information about media tags.\n
 * Provide functions to insert or delete tag from database.\n
 * Provide functions to add and remove media item from tags in the database. </td>
 * </tr>
 * </table>
 *
 */

/**
 * @defgroup CAPI_CONTENT_MEDIA_FOLDER_MODULE Media Folder
 * @brief The Media folder API provides functions to get information about folders.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_FOLDER_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_FOLDER_MODULE_OVERVIEW Overview
 * A Folder is used to organize media content files i.e. image, audio, video, ebook files, in the physical storage of the device.
 * The Media Folder API provides functions to get basic information about existing folders e.g. folder name, path and modified time.
 * It also provides functions to get information related to media items present in the folder.
 *
 * For getting information about folder call the respective get functions e.g. to get path and name of a given folder call #media_folder_get_path() and #media_folder_get_name() function respectively and so on.\n
 * Similarly call media_folder_get_media_count_from_db() to get count of media items present in a given folder.
 * @subsection CAPI_CONTENT_MEDIA_FOLDER_FOREACH_OPERATIONS Foreach Operations
 * <div><table class="doxtable">
 *     <tr>
 *        <th><b>FOREACH</b></th>
 *        <th><b>CALLBACK</b></th>
 *        <th><b>DESCRIPTION</b></th>
 *     </tr>
 *     <tr>
 *        <td>media_folder_foreach_folder_from_db()</td>
 *        <td>media_folder_cb()</td>
 *        <td>Iterates over a folder information list</td>
 *     </tr>
 *     <tr>
 *        <td>media_folder_foreach_media_from_db()</td>
 *        <td>media_info_cb()</td>
 *        <td>Iterates media information trough the folder</td>
 *     </tr>
 * </table></div>
 *
 *
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_TAG_MODULE Media Tag (Deprecated)
 * @brief  The Media Tag API provides functions to manage media content tags.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_TAG_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_TAG_MODULE_OVERVIEW Overview
 * A Tag is a special piece of information that may be associated with media content items.
 * Tagging allows a user to organize large number of items into logical groups providing a simplified
 * and faster way of accessing media content items.\n\n
 * Media Tag API provides functions to get basic information about existing tags and manage tags
 * associated with Media Information (#media_info_h).
 * For inserting a new tag to the database call #media_tag_insert_to_db() function and for deleting existing tag from database
 * call media_tag_delete_from_db() function.\n
 * A Media item can be associated and dissociated from tags by calling #media_tag_add_media() and #media_tag_remove_media() function respectively.
 * Finally, #media_tag_update_to_db function should be called so as to update the given item in the media database.
 *
 * @subsection CAPI_CONTENT_MEDIA_TAG_FOREACH_OPERATIONS Foreach Operations
 * <div><table class="doxtable">
 *     <tr>
 *        <th><b>FOREACH</b></th>
 *        <th><b>CALLBACK</b></th>
 *        <th><b>DESCRIPTION</b></th>
 *     </tr>
 *     <tr>
 *        <td>media_tag_foreach_tag_from_db()</td>
 *        <td> media_tag_cb()</td>
 *        <td>Iterates through tags</td>
 *     </tr>
 *     <tr>
 *        <td>media_tag_foreach_media_from_db()</td>
 *        <td>media_info_cb()</td>
 *        <td> Iterates through the media items for a given tag
 </td>
 *     </tr>
 * </table></div>
 *
 *
 *
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_FILTER_MODULE Media Filter
 * @brief The Media Filter API provides functions to manage media filters.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_FILTER_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_FILTER_MODULE_OVERVIEW Overview
 * A Media filter is required for filtering information associated with media Folder, Tag, Audio, Bookmark and Media Information on basis of details like offset, count, order and condition for searching.\n
 * @ref CAPI_CONTENT_MEDIA_FILTER_MODULE API provides functions for creating and destroying media filters. \n
 * It provide functions to set properties and also provide functions for getting filter properties associated with a given media filter.
 *
 *\n
 * Setting media filter properties helps to limit the number of filtered items as following:
 * - Offset - Used to set starting position of the filter's search
 * - Count - Used to set number of items to be searched from offset
 * - Condition - Used to set keyword which user want to search
 * - Order - Used to set type of media to be ordered by the filter
 *
 *\n
 * The Media Filter API provides functions for creating and destroying media filters.\n
 * It provide functions to set and get properties of the filter associated with a given media filter. \n
 * For creating a media filter (@ref filter_h), call #media_filter_create() function and call #media_filter_destroy() function for destroying an existing filter. \n
 * For setting filter properties call the respective set functions e.g. to set offset position, call #media_filter_set_offset() function and
 * call #media_filter_set_condition() function to set the condition like an sql "where" clause. \n
 * Searchable expression can use one of the following forms:
 *
 *
 * - column = value
 * - column > value
 * - column >= value
 * - column < value
 * - column <= value
 * - value = column
 * -  * - value > column
 * - value >= column
 * - value < column
 * - value <= column
 * - column IN (value)
 * - column IN (value-list)
 * - column NOT IN (value)
 * - column NOT IN (value-list)
 * - column LIKE value
 * - expression1 AND expression2 OR expression3
 *
 *\n
 *
 * Note that if you want to set qoutation(" ' " or " " ") as value of LIKE operator, you should use two times.(" '' " or " "" ") \n
 * And the optional ESCAPE clause is supported. Both percent symbol("%") and underscore symbol("_") are used in the LIKE pattern.\n
 * If these characters are used as value of LIKE operation, then the expression following the ESCAPE clause of sqlite will be ignored. \n
 *
 * For example,
 * - column LIKE ('#%') ESCAPE('#') - "#" is escape character, it will be ignored.
 *\n
 *
 *
 * Similarly, call respective get function to get filter properties e.g. call #media_filter_get_condition() function
 * to get condition of the media filter and call #media_filter_get_order() function to get order (#media_content_order_e) of the filtered items and so on.
 *
 * @section CAPI_CONTENT_MEDIA_FILTER_MODULE_EXAMPLE Example
 * You can set the filter as follows.
 * @code
 *
 * #include <stdio.h>
 * #include <string.h>
 * #include <media_content.h>
 *
 * #define MAX_QUERY_LEN 512
 * #define DLOG_TAG "media-content-test"
 *
 * filter_h g_filter = NULL;
 *
 * int create_filter()
 * {
 *     int ret = MEDIA_CONTENT_ERROR_NONE;
 *     char condition[MAX_QUERY_LEN] = {0,};
 *
 *     snprintf(condition,sizeof(condition),"%s = 0",MEDIA_TYPE);
 *
 *     ret = media_filter_create(&g_filter);
 *     ret = media_filter_set_condition(g_filter, condition, MEDIA_CONTENT_COLLATE_DEFAULT);
 *     ret = media_filter_set_order(g_filter, MEDIA_CONTENT_ORDER_DESC, MEDIA_ARTIST, MEDIA_CONTENT_COLLATE_DEFAULT);
 *
 *     return ret;
 * }
 *
 * @endcode
 * And you can use the created filter as follows.
 * @code
 *
 * int get_media_count()
 * {
 *     int ret = MEDIA_CONTENT_ERROR_NONE;
 *     int media_cnt = 0;
 *
 *     ret = media_info_get_media_count_from_db(g_filter, &media_cnt);
 *     dlog_print(DLOG_DEBUG, DLOG_TAG, "media count [%d]\n", media_cnt);
 *
 *     return ret;
 * }
 *
 * @endcode
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE Audio Metadata
 * @brief The Audio Metadata API provides functions to get information about audio items.
 *
 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_AUDIO_META_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_AUDIO_META_MODULE_OVERVIEW Overview
 * The Audio Metadata API provides functions to get information about stored audio files.
 * Its purpose is twofold:
 * - to provide information about audio content
 * - to organize audio content logically (grouping)
 *
 * API provides functions that allow to check attributes of audio files. Following information about audio content is provided:
 *
 * <table>
 * <tr>
 * <th>Attribute</th>
 * <th>Filter Keyword</th>
 * <th>Comments</th>
 * </tr>
 * <tr>
 * <td>album</td>
 * <td>#MEDIA_ALBUM</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>artist</td>
 * <td>#MEDIA_ARTIST</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>album_artist</td>
 * <td>#MEDIA_ALBUM_ARTIST</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>genre</td>
 * <td>#MEDIA_GENRE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>composer</td>
 * <td>#MEDIA_COMPOSER</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>year</td>
 * <td>#MEDIA_YEAR</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>recorded_date</td>
 * <td>#MEDIA_RECORDED_DATE</td>
 * <td>Get from metadata if exist. if not, same as modified time.</td>
 * </tr>
 * <tr>
 * <td>copyright</td>
 * <td></td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>track_num</td>
 * <td>#MEDIA_TRACK_NUM</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>bit_rate</td>
 * <td></td>
 * <td>Bitrate</td>
 * </tr>
 * <tr>
 * <td>bitpersample</td>
 * <td></td>
 * <td>Bit per sample</td>
 * </tr>
 * <tr>
 * <td>sample_rate</td>
 * <td></td>
 * <td>Samplerate</td>
 * </tr>
 * <tr>
 * <td>channel</td>
 * <td></td>
 * <td>Channel</td>
 * </tr>
 * <tr>
 * <td>duration</td>
 * <td>#MEDIA_DURATION</td>
 * <td>Duration</td>
 * </tr>
 * <tr>
 * <td>rating</td>
 * <td></td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * </table>
 * \n
 *
 * <p>
 * For getting the audio handle (#audio_meta_h) from the media information (#media_info_h), call #media_info_get_audio() function.\n
 * For getting the information related to audio files stored in the device, call the respective get functions e.g. to get the artist of a audio, call #audio_meta_get_artist() function and
 * to get bitrate of a audio, call #audio_meta_get_bit_rate() function and so on.\n
 * When the audio handle is no longer needed, it should be destroyed by calling #audio_meta_destroy() function.\n
 *
 *
 *
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE Media Playlist (Deprecated)
 * @brief The Media Playlist API provides functions to manage media playlists.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_PLAYLIST_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_PLAYLIST_MODULE_OVERVIEW Overview
 * A Playlist is a list of songs which can be played in some sequence i.e. sequential or shuffled order.
 * The Media Playlist API provides functions to insert, delete or updates a media playlist in the database.
 *
 * For inserting new playlist (#media_playlist_h) in the database, call  #media_playlist_insert_to_db() function and call #media_playlist_delete_from_db() function
 * to delete a playlist from the database.\n
 * For adding a media item to the playlist, call #media_playlist_add_media() function, for removing a media item from the playlist, call
 * #media_playlist_remove_media() function.\n
 * Finally, #media_playlist_update_to_db() function should be called so as to update the given item in the media database.
 *
 * @subsection CAPI_CONTENT_MEDIA_PLAYLIST_FOREACH_OPERATIONS Foreach Operations
 * <div><table class="doxtable">
 *     <tr>
 *        <th><b>FOREACH</b></th>
 *        <th><b>CALLBACK</b></th>
 *        <th><b>DESCRIPTION</b></th>
 *     </tr>
 *     <tr>
 *        <td>media_playlist_foreach_playlist_from_db()</td>
 *        <td>media_playlist_cb()</td>
 *        <td>Iterates through playlist</td>
 *     </tr>
 *     <tr>
 *        <td>media_playlist_foreach_media_from_db()</td>
 *        <td>media_info_cb()</td>
 *        <td>Iterates through playlist's items</td>
 *     </tr>
 * </table></div>
 *
 *
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_ALBUM_MODULE Media Album
 * @brief The Media Album API provides information related to album of media items.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_ALBUM_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_ALBUM_MODULE_OVERVIEW Overview
 * An album is a logical collection or grouping of related audio files. It is also used for filtering media items.\n
 * The Media Album API allows to manage media albums which contains all video and audio items from
 * the same album.
 *
 * The API provides functions to get and search media items in album group.
 * For getting the count of media items associated with a given album, call #media_album_get_media_count_from_db() function.
 *
 * @subsection CAPI_CONTENT_MEDIA_ALBUM_FOREACH_OPERATIONS Foreach Operations
 * <div><table class="doxtable">
 *     <tr>
 *        <th><b>FOREACH</b></th>
 *        <th><b>CALLBACK</b></th>
 *        <th><b>DESCRIPTION</b></th>
 *     </tr>
 *     <tr>
 *        <td>media_album_foreach_album_from_db()</td>
 *        <td>media_album_cb()</td>
 *        <td>Iterates through albums</td>
 *     </tr>
 *     <tr>
 *        <td>media_album_foreach_media_from_db()</td>
 *        <td>media_info_cb()</td>
 *        <td>Iterates through album's items</td>
 *     </tr>
 * </table></div>
 *
 *
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_GROUP_MODULE Media Group
 * @brief The Media Group API provides information related to artist of media group.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_GROUP_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_GROUP_MODULE_OVERVIEW Overview
 * A Media Group represents logical grouping of media files with respect to their group name. It is also used for filtering media items.\n
 *
 * The API provides functions to get and search image, video and audio items in media group.
 * For getting the count of media items associated with a given group, call #media_group_get_media_count_from_db() function.
 *
 *
 * @subsection CAPI_CONTENT_MEDIA_GROUP_FOREACH_OPERATIONS Foreach Operations
 * <div><table class="doxtable">
 *	<tr>
 *	   <th><b>FOREACH</b></th>
 *	   <th><b>CALLBACK</b></th>
 *	   <th><b>DESCRIPTION</b></th>
 *	</tr>
 *	<tr>
 *	   <td>media_group_foreach_group_from_db()</td>
 *	   <td> media_group_cb()</td>
 *	   <td>Iterates through group</td>
 *	</tr>
 *	<tr>
 *	   <td>media_group_foreach_media_from_db()</td>
 *	   <td>media_info_cb()</td>
 *	   <td>Iterates through group's items</td>
 *	</tr>
 * </table></div>
 *
 *
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_IMAGE_META_MODULE Image Metadata
 * @brief The Image Metadata API provides functions that allow to get information about
 * stored image files.
 *
 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_IMAGE_META_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_IMAGE_META_MODULE_OVERVIEW Overview
 * The Image Metadata API provides functions to get basic information associated with image files:
 * <table>
 * <tr>
 * <th>Attribute</th>
 * <th>Filter Keyword</th>
 * <th>Comments</th>
 * </tr>
 * <tr>
 * <td>width</td>
 * <td>#MEDIA_WIDTH</td>
 * <td>Width</td>
 * </tr>
 * <tr>
 * <td>height</td>
 * <td>#MEDIA_HEIGHT</td>
 * <td>Height</td>
 * </tr>
 * <tr>
 * <td>longitude</td>
 * <td>#MEDIA_LONGITUDE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>latitude</td>
 * <td>#MEDIA_LATITUDE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>altitude</td>
 * <td>#MEDIA_ALTITUDE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>exposure_time</td>
 * <td></td>
 * <td>Get from EXIF if exist.</td>
 * </tr>
 * <tr>
 * <td>fnumber</td>
 * <td></td>
 * <td>Get from EXIF if exist.</td>
 * </tr>
 * <tr>
 * <td>iso</td>
 * <td></td>
 * <td>Get from EXIF if exist.</td>
 * </tr>
 * <tr>
 * <td>model</td>
 * <td></td>
 * <td>Get from EXIF if exist.</td>
 * </tr>
 * <tr>
 * <td>date_taken</td>
 * <td>#MEDIA_DATETAKEN</td>
 * <td>Get from EXIF if exist.</td>
 * </tr>
 * <tr>
 * <td>orientation</td>
 * <td></td>
 * <td>Get from EXIF if exist.</td>
 * </tr>
 * <tr>
 * <td>is_360_content</td>
 * <td>#MEDIA_360</td>
 * <td>Whether 360 content or not.</td>
 * </tr>
 * </table>
 *
 * \n
 *
 *<p>
 * For getting the image handle (#image_meta_h) from the media information (#media_info_h), call #media_info_get_image() function.\n
 * For getting the information related to image files stored in the device call the respective get functions e.g. to get the width of a image, call #image_meta_get_width() function and
 * to get orientation (#media_content_orientation_e) of a image, call #image_meta_get_orientation() function and so on.\n
 * When the image handle is no longer needed, it should be destroyed by calling #image_meta_destroy() function.\n
 *
 */




/**
 * @defgroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE Video Metadata (Deprecated)
 * @brief The Video Metadata API provides functions to get information about video files present in the device.
 *
 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_VIDEO_META_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_VIDEO_META_MODULE_OVERVIEW Overview
 * The Video Metadata API provides functions to get information about video files present in the device.
 * Following information about video content (#video_meta_h) is provided:
 * <table>
 * <tr>
 * <th>Attribute</th>
 * <th>Filter Keyword</th>
 * <th>Comments</th>
 * </tr>
 * <tr>
 * <td>album</td>
 * <td>#MEDIA_ALBUM</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>artist</td>
 * <td>#MEDIA_ARTIST</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>album_artist</td>
 * <td>#MEDIA_ALBUM_ARTIST</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>genre</td>
 * <td>#MEDIA_GENRE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>composer</td>
 * <td>#MEDIA_COMPOSER</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>year</td>
 * <td>#MEDIA_YEAR</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>recorded_date</td>
 * <td>#MEDIA_RECORDED_DATE</td>
 * <td>Get from metadata if exist. if not, same as modified time.</td>
 * </tr>
 * <tr>
 * <td>copyright</td>
 * <td></td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>track_num</td>
 * <td>#MEDIA_TRACK_NUM</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>bit_rate</td>
 * <td></td>
 * <td>Bitrate</td>
 * </tr>
 * <tr>
 * <td>bitpersample</td>
 * <td></td>
 * <td>Bit per sample</td>
 * </tr>
 * <tr>
 * <td>sample_rate</td>
 * <td></td>
 * <td>Samplerate</td>
 * </tr>
 * <tr>
 * <td>channel</td>
 * <td></td>
 * <td>Channel</td>
 * </tr>
 * <tr>
 * <td>duration</td>
 * <td>#MEDIA_DURATION</td>
 * <td>Duration</td>
 * </tr>
 * <tr>
 * <td>rating</td>
 * <td></td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>rotation</td>
 * <td></td>
 * <td>Video rotation</td>
 * </tr>
 * <tr>
 * <td>width</td>
 * <td>#MEDIA_WIDTH</td>
 * <td>Width</td>
 * </tr>
 * <tr>
 * <td>height</td>
 * <td>#MEDIA_HEIGHT</td>
 * <td>Height</td>
 * </tr>
 * <tr>
 * <td>longitude</td>
 * <td>#MEDIA_LONGITUDE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>latitude</td>
 * <td>#MEDIA_LATITUDE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>altitude</td>
 * <td>#MEDIA_ALTITUDE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>is_360_content</td>
 * <td>#MEDIA_360</td>
 * <td>Whether 360 content or not.</td>
 * </tr>
 * </table>
 * \n
 *<p>
 * For getting the video handle (#video_meta_h) from the media information (#media_info_h), call the media_info_get_video() function.\n
 * For getting the information related to video files stored in the device call the respective get functions e.g. to get duration of the video file
 * call #video_meta_get_duration() function  and so on.\n
 * When the video handle is no longer needed, it should be destroyed by calling #video_meta_destroy() function.
 *
 *
 *
 */


/**
 * @defgroup CAPI_CONTENT_MEDIA_BOOK_META_MODULE Book Metadata
 * @brief The Book Metadata API provides functions to get information about ebook files present in the device.
 *
 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_BOOK_META_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_BOOK_META_MODULE_OVERVIEW Overview
 * The Book Metadata API provides functions to get information about book files present in the device.
 * Following information about book content (#book_meta_h) is provided:
 * <table>
 * <tr>
 * <th>Attribute</th>
 * <th>Filter Keyword</th>
 * <th>Comments</th>
 * </tr>
 * <tr>
 * <td>subject</td>
 * <td>#MEDIA_GENRE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>author</td>
 * <td>#MEDIA_COMPOSER</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>date</td>
 * <td>#MEDIA_RECORDED_DATE</td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * <tr>
 * <td>publisher</td>
 * <td></td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * </table>
 * \n
 *<p>
 * For getting the book handle (#book_meta_h) from the media information (#media_info_h), call the media_info_get_book() function.\n
 * For getting the information related to book files stored in the device call the respective get functions e.g. to get author of the ebook file
 * call #book_meta_get_author() function  and so on.\n
 * When the book handle is no longer needed, it should be destroyed by calling #book_meta_destroy() function.
 */

/**
 * @defgroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE Face Detection(Deprecated)
 * @brief The Face Detection API provides functions to detect face information about stored image files.
 *
 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE_FEATURE Related Features
 * This API is related with the following feature: \n
 * - %http://tizen.org/feature/vision.face_recognition
 * It is recommended to create applications with regard to features, to increase reliability. \n
 *
 * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application. \n
 *
 * To ensure your application is only running on a device with specific features, please define the features in your manifest file using the manifest editor in the SDK. \n
 *
 * More details on featuring your application can be found from <a href="https://docs.tizen.org/application/tizen-studio/native-tools/manifest-text-editor#feature-element"><b>Feature Element</b>.</a>
 *
 * @section CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE_OVERVIEW Overview
 * The Face Detection API provides functions to detect face information associated with image files. \n
 * Face information detected by mediavision API. To detect faces, you should use media_info_start_face_detection() API. \n
 *
 * API allows to:
 * - start and cancel face detection with image files
 *
 *<p>
 * To start face detection, call the #media_info_start_face_detection() function.\n
 * To cancel face detection after it's been started, call the #media_info_cancel_face_detection() function.\n
 *
 */

/**
 * @defgroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE Media Bookmark (Deprecated)
 * @brief The Media Bookmark Information API provides functions to manage bookmark information on the media items.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_BOOKMARKINFO_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_BOOKMARKINFO_MODULE_OVERVIEW Overview
 * A Bookmark allows you to mark interesting moment in a media(video and audio) to enable fast searching.
 * The Bookmark Information API  provides functions to get information about bookmarks associated with video and audio items.
 *
 * API allows to:
 * - get and filter existing bookmarks
 * - insert new bookmarks
 * - delete bookmarks
 *
 * For inserting a bookmark to media item, call media_bookmark_insert_to_db() function and for deleting already set bookmark from a media, call
 * #media_bookmark_delete_from_db() function.
 * For retrieving time where the bookmark is placed on the media, call #media_bookmark_get_marked_time() function.
 *
 * @subsection CAPI_CONTENT_MEDIA_BOOKMARKINFO_FOREACH_OPERATIONS Foreach Operations
 * <div><table class="doxtable" >
 *     <tr>
 *        <th><b>FOREACH</b></th>
 *        <th><b>CALLBACK</b></th>
 *        <th><b>DESCRIPTION</b></th>
 *     </tr>
 *     <tr>
 *        <td>media_info_foreach_bookmark_from_db()</td>
 *        <td>media_bookmark_cb()</td>
 *        <td>Iterates through bookmarks</td>
 *     </tr>
 *</table></div>
 *
 *
 */

/**
 * @defgroup CAPI_CONTENT_MEDIA_INFO_MODULE Media Information
 * @brief The Media Information API provides functions to get information about media items
 * stored on an internal and external storage.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_INFO_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_INFO_MODULE_OVERVIEW Overview
 *
 * The Media Information API provides functions to get basic information e.g. path, date, type etc about media items (#media_info_h) present in the device.
 * Media Information (#media_info_h) is a generalization of media content of any type (audio, image, video and others).
 *
 * Received information about media items can be the processed using dedicated APIs:
 * <table>
 * <tr>
 *    <th>API</th>
 *    <th>Description</th>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_INFO_MODULE </td>
 *    <td> Provides details about all items present in the device.\n
 * Provide functions to get information (e.g. title, size, mime type etc) about the files.</td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_AUDIO_META_MODULE </td>
 *    <td> Provides details about audio items present in the device.\n
 * Provide functions to get information (e.g. genre, album, year, bitrate etc) about the audio files.</td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE </td>
 *    <td> Provide functions to detect faces from image. </td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_IMAGE_META_MODULE </td>
 *    <td> Provides details about image items present in the device.\n
 * Provide functions to get information (e.g. longitude, description, date etc) about the image files.</td>
 * </tr>
 * <tr>
 *    <td>@ref CAPI_CONTENT_MEDIA_VIDEO_META_MODULE (Deprecated)</td>
 *    <td> Provides details about video items present in the device.\n
 * Provide functions to get information (e.g. duration, date etc) about the video files.</td>
 * </tr>
 * </table>
 * \n
 * The media information API provides the following information. Regarding the information of each media type (audio, video, or image), please refer to the type-specific metadata page.
 *
 * <table>
 * <tr>
 * <th>Attribute</th>
 * <th>Filter Keyword</th>
 * <th>Comments</th>
 * </tr>
 * <tr>
 * <td>media_id</td>
 * <td>#MEDIA_ID</td>
 * <td>UUID</td>
 * </tr>
 * <tr>
 * <td>file_path</td>
 * <td>#MEDIA_PATH</td>
 * <td>Full path of the file</td>
 * </tr>
 * <tr>
 * <td>display_name</td>
 * <td>#MEDIA_DISPLAY_NAME</td>
 * <td>Base name of the file</td>
 * </tr>
 * <tr>
 * <td>media_type</td>
 * <td>#MEDIA_TYPE</td>
 * <td>Type (media_content_type_e)</td>
 * </tr>
 * <tr>
 * <td>mime_type</td>
 * <td>#MEDIA_MIME_TYPE</td>
 * <td>MIME type</td>
 * </tr>
 * <tr>
 * <td>size</td>
 * <td>#MEDIA_SIZE</td>
 * <td>File size</td>
 * </tr>
 * <tr>
 * <td>added_time</td>
 * <td>#MEDIA_ADDED_TIME</td>
 * <td>Added time to Media DB</td>
 * </tr>
 * <tr>
 * <td>modified_time</td>
 * <td>#MEDIA_MODIFIED_TIME</td>
 * <td>Time of last modification</td>
 * </tr>
 * <tr>
 * <td>timeline</td>
 * <td>#MEDIA_TIMELINE</td>
 * <td>Same as date taken time(for image) or recorded time(for Audio/Video) if exit. if not, same as modified time.</td>
 * </tr>
 * <tr>
 * <td>is_drm</td>
 * <td>#MEDIA_IS_DRM</td>
 * <td>Whether DRM content or not</td>
 * </tr>
 * <tr>
 * <td>favorite</td>
 * <td>#MEDIA_FAVOURITE</td>
 * <td>User data. Not guarantee independence between applications.</td>
 * </tr>
 * <tr>
 * <td>thumbnail_path</td>
 * <td>#MEDIA_THUMBNAIL_PATH</td>
 * <td>Thumbnail path(album art for Audio) if exist.</td>
 * </tr>
 * <tr>
 * <td>description</td>
 * <td></td>
 * <td>Get from metadata if exist.</td>
 * </tr>
 * </table>
 * \n
 *
 * Video and Audio information can be further processed with respect to its properties i.e. playlist, album, using their respective APIs.
 * - @ref CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
 * - @ref CAPI_CONTENT_MEDIA_ALBUM_MODULE
 * - @ref CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
 *
 *
 * @subsection CAPI_CONTENT_MEDIA_INFO_FOREACH_OPERATIONS Foreach Operations
 * <div><table class="doxtable">
 *     <tr>
 *        <th><b>FOREACH</b></th>
 *        <th><b>CALLBACK</b></th>
 *        <th><b>DESCRIPTION</b></th>
 *     </tr>
 *     <tr>
 *        <td>media_info_foreach_media_from_db()</td>
 *        <td>media_info_cb()</td>
 *        <td>Iterates through items</td>
 *     </tr>
 *     <tr>
 *        <td>media_info_foreach_tag_from_db()</td>
 *        <td>media_tag_cb()</td>
 *        <td>Iterate through tags</td>
 *     </tr>
 *     <tr>
 *        <td>media_info_foreach_bookmark_from_db()</td>
 *        <td>media_bookmark_cb()</td>
 *        <td>Iterate through bookmark</td>
 *     </tr>
 * </table></div>
 *
 *
 *
 */

/**
 * @defgroup CAPI_CONTENT_MEDIA_FACE_MODULE Media Face(Deprecated)
 * @brief The Media Face Information API provides functions to manage the face information in the image files.
 *
 * @ingroup CAPI_MEDIA_CONTENT_MODULE
 *
 * @section CAPI_CONTENT_MEDIA_FACE_MODULE_HEADER Required Header
 *   \#include <media_content.h>
 *
 * @section CAPI_CONTENT_MEDIA_FACE_MODULE_OVERVIEW Overview
 * The Face Information API provides functions to manage the face information such as face id, face coordinates in the image files.\n
 *
 *
 */


#endif /* __TIZEN_MEDIA_CONTENT_DOC_H__ */