VART-X  0.3.0
vart_overlay.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2024-2026 Advanced Micro Devices Inc.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 #pragma once
18 
24 #include "vart_device.hpp"
25 #include "vart_overlay_types.hpp"
26 #include "vart_videoframe.hpp"
27 
30 namespace vart {
31 
35 class OverlayImplBase;
36 
46 class Overlay {
47  public:
48  Overlay() = delete;
49 
61  Overlay(OverlayImplType overlay_impl_type, std::shared_ptr<Device> device);
62 
70  Overlay(std::shared_ptr<OverlayImplBase> ptr);
71 
80  const std::shared_ptr<OverlayImplBase>& get_pimpl_handle() const;
81 
93  void draw_overlay(VideoFrame& frame, OverlayShapeInfo& shape_info);
94 
95  private:
96  std::shared_ptr<OverlayImplBase> pimpl;
97 };
98 
99 } // namespace vart
This module facilitates the overlay of annotations onto the video frame, currently overlay utilizes O...
Definition: vart_overlay.hpp:46
Overlay(OverlayImplType overlay_impl_type, std::shared_ptr< Device > device)
Overlay() - Constructor for creating an overlay instance, which accepts input type and device instanc...
void draw_overlay(VideoFrame &frame, OverlayShapeInfo &shape_info)
draw_overlay() - Draws the input overlay information on to the frame
Overlay(std::shared_ptr< OverlayImplBase > ptr)
Overlay() - Constructor for creating an overlay instance, which accepts user defined pimpl parameters...
Overlay()=delete
const std::shared_ptr< OverlayImplBase > & get_pimpl_handle() const
get_pimpl_handle() - Retrieves pointer to implementation class.
This module simplifies the management of video frame memory and provides APIs for mapping and unmappi...
Definition: vart_videoframe.hpp:48
VART (Vitis AI Runtime) public API namespace.
OverlayImplType
Definition: vart_overlay_types.hpp:27
Structure representing overlay shape information.
Definition: vart_overlay_types.hpp:346
Device module managing hardware context and xclbin loading.
VideoFrame module for managing video frame memory.