Imported Upstream version 2.0.0
[platform/upstream/libmp4v2.git] / libutil / other.h
1 #ifndef MP4V2_UTIL_OTHER_H
2 #define MP4V2_UTIL_OTHER_H
3
4 ///////////////////////////////////////////////////////////////////////////////
5
6 namespace mp4v2 { namespace util {
7
8 ///////////////////////////////////////////////////////////////////////////////
9
10 struct MP4V2_EXPORT FileSummaryInfo {
11     typedef set<string>  BrandSet;
12
13     // standard ftyp box attributes
14     string   major_brand;
15     uint32_t minor_version;
16     BrandSet compatible_brands;
17
18     uint32_t nlargesize;
19     uint32_t nversion1;
20     uint32_t nspecial;
21 };
22
23 ///////////////////////////////////////////////////////////////////////////////
24 ///
25 /// Fetch mp4 file summary information.
26 ///
27 /// This function fetches summary information for <b>file</b> and information
28 /// is stored in <b>info</b>.
29 ///
30 /// @return On success <b>true</b>.
31 ///     On failure <b>false</b>, and contents of <b>info</b> are undefined.
32 ///
33 MP4V2_EXPORT
34 bool fileFetchSummaryInfo( MP4FileHandle file, FileSummaryInfo& info );
35
36 ///////////////////////////////////////////////////////////////////////////////
37
38 }} // namespace mp4v2::util
39
40 #endif // MP4V2_UTIL_OTHER_H