os/graphics/graphicscomposition/openwfcompositionengine/composition/include/wfcimageprovider.h
First public contribution.
1 /* Copyright (c) 2009 The Khronos Group Inc.
2 * Portions copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and/or associated documentation files (the
6 * "Materials"), to deal in the Materials without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Materials, and to
9 * permit persons to whom the Materials are furnished to do so, subject to
10 * the following conditions:
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Materials.
15 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
24 * \file wfcimageprovider.h
26 * \brief Routines for image providers
29 #ifndef WFCIMAGEPROVIDER_H_
30 #define WFCIMAGEPROVIDER_H_
36 #include "owfobject.h"
39 #include "owfmemory.h"
40 #include "wfcstructs.h"
47 OWF_API_CALL WFC_IMAGE_PROVIDER*
48 WFC_ImageProvider_Create(void* owner, /*WFC_CONTEXT* context,*/
49 OWFNativeStreamType stream,
50 WFC_IMAGE_PROVIDER_TYPE type);
53 WFC_ImageProvider_LockForReading(WFC_IMAGE_PROVIDER* provider);
56 WFC_ImageProvider_Unlock(WFC_IMAGE_PROVIDER* provider);
64 #endif /* WFCIMAGEPROVIDER_H_ */