sl@0: /* Copyright (c) 2009 The Khronos Group Inc. sl@0: * Portions copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies) sl@0: * sl@0: * Permission is hereby granted, free of charge, to any person obtaining a sl@0: * copy of this software and/or associated documentation files (the sl@0: * "Materials"), to deal in the Materials without restriction, including sl@0: * without limitation the rights to use, copy, modify, merge, publish, sl@0: * distribute, sublicense, and/or sell copies of the Materials, and to sl@0: * permit persons to whom the Materials are furnished to do so, subject to sl@0: * the following conditions: sl@0: * sl@0: * The above copyright notice and this permission notice shall be included sl@0: * in all copies or substantial portions of the Materials. sl@0: * sl@0: * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, sl@0: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF sl@0: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. sl@0: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY sl@0: * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, sl@0: * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE sl@0: * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. sl@0: */ sl@0: sl@0: /*! \ingroup wfc sl@0: * \file wfcpipeline.h sl@0: * sl@0: * \brief Composition pipeline interface sl@0: */ sl@0: #ifndef WFCPIPELINE_H_ sl@0: #define WFCPIPELINE_H_ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include "WF/wfc.h" sl@0: #include "wfccontext.h" sl@0: #include "wfcelement.h" sl@0: #include "wfcimageprovider.h" sl@0: #include "wfcstructs.h" sl@0: #include "wfcscene.h" sl@0: sl@0: #include "owfobject.h" sl@0: sl@0: #include "owfnativestream.h" sl@0: #include "owfmemory.h" sl@0: #include "owfimage.h" sl@0: #include "owfdebug.h" sl@0: sl@0: #ifdef __cplusplus sl@0: extern "C" sl@0: { sl@0: #endif sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Composition pipeline preparation sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: * sl@0: * \return Boolean value indicating whether preparation succeeded sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL WFC_ELEMENT_STATE* sl@0: WFC_Pipeline_BeginComposition(WFC_CONTEXT* context, WFC_ELEMENT* element); sl@0: sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * Composition pipeline cleanup sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void sl@0: WFC_Pipeline_EndComposition(WFC_CONTEXT* context, WFC_ELEMENT* element,WFC_ELEMENT_STATE* elementState); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Source conversion stage sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void sl@0: WFC_Pipeline_ExecuteSourceConversionStage(WFC_CONTEXT* context,WFC_ELEMENT_STATE* elementState); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Crop stage sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void sl@0: WFC_Pipeline_ExecuteCropStage(WFC_CONTEXT* context, WFC_ELEMENT_STATE* elementState); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Flip stage sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void sl@0: WFC_Pipeline_ExecuteFlipStage(WFC_CONTEXT* context, WFC_ELEMENT_STATE* elementState); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Rotation stage sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void sl@0: WFC_Pipeline_ExecuteRotationStage(WFC_CONTEXT* context, WFC_ELEMENT_STATE* elementState); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Scaling stage sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void sl@0: WFC_Pipeline_ExecuteScalingStage(WFC_CONTEXT* context, WFC_ELEMENT_STATE* elementState); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Blending stage sl@0: * sl@0: * \param context Context sl@0: * \param element Element sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void sl@0: WFC_Pipeline_ExecuteBlendingStage(WFC_CONTEXT* context, WFC_ELEMENT_STATE* elementState); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Composition pipeline preparation per context creation sl@0: * sl@0: * \param context Context sl@0: * sl@0: * \return Boolean value indicating whether preparation succeeded sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL OWFboolean WFC_Pipeline_CreateState(WFC_CONTEXT* context); sl@0: sl@0: /*------------------------------------------------------------------------ *//*! sl@0: * \brief Composition pipeline pull-dowwn per context sl@0: * sl@0: * \param context Context sl@0: * sl@0: * \return Boolean value indicating whether preparation succeeded sl@0: *//*-------------------------------------------------------------------------*/ sl@0: OWF_API_CALL void WFC_Pipeline_DestroyState(WFC_CONTEXT* context); sl@0: sl@0: sl@0: sl@0: #ifdef __cplusplus sl@0: } sl@0: #endif sl@0: #endif /* WFCPIPELINE_H_ */