graphicscomposition/openwfcompositionengine/composition/include/wfcimageprovider.h
changeset 0 5d03bc08d59c
child 152 9f1c3fea0f87
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 /* Copyright (c) 2009 The Khronos Group Inc.
       
     2  *
       
     3  * Permission is hereby granted, free of charge, to any person obtaining a
       
     4  * copy of this software and/or associated documentation files (the
       
     5  * "Materials"), to deal in the Materials without restriction, including
       
     6  * without limitation the rights to use, copy, modify, merge, publish,
       
     7  * distribute, sublicense, and/or sell copies of the Materials, and to
       
     8  * permit persons to whom the Materials are furnished to do so, subject to
       
     9  * the following conditions:
       
    10  *
       
    11  * The above copyright notice and this permission notice shall be included
       
    12  * in all copies or substantial portions of the Materials.
       
    13  *
       
    14  * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
       
    15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       
    16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
       
    17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
       
    18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
       
    19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
       
    20  * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
       
    21  */
       
    22 /*! \ingroup wfc
       
    23  *  \file wfcimageprovider.h
       
    24  *
       
    25  *  \brief Routines for image providers
       
    26  */
       
    27 
       
    28 #ifndef WFCIMAGEPROVIDER_H_
       
    29 #define WFCIMAGEPROVIDER_H_
       
    30 
       
    31 #include <stdio.h>
       
    32 #include <stdlib.h>
       
    33 
       
    34 #include "WF/wfc.h"
       
    35 #include "owfobject.h"
       
    36 #include "owfimage.h"
       
    37 #include "owfarray.h"
       
    38 #include "owfmemory.h"
       
    39 #include "wfcstructs.h"
       
    40 
       
    41 #ifdef __cplusplus
       
    42 extern "C"
       
    43 {
       
    44 #endif
       
    45 
       
    46 OWF_API_CALL WFC_IMAGE_PROVIDER*
       
    47 WFC_ImageProvider_Create(void* owner, /*WFC_CONTEXT* context,*/
       
    48                          OWFNativeStreamType stream,
       
    49                          WFC_IMAGE_PROVIDER_TYPE type);
       
    50 
       
    51 OWF_API_CALL void
       
    52 WFC_ImageProvider_LockForReading(WFC_IMAGE_PROVIDER* provider);
       
    53 
       
    54 OWF_API_CALL void
       
    55 WFC_ImageProvider_Unlock(WFC_IMAGE_PROVIDER* provider);
       
    56 
       
    57 #ifdef __cplusplus
       
    58 }
       
    59 #endif
       
    60 
       
    61 
       
    62 
       
    63 #endif /* WFCIMAGEPROVIDER_H_ */