khronosfws/openmax_al/src/common/openmaxal.c
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:29:42 +0300
changeset 12 5a06f39ad45b
child 16 43d09473c595
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


#include <stdio.h>
#include <stdlib.h>

#include "openmaxalwrapper.h"
#include "openmaxal_iid.c"
#include "common/xaglobals.h"


EXPORT_C XAresult XAAPIENTRY xaCreateEngine(XAObjectItf *pEngine, XAuint32 numOptions,
                                   const XAEngineOption *pEngineOptions,
                                   XAuint32 numInterfaces,
                                   const XAInterfaceID *pInterfaceIds,
                                   const XAboolean *pInterfaceRequired)
{
    XAresult ret;
    DEBUG_API("->xaCreateEngine");
    ret = XAEngineImpl_Create(pEngine, numOptions,
                                       pEngineOptions,
                                       numInterfaces,
                                       pInterfaceIds,
                                       pInterfaceRequired);
    DEBUG_API_A1("<-xaCreateEngine: 0x%x",(int)ret);
    return ret;
}

EXPORT_C XAresult XAAPIENTRY xaQueryNumSupportedEngineInterfaces(XAuint32 *pNumSupportedInterfaces)
{
    XAresult ret;
    DEBUG_API("->xaQueryNumSupportedEngineInterfaces");
    ret = XAEngineImpl_QueryNumSupportedInterfaces(pNumSupportedInterfaces);
    DEBUG_API_A1("<-xaQueryNumSupportedEngineInterfaces: 0x%x",(int)ret);
    return ret;
}

EXPORT_C XAresult XAAPIENTRY xaQuerySupportedEngineInterfaces(XAuint32 index,
                                                     XAInterfaceID *pInterfaceId)
{
    XAresult ret;
    DEBUG_API("->xaQuerySupportedEngineInterfaces");
    ret = XAEngineImpl_QuerySupportedInterfaces(
                                    index, pInterfaceId);
    DEBUG_API_A1("<-xaQuerySupportedEngineInterfaces: 0x%x",(int)ret);
    return ret;
}