os/mm/mmplugins/lib3gp/impl/inc/mp4utils.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 inline mp4_bool isAvcVideo( mp4_u32 videotype )
    17     {
    18     return
    19         (
    20         videotype == MP4_TYPE_AVC_PROFILE_BASELINE  ||
    21         videotype == MP4_TYPE_AVC_PROFILE_MAIN ||
    22         videotype == MP4_TYPE_AVC_PROFILE_EXTENDED ||
    23         videotype == MP4_TYPE_AVC_PROFILE_HIGH
    24         );
    25     }
    26 
    27 inline mp4_bool containsAvcVideo( mp4_u32 type )
    28     {
    29     return
    30         (
    31         (type & MP4_TYPE_AVC_PROFILE_BASELINE)  ||
    32         (type & MP4_TYPE_AVC_PROFILE_MAIN) ||
    33         (type & MP4_TYPE_AVC_PROFILE_EXTENDED) ||
    34         (type & MP4_TYPE_AVC_PROFILE_HIGH)
    35         );
    36     }
    37