khronosfws/openmax_al/src/gst_adaptation/xavideopostprosessingitfadaptation.h
author hgs
Fri, 14 May 2010 18:19:45 -0500
changeset 20 b67dd1fc57c5
parent 19 4a629bc82c5e
permissions -rw-r--r--
201019
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: 
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef XAVIDEOPOSTPROSESSINGITFADAPTATION_H
hgs
parents:
diff changeset
    19
#define XAVIDEOPOSTPROSESSINGITFADAPTATION_H
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#include "xaadaptationgst.h"
hgs
parents:
diff changeset
    22
#include "xathreadsafety.h"
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
/* MACROS */
hgs
parents:
diff changeset
    25
#define BLACK_BG_COLOR_MASK  0x00FFFFFF
hgs
parents:
diff changeset
    26
#define GREEN_BG_COLOR_MASK  0x0000FF00
hgs
parents:
diff changeset
    27
#define BLUE_BG_COLOR_MASK   0x000000FF
hgs
parents:
diff changeset
    28
#define ALPHA_VALUE_MASK     0x000000FF
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
#define TEST_VIDEO_WIDTH     640
hgs
parents:
diff changeset
    31
#define TEST_VIDEO_HEIGHT    480
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
#define ROTATION_RATIO       360000
hgs
parents:
diff changeset
    34
#define ROTATION_RATIO_NEG   -360000
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
/* FUNCTIONS */
hgs
parents:
diff changeset
    37
XAresult XAVideoPostProcessingItfAdapt_IsArbitraryRotationSupported(XAAdaptationGstCtx *bCtx,
hgs
parents:
diff changeset
    38
                                                                    XAboolean *pSupported);
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
XAresult XAVideoPostProcessingItfAdapt_Commit(XAAdaptationGstCtx *bCtx,
hgs
parents:
diff changeset
    41
                                              XAmillidegree rotation,
hgs
parents:
diff changeset
    42
                                              XAuint32 scaleOptions,
hgs
parents:
diff changeset
    43
                                              XAuint32 backgroundColor,
hgs
parents:
diff changeset
    44
                                              XAuint32 renderingHints,
hgs
parents:
diff changeset
    45
                                              const XARectangle *pSrcRect,
hgs
parents:
diff changeset
    46
                                              const XARectangle *pDestRect,
hgs
parents:
diff changeset
    47
                                              XAuint32 mirror,
hgs
parents:
diff changeset
    48
                                              XAboolean isMirror,
hgs
parents:
diff changeset
    49
                                              XAboolean isRotate,
hgs
parents:
diff changeset
    50
                                              XAboolean isDestRect,
hgs
parents:
diff changeset
    51
                                              XAboolean isSrcRect,
hgs
parents:
diff changeset
    52
                                              XAboolean isScaleOptions
hgs
parents:
diff changeset
    53
                                              );
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
#endif /* XAVIDEOPOSTPROSESSINGITFADAPTATION_H */