1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmplugins/lib3gp/impl/inc/mp4utils.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,54 @@
1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors: Nokia Corporation
1.15 +//
1.16 +// Description: Internal utility functions used by the 3GP library.
1.17 +//
1.18 +
1.19 +#ifndef MP4UTILS_H
1.20 +#define MP4UTILS_H
1.21 +
1.22 +#include <3gplibrary/mp4lib.h>
1.23 +
1.24 +/**
1.25 + * Returns true if the given video type is equal to any one of the
1.26 + * supported AVC profiles.
1.27 + * The supported AVC profiles are:
1.28 + * MP4_TYPE_AVC_PROFILE_BASELINE
1.29 + * MP4_TYPE_AVC_PROFILE_MAIN
1.30 + * MP4_TYPE_AVC_PROFILE_EXTENDED
1.31 + * MP4_TYPE_AVC_PROFILE_HIGH
1.32 + *
1.33 + * @param videotype The video type to be checked
1.34 + *
1.35 + * @return true if videotype is a supported AVC profile, false otherwise.
1.36 + */
1.37 +inline mp4_bool isAvcVideo( mp4_u32 videotype );
1.38 +
1.39 +/**
1.40 + * Returns true if the given audio/video type has flags corresponding
1.41 + * to any of the supported AVC profiles set.
1.42 + * The supported AVC profiles are:
1.43 + * MP4_TYPE_AVC_PROFILE_BASELINE
1.44 + * MP4_TYPE_AVC_PROFILE_MAIN
1.45 + * MP4_TYPE_AVC_PROFILE_EXTENDED
1.46 + * MP4_TYPE_AVC_PROFILE_HIGH
1.47 + *
1.48 + * @param type The audio/video type to be checked
1.49 + *
1.50 + * @return true if type has bits corresponding to supported AVC profiles set,
1.51 + * false otherwise.
1.52 + */
1.53 +inline mp4_bool containsAvcVideo( mp4_u32 type );
1.54 +
1.55 +
1.56 +#include "mp4utils.inl"
1.57 +#endif // MP4UTILS_H