2 * Copyright (c) 2021 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/android/native-image-source-queue-impl-android.h>
22 #include <dali/integration-api/debug.h>
23 #include <dali/integration-api/gl-defines.h>
26 #include <dali/internal/adaptor/common/adaptor-impl.h>
27 #include <dali/internal/graphics/common/egl-image-extensions.h>
28 #include <dali/internal/graphics/gles/egl-graphics.h>
37 NativeImageSourceQueueAndroid* NativeImageSourceQueueAndroid::New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue)
39 NativeImageSourceQueueAndroid* image = new NativeImageSourceQueueAndroid(width, height, depth, nativeImageSourceQueue);
43 NativeImageSourceQueueAndroid::NativeImageSourceQueueAndroid(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue)
47 DALI_LOG_ERROR("NativeImageSourceQueueAndroid::NativeImageSourceQueueAndroid: Not supported\n");
50 NativeImageSourceQueueAndroid::~NativeImageSourceQueueAndroid()
54 Any NativeImageSourceQueueAndroid::GetNativeImageSourceQueue() const
59 void NativeImageSourceQueueAndroid::SetSize(uint32_t width, uint32_t height)
65 void NativeImageSourceQueueAndroid::IgnoreSourceImage()
69 bool NativeImageSourceQueueAndroid::CanDequeueBuffer()
74 uint8_t* NativeImageSourceQueueAndroid::DequeueBuffer(uint32_t& width, uint32_t& height, uint32_t& stride)
79 bool NativeImageSourceQueueAndroid::EnqueueBuffer(uint8_t* buffer)
84 bool NativeImageSourceQueueAndroid::CreateResource()
89 void NativeImageSourceQueueAndroid::DestroyResource()
93 uint32_t NativeImageSourceQueueAndroid::TargetTexture()
98 void NativeImageSourceQueueAndroid::PrepareTexture()
102 const char* NativeImageSourceQueueAndroid::GetCustomFragmentPrefix() const
107 bool NativeImageSourceQueueAndroid::ApplyNativeFragmentShader(std::string& shader)
112 const char* NativeImageSourceQueueAndroid::GetCustomSamplerTypename() const
117 int NativeImageSourceQueueAndroid::GetTextureTarget() const
119 return GL_TEXTURE_2D;
122 Any NativeImageSourceQueueAndroid::GetNativeImageHandle() const
127 bool NativeImageSourceQueueAndroid::SourceChanged() const
132 } // namespace Adaptor
134 } // namespace Internal