blob: 6f7ca0b57419d2d7c055327488589cf4369b5724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <cstddef>
#include <memory>
namespace common
{
/**
* @brief Frames output interface
*
* @tparam FrameDataT frame container data type
*/
template<typename FrameDataT> class IFrameOutput
{
public:
/**
* @brief Writes frame to the selected output
*
* @param frame container
*/
virtual void WriteFrame(std::shared_ptr <FrameDataT>& frame) = 0;
/**
* @brief Closes the frame output
*/
virtual void Close() = 0;
/**
* @brief Checks if the frame sink is ready to write.
*
* @return True if frame sink is ready, False otherwise
*/
virtual bool IsReady() const = 0;
/**
* @brief Default destructor
*/
virtual ~IFrameOutput() = default;
};
}// namespace common
|