2 * Copyright (c) 2024 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/x11/native-image-source-queue-impl-x.h>
22 #include <dali/integration-api/debug.h>
23 #include <dali/integration-api/gl-defines.h>
31 NativeImageSourceQueueX* NativeImageSourceQueueX::New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
33 NativeImageSourceQueueX* image = new NativeImageSourceQueueX(queueCount, width, height, colorFormat, nativeImageSourceQueue);
37 NativeImageSourceQueueX::NativeImageSourceQueueX(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
38 : mQueueCount(queueCount),
42 DALI_LOG_ERROR("NativeImageSourceQueueX::NativeImageSourceQueueX: Not supported\n");
45 NativeImageSourceQueueX::~NativeImageSourceQueueX()
49 Any NativeImageSourceQueueX::GetNativeImageSourceQueue() const
54 void NativeImageSourceQueueX::SetSize(uint32_t width, uint32_t height)
60 void NativeImageSourceQueueX::IgnoreSourceImage()
64 bool NativeImageSourceQueueX::CanDequeueBuffer()
69 uint8_t* NativeImageSourceQueueX::DequeueBuffer(uint32_t& width, uint32_t& height, uint32_t& stride)
74 bool NativeImageSourceQueueX::EnqueueBuffer(uint8_t* buffer)
79 void NativeImageSourceQueueX::FreeReleasedBuffers()
83 bool NativeImageSourceQueueX::CreateResource()
88 void NativeImageSourceQueueX::DestroyResource()
92 uint32_t NativeImageSourceQueueX::TargetTexture()
97 void NativeImageSourceQueueX::PrepareTexture()
101 bool NativeImageSourceQueueX::ApplyNativeFragmentShader(std::string& shader)
106 const char* NativeImageSourceQueueX::GetCustomSamplerTypename() const
111 int NativeImageSourceQueueX::GetTextureTarget() const
116 Any NativeImageSourceQueueX::GetNativeImageHandle() const
121 bool NativeImageSourceQueueX::SourceChanged() const
126 } // namespace Adaptor
128 } // namespace Internal