khronosfws/openmax_al/src/common/xavideopostprocessingitf.h
changeset 53 eabc8c503852
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
       
     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 "xaadptbasectx.h"
       
    22 
       
    23 /** MACROS **/
       
    24 
       
    25 /** TYPES **/
       
    26 
       
    27 /** ENUMERATIONS **/
       
    28 
       
    29 /** STRUCTURES **/
       
    30 /* Definition of XAVideoPostProcessingItf implementation */
       
    31 typedef struct XAVideoPostProcessingItfImpl_
       
    32 {
       
    33     /* parent interface */
       
    34     struct XAVideoPostProcessingItf_ itf;
       
    35     /* pointer to self */
       
    36     struct XAVideoPostProcessingItfImpl_* self;
       
    37 
       
    38     /* variables */
       
    39     XAboolean       supported;
       
    40     XARectangle     srcRect;
       
    41     XARectangle     destRect;
       
    42     XAuint32        scaleOptions;
       
    43     XAuint32        backgroundColor;
       
    44     XAuint32        renderingHints;
       
    45     XAuint32        mirror;
       
    46     XAmillidegree   rotation;
       
    47     XAboolean       isRotate;
       
    48     XAboolean       isMirror;
       
    49     XAboolean		isDestRect;
       
    50     XAboolean		isSrcRect;
       
    51     XAboolean		isScaleOptions;
       
    52 
       
    53     /*Adaptation variables*/
       
    54     XAAdaptationBaseCtx *adapCtx;
       
    55 
       
    56 } XAVideoPostProcessingItfImpl;
       
    57 
       
    58 /** METHODS **/
       
    59 
       
    60 /* Base interface XAVideoPostProcessingItf implementation */
       
    61 XAresult XAVideoPostProcessingItfImpl_SetRotation(XAVideoPostProcessingItf self,
       
    62                                                   XAmillidegree rotation);
       
    63 
       
    64 XAresult XAVideoPostProcessingItfImpl_IsArbitraryRotationSupported(XAVideoPostProcessingItf self,
       
    65                                                                    XAboolean *pSupported);
       
    66 
       
    67 XAresult XAVideoPostProcessingItfImpl_SetScaleOptions(XAVideoPostProcessingItf self,
       
    68                                                       XAuint32 scaleOptions,
       
    69                                                       XAuint32 backgroundColor,
       
    70                                                       XAuint32 renderingHints);
       
    71 
       
    72 XAresult XAVideoPostProcessingItfImpl_SetSourceRectangle(XAVideoPostProcessingItf self,
       
    73                                                          const XARectangle *pSrcRect);
       
    74 
       
    75 XAresult XAVideoPostProcessingItfImpl_SetDestinationRectangle(XAVideoPostProcessingItf self,
       
    76                                                               const XARectangle *pDestRect);
       
    77 
       
    78 XAresult XAVideoPostProcessingItfImpl_SetMirror(XAVideoPostProcessingItf self,
       
    79                                                 XAuint32 mirror);
       
    80 
       
    81 XAresult XAVideoPostProcessingItfImpl_Commit(XAVideoPostProcessingItf self);
       
    82  
       
    83 /* XAVideoPostProcessingItfImpl -specific methods */
       
    84 XAVideoPostProcessingItfImpl* XAVideoPostProcessingItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
       
    85 void XAVideoPostProcessingItfImpl_Free(XAVideoPostProcessingItfImpl* self);
       
    86 
       
    87 #endif /* XAVIDEOPOSTPROCESSINGITF_H */