diff -r 80975da52420 -r 43d09473c595 khronosfws/openmax_al/src/gst_adaptation/xaoutputmixadaptctx.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/khronosfws/openmax_al/src/gst_adaptation/xaoutputmixadaptctx.h Fri May 14 16:22:35 2010 +0300 @@ -0,0 +1,59 @@ +/* +* 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 XAOUTPUTMIXADAPTCTX_H +#define XAOUTPUTMIXADAPTCTX_H + +#include "xaadaptationgst.h" + +/* TYPEDEFS */ + +typedef struct XAOutputMixAdaptationCtx_ XAOutputMixAdaptationCtx; + +typedef struct XAOutputMixAdaptationCtx_ +{ + /* Parent*/ + XAAdaptationGstCtx_ baseObj; + /* Internal variables */ + XAboolean isStereoPosition; + XAboolean mute; + + XAuint32 currentrouting; + + GArray* availableDevices; + GArray* connectedObjects; +} XAOutputMixAdaptationCtx_; + +typedef struct XAOMixAdaptConnObj_ +{ + /*pointer to connected context*/ + XAAdaptationGstCtx* ctx; + /*pointer to sink currently used by connected ctx*/ + GstElement* currentSink; +} XAOMixAdaptConnObj; + +/* FUNCTIONS */ +XAAdaptationBaseCtx* XAOutputMixAdapt_Create(void); +XAresult XAOutputMixAdapt_PostInit(XAAdaptationGstCtx* bCtx); +void XAOutputMixAdapt_Destroy(XAAdaptationGstCtx* bCtx); + + +GstElement* XAOutputMixAdapt_GetSink(XAAdaptationGstCtx* bCtx); +XAresult XAOutputMixAdapt_ConnectObject(XAAdaptationGstCtx* omCtx, XAAdaptationGstCtx* bCtx, GstElement* usedMix); +XAresult XAOutputMixAdapt_DisconnectObject(XAAdaptationGstCtx* omCtx, XAAdaptationGstCtx* bCtx); + +#endif /* XAOUTPUTMIXADAPTCTX_H */