1 #ifndef __DALI_IMAGE_WRAPPER_H__
2 #define __DALI_IMAGE_WRAPPER_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/dali-core.h>
23 #include "emscripten/emscripten.h"
24 #include "emscripten/bind.h"
36 * Creates a new buffer image from raw data
38 * @param[in] data The image byte data
39 * @param[in] width The width of the image
40 * @param[in] height The height of the image
41 * @param[in] pixelFormat The pixel format
43 * @returns A Dali BufferImage
45 Dali::BufferImage BufferImageNew(const std::string& data, unsigned int width, unsigned int height, Dali::Pixel::Format pixelFormat);
48 * Gets an encoded buffer from encoded data
50 * @param[in] data The image data
52 * @returns A Dali EncodedBufferImage
55 Dali::EncodedBufferImage EncodedBufferImageNew(const std::string& data);
57 }; // namespace Emscripten
58 }; // namespace Internal