VART-X  0.3.0
vart_inferresult_impl_base.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 <memory>
25 #include <vector>
26 #include "../vart_inferresult_types.hpp"
27 
30 namespace vart {
31 
39  public:
41  InferResultImplBase() = default;
42 
44  virtual ~InferResultImplBase() {}
45 
58  virtual void transform(InferResScaleInfo& info) = 0;
59 
70 };
71 
72 } // namespace vart
Abstract base class for inference result implementation used by InferResult.
Definition: vart_inferresult_impl_base.hpp:38
virtual void transform(InferResScaleInfo &info)=0
transform() - Transforms the infer results to the input frame resolution.
virtual ~InferResultImplBase()
Virtual destructor to ensure proper cleanup of derived implementations.
Definition: vart_inferresult_impl_base.hpp:44
virtual InferResultData * get_infer_result()=0
get_infer_result() - Get inference results for a frame.
InferResultImplBase()=default
Default construction is allowed for derived implementations.
VART (Vitis AI Runtime) public API namespace.
Width and height info used to transform inference results to input frame resolution.
Definition: vart_inferresult_types.hpp:62
Base structure for inference result data.
Definition: vart_inferresult_types.hpp:77