khronosfws/openmax_al/src/common/xavideopostprocessingitf.h
changeset 12 5a06f39ad45b
child 16 43d09473c595
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XAVIDEOPOSTPROCESSINGITF_H
       
    19 #define XAVIDEOPOSTPROCESSINGITF_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaglobals.h"
       
    23 #ifdef _GSTREAMER_BACKEND_   
       
    24 #include "XAAdaptationContextBase.h"
       
    25 #endif
       
    26 /** MACROS **/
       
    27 
       
    28 /** TYPES **/
       
    29 
       
    30 /** ENUMERATIONS **/
       
    31 
       
    32 /** STRUCTURES **/
       
    33 /* Definition of XAVideoPostProcessingItf implementation */
       
    34 typedef struct XAVideoPostProcessingItfImpl_
       
    35 {
       
    36     /* parent interface */
       
    37     struct XAVideoPostProcessingItf_ itf;
       
    38     /* pointer to self */
       
    39     struct XAVideoPostProcessingItfImpl_* self;
       
    40 
       
    41     /* variables */
       
    42     XAboolean       supported;
       
    43     XARectangle     srcRect;
       
    44     XARectangle     destRect;
       
    45     XAuint32        scaleOptions;
       
    46     XAuint32        backgroundColor;
       
    47     XAuint32        renderingHints;
       
    48     XAuint32        mirror;
       
    49     XAmillidegree   rotation;
       
    50     XAboolean       isRotate;
       
    51     XAboolean       isMirror;
       
    52     XAboolean		isDestRect;
       
    53     XAboolean		isSrcRect;
       
    54     XAboolean		isScaleOptions;
       
    55 #ifdef _GSTREAMER_BACKEND_   
       
    56     /*Adaptation variables*/
       
    57     XAAdaptationBaseCtx *adapCtx;
       
    58 #endif
       
    59 } XAVideoPostProcessingItfImpl;
       
    60 
       
    61 /** METHODS **/
       
    62 
       
    63 /* Base interface XAVideoPostProcessingItf implementation */
       
    64 XAresult XAVideoPostProcessingItfImpl_SetRotation(XAVideoPostProcessingItf self,
       
    65                                                   XAmillidegree rotation);
       
    66 
       
    67 XAresult XAVideoPostProcessingItfImpl_IsArbitraryRotationSupported(XAVideoPostProcessingItf self,
       
    68                                                                    XAboolean *pSupported);
       
    69 
       
    70 XAresult XAVideoPostProcessingItfImpl_SetScaleOptions(XAVideoPostProcessingItf self,
       
    71                                                       XAuint32 scaleOptions,
       
    72                                                       XAuint32 backgroundColor,
       
    73                                                       XAuint32 renderingHints);
       
    74 
       
    75 XAresult XAVideoPostProcessingItfImpl_SetSourceRectangle(XAVideoPostProcessingItf self,
       
    76                                                          const XARectangle *pSrcRect);
       
    77 
       
    78 XAresult XAVideoPostProcessingItfImpl_SetDestinationRectangle(XAVideoPostProcessingItf self,
       
    79                                                               const XARectangle *pDestRect);
       
    80 
       
    81 XAresult XAVideoPostProcessingItfImpl_SetMirror(XAVideoPostProcessingItf self,
       
    82                                                 XAuint32 mirror);
       
    83 
       
    84 XAresult XAVideoPostProcessingItfImpl_Commit(XAVideoPostProcessingItf self);
       
    85 #ifdef _GSTREAMER_BACKEND_   
       
    86 /* XAVideoPostProcessingItfImpl -specific methods */
       
    87 XAVideoPostProcessingItfImpl* XAVideoPostProcessingItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
       
    88 XAresult XAVideoPostProcessingItfImpl_ThreadEntry(XAAdaptationBaseCtx *adapCtx);
       
    89 XAresult XAVideoPostProcessingItfImpl_ThreadExit(XAVideoPostProcessingItfImpl* impl);
       
    90 #endif
       
    91 void XAVideoPostProcessingItfImpl_Free(XAVideoPostProcessingItfImpl* self);
       
    92 
       
    93 #endif /* XAVIDEOPOSTPROCESSINGITF_H */