khronosfws/openmax_al/src/mediarecorder/xamediarecorder.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 16:22:35 +0300
changeset 16 43d09473c595
parent 12 5a06f39ad45b
child 25 6f7ceef7b1d1
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* 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: 
*
*/

#ifndef XAMEDIARECORDER_H
#define XAMEDIARECORDER_H

#include "openmaxalwrapper.h"
#include "xaglobals.h"
#include "xaobjectitf.h"
#include "xaadptbasectx.h"
#include "xacapabilitiesmgr.h"

/** MACROS **/


/** TYPES **/


/** ENUMERATIONS **/
/* Enumeration for interfaces that MediaRecorder supports.  */
typedef enum
{
    MR_OBJECTITF,
    MR_AUDIOENCODERITF,
    MR_CONFIGEXTENSIONITF,
    MR_DIMITF,
    MR_EQUALIZERITF,
    MR_IMAGECONTROLSITF,
    MR_IMAGEEFFECTSITF,
    MR_IMAGEENCODERITF,
    MR_METADATAINSERTIONITF,
    MR_RECORDITF,
    MR_SNAPSHOTITF,
    MR_VIDEOENCODER,
    MR_VIDEOPOSTPROCESSINGITF,
    MR_VOLUMEITF,
    MR_METADATAEXTRACTIONITF,
    MR_METADATATRAVERSALITF,
    MR_ITFCOUNT
} MRInterfaces;

/** STRUCTURES **/
/* Specification for  MediaRecorderImpl. */
typedef struct XAMediaRecorderImpl_
{
    /* Parent for XAMediaRecorder */
    XAObjectItfImpl baseObj;

    /* variables */
    XADataSource *audioSrc;
    XADataSource *imageVideoSrc;
    XADataSink *dataSnk;
    XAuint8 recModes;
    XAAdaptationBaseCtx* adaptationCtx;

} XAMediaRecorderImpl;


/** METHODS **/

/* base object XAObjectItfImpl methods */
XAresult    XAMediaRecorderImpl_DoRealize(XAObjectItf self);
XAresult    XAMediaRecorderImpl_DoResume(XAObjectItf self);
void        XAMediaRecorderImpl_FreeResources(XAObjectItf self);


/* MediaRecorderImpl -specific methods*/
XAresult XAMediaRecorderImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry  );
XAresult XAMediaRecorderImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry  );
XAresult XAMediaRecorderImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );

#endif /* XAMEDIARECORDER_H */