khronosfws/openmax_al/src/gst_adaptation/xacameraadaptctx.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:47:10 +0300
changeset 31 8dfd592727cb
parent 22 128eb6a32b84
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* 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 XACAMERAADAPTCTX_H
#define XACAMERAADAPTCTX_H

#include "xaadaptationgst.h"
#ifdef OMAX_CAMERABIN
#include <gst/interfaces/photography.h>
#endif
/* TYPEDEFS */

typedef struct XACameraAdaptationCtx_ XACameraAdaptationCtx;

/*
 * Structure for Camera specific gst-adaptation variables
 */
typedef struct XACameraAdaptationCtx_ {

    /* Parent*/
    XAAdaptationGstCtx_ baseObj;

    /* OMX-AL Variables */
    XAuint32        deviceID;
    XAuint32        imageEffectID;
    XAmillidegree   curRotation;
    XAuint32        curMirror;

    /* GST Variables */
#ifdef OMAX_CAMERABIN
    GstFocusStatus focusStatus;
#endif
    /* Internals */
    XAboolean       recording;
    XAboolean       playing;
    XAboolean       snapshotting;
} XACameraAdaptationCtx_;

/* FUNCTIONS */
XAAdaptationBaseCtx* XACameraAdapt_Create(XAuint32 deviceID);
XAresult XACameraAdapt_PostInit(XAAdaptationBaseCtx* bCtx);
void XACameraAdapt_Destroy(XAAdaptationBaseCtx* bCtx);

#endif /* XACAMERAADAPTCTX_H */