|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: Nokia Corporation |
|
12 // |
|
13 // Description: Internal utility functions used by the 3GP library. |
|
14 // |
|
15 |
|
16 #ifndef MP4UTILS_H |
|
17 #define MP4UTILS_H |
|
18 |
|
19 #include <3gplibrary/mp4lib.h> |
|
20 |
|
21 /** |
|
22 * Returns true if the given video type is equal to any one of the |
|
23 * supported AVC profiles. |
|
24 * The supported AVC profiles are: |
|
25 * MP4_TYPE_AVC_PROFILE_BASELINE |
|
26 * MP4_TYPE_AVC_PROFILE_MAIN |
|
27 * MP4_TYPE_AVC_PROFILE_EXTENDED |
|
28 * MP4_TYPE_AVC_PROFILE_HIGH |
|
29 * |
|
30 * @param videotype The video type to be checked |
|
31 * |
|
32 * @return true if videotype is a supported AVC profile, false otherwise. |
|
33 */ |
|
34 inline mp4_bool isAvcVideo( mp4_u32 videotype ); |
|
35 |
|
36 /** |
|
37 * Returns true if the given audio/video type has flags corresponding |
|
38 * to any of the supported AVC profiles set. |
|
39 * The supported AVC profiles are: |
|
40 * MP4_TYPE_AVC_PROFILE_BASELINE |
|
41 * MP4_TYPE_AVC_PROFILE_MAIN |
|
42 * MP4_TYPE_AVC_PROFILE_EXTENDED |
|
43 * MP4_TYPE_AVC_PROFILE_HIGH |
|
44 * |
|
45 * @param type The audio/video type to be checked |
|
46 * |
|
47 * @return true if type has bits corresponding to supported AVC profiles set, |
|
48 * false otherwise. |
|
49 */ |
|
50 inline mp4_bool containsAvcVideo( mp4_u32 type ); |
|
51 |
|
52 |
|
53 #include "mp4utils.inl" |
|
54 #endif // MP4UTILS_H |