1 #ifndef DALI_CAMERA_PLAYER_PLUGIN_H
2 #define DALI_CAMERA_PLAYER_PLUGIN_H
5 * Copyright (c) 2021 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/adaptor-framework/native-image-source.h>
23 #include <dali/public-api/adaptor-framework/window.h>
26 #include <dali/public-api/math/rect.h>
31 using DisplayArea = Dali::Rect<int>;
34 * @brief CameraPlayerPlugin is an abstract interface, used by dali-adaptor to access camera player plugin.
35 * A concrete implementation must be created for each platform and provided as dynamic library.
37 class CameraPlayerPlugin
50 virtual ~CameraPlayerPlugin()
55 * @brief Sets camera rendering target for window
56 * @param[in] target The target for camera rendering, window surface
58 virtual void SetWindowRenderingTarget(Dali::Window target) = 0;
61 * @brief Sets camera rendering target for native image
62 * @param[in] target The target for camera rendering, native image source
64 virtual void SetNativeImageRenderingTarget(Dali::NativeImageSourcePtr target) = 0;
67 * @brief Sets the area of camera display.
68 * @param[in] area The left-top position and size of the camera display area
70 virtual void SetDisplayArea(DisplayArea area) = 0;
73 * @brief Set the camera player handle.
74 * @param[in] handle The handle for camera player
76 virtual void SetCameraPlayer(Any handle) = 0;
81 #endif // DALI_CAMERA_PLAYER_PLUGIN_H