2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/internal/imaging/common/native-image-source-impl.h>
20 #include <dali/internal/imaging/common/native-image-source-factory.h>
31 NativeImageSource::~NativeImageSource() = default;
33 NativeImageSource* NativeImageSource::New(unsigned int width,
35 Dali::NativeImageSource::ColorDepth depth,
36 Any nativeImageSource)
38 return Internal::Adaptor::NativeImageSourceFactory::New( width, height, depth, nativeImageSource ).release();
42 Any NativeImageSource::GetNativeImageSource() const
48 bool NativeImageSource::GetPixels(std::vector<unsigned char> &pixbuf, unsigned int &width, unsigned int &height, Pixel::Format& pixelFormat ) const
53 bool NativeImageSource::EncodeToFile(const std::string& filename) const
58 void NativeImageSource::SetSource( Any source )
63 bool NativeImageSource::IsColorDepthSupported( Dali::NativeImageSource::ColorDepth colorDepth )
68 bool NativeImageSource::GlExtensionCreate()
73 void NativeImageSource::GlExtensionDestroy()
78 unsigned int NativeImageSource::TargetTexture()
83 void NativeImageSource::PrepareTexture()
88 unsigned int NativeImageSource::GetWidth() const
93 unsigned int NativeImageSource::GetHeight() const
98 bool NativeImageSource::RequiresBlending() const
104 NativeImageInterface::Extension* NativeImageSource::GetNativeImageInterfaceExtension()
109 } // namespace Adaptor
111 } // namespace Internal