khronosfws/openmax_al/src/gst_adaptation/xacameraadaptctx.h
author hgs
Fri, 14 May 2010 18:19:45 -0500
changeset 20 b67dd1fc57c5
parent 19 4a629bc82c5e
child 21 2ed61feeead6
permissions -rw-r--r--
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 XACAMERAADAPTCTX_H
#define XACAMERAADAPTCTX_H

#include "xaadaptationgst.h"
#include <gst/interfaces/photography.h>
/* 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 */
    GstFocusStatus focusStatus;

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