khronosfws/openmax_al/src/mmf_adaptation/xamediarecorderadaptctxmmf.h
changeset 25 6f7ceef7b1d1
parent 19 4a629bc82c5e
child 53 eabc8c503852
equal deleted inserted replaced
21:2ed61feeead6 25:6f7ceef7b1d1
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description: 
    14  * Description: MediaRecorder Adaptation MMF header
    15 *
    15  *
    16 */
    16  */
    17 
    17 
    18 #ifndef XAMEDIARECORDERADAPTCTXMMF_H_
    18 #ifndef XAMEDIARECORDERADAPTCTXMMF_H_
    19 #define XAMEDIARECORDERADAPTCTXMMF_H_
    19 #define XAMEDIARECORDERADAPTCTXMMF_H_
    20 
    20 
    21 #include "xaadaptationmmf.h"
    21 #include "xaadaptationmmf.h"
    22 
    22 
    23 
       
    24 /* TYPEDEFS */
    23 /* TYPEDEFS */
    25 typedef struct XAMediaRecorderAdaptationMMFCtx_ XAMediaRecorderAdaptationMMFCtx;
    24 typedef struct XAMediaRecorderAdaptationMMFCtx_
       
    25         XAMediaRecorderAdaptationMMFCtx;
    26 
    26 
    27 typedef struct XAMediaRecorderAdaptationMMFCtx_
    27 typedef struct XAMediaRecorderAdaptationMMFCtx_
    28 {
    28     {
    29     /* Parent*/
    29     /* Parent*/
    30     XAAdaptationMMFCtx_ baseObj;
    30     XAAdaptationMMFCtx_ baseObj;
    31 
    31 
    32     /* OMX-AL Variables */
    32     /* OMX-AL Variables */
    33     XADataSource            *xaAudioSource, *xaVideoSource;
    33     XADataSource *xaAudioSource, *xaVideoSource;
    34     XADataSink              *xaSink;
    34     XADataSink *xaSink;
    35     XAuint8                 recModes;
    35     XAuint8 recModes;
    36 
    36 
    37     /* GST elements */
    37     /* GST elements */
    38     XAboolean               isobjsink;   /*is sink another XA object?*/
    38     XAboolean isobjsink; /*is sink another XA object?*/
    39     XAboolean               isobjasrc;    /*is audio source another XA object?*/
    39     XAboolean isobjasrc; /*is audio source another XA object?*/
    40     XAboolean               isobjvsrc;    /*is video source another XA object?*/
    40     XAboolean isobjvsrc; /*is video source another XA object?*/
    41     XAboolean               encodingchanged;
    41     XAboolean encodingchanged;
    42 
    42 
    43     XAboolean               mute;
    43     XAboolean mute;
    44     XAuint32                premutevol;
    44     XAuint32 premutevol;
    45     XAuint32                imageEffectID;
    45     XAuint32 imageEffectID;
    46     XAboolean               isStereoPosition;
    46     XAboolean isStereoPosition;
    47     XAuint32                xaRecordState;
    47     XAuint32 xaRecordState;
    48     XAmillidegree           curRotation;
    48     XAmillidegree curRotation;
    49     XAuint32                curMirror;
    49     XAuint32 curMirror;
    50     XAboolean               isRecord;
    50     XAboolean isRecord;
    51 
    51 
    52     /* internals */
    52     /* internals */
    53     XAboolean               trackpositionenabled;
    53     XAboolean trackpositionenabled;
    54     gboolean                runpositiontimer;
    54     gboolean runpositiontimer;
    55 
    55 
    56     XAImplThreadHandle      recordingEventThr;
    56     XAImplThreadHandle recordingEventThr;
    57 
    57 
    58     /* Variables for encoders */
    58     /* Variables for encoders */
    59     XAAudioEncoderSettings  audioEncSettings;
    59     XAAudioEncoderSettings audioEncSettings;
    60     XAVideoSettings         videoEncSettings;
    60     XAVideoSettings videoEncSettings;
    61     XAImageSettings         imageEncSettings;
    61     XAImageSettings imageEncSettings;
    62     
       
    63     void*                   mmfContext;
       
    64 
    62 
       
    63     void* mmfContext;
    65 
    64 
    66 } XAMediaRecorderAdaptationMMFCtx_;
    65     } XAMediaRecorderAdaptationMMFCtx_;
    67 
    66 
    68 /* FUNCTIONS */
    67 /* FUNCTIONS */
    69 XAAdaptationBaseCtx* XAMediaRecorderAdaptMMF_Create(  XADataSource* pAudioSrc,
    68 XAAdaptationBaseCtx* XAMediaRecorderAdaptMMF_Create(XADataSource* pAudioSrc,
    70                             XADataSource* pImageVideoSrc, XADataSink* pDataSnk, XAuint8 recModes );
    69         XADataSource* pImageVideoSrc, XADataSink* pDataSnk, XAuint8 recModes);
    71 XAresult XAMediaRecorderAdaptMMF_PostInit( XAAdaptationMMFCtx* bCtx );
    70 XAresult XAMediaRecorderAdaptMMF_PostInit(XAAdaptationMMFCtx* bCtx);
    72 void XAMediaRecorderAdaptMMF_Destroy( XAAdaptationMMFCtx* bCtx );
    71 void XAMediaRecorderAdaptMMF_Destroy(XAAdaptationMMFCtx* bCtx);
    73 
       
    74 
    72 
    75 #endif /* XAMEDIARECORDERADAPTCTXMMF_H_ */
    73 #endif /* XAMEDIARECORDERADAPTCTXMMF_H_ */