Banuba SDK
Loading...
Searching...
No Matches
input_pixels_base.hpp
1#pragma once
2
3#include <bnb/player_api/interfaces/input.hpp>
4#include <bnb/player_api/interfaces/input/pixels_provider.hpp>
5
6namespace bnb::player_api
7{
8
10 : public virtual interfaces::input,
11 public virtual pixels_provider
12 {
13 public:
14 frame_processor_sptr get_frame_processor() const noexcept override;
15
16 uint64_t get_frame_time_us() const noexcept override;
17
18 void push(const frame_data_sptr& fd) override;
19
20 void push(const full_image_t& image, uint64_t timestamp_us = 0) override;
21
22 protected:
23 frame_processor_sptr m_frame_processor{nullptr};
24 uint64_t m_timestamp{0};
25 }; // class input_pixels_base
26
27} // namespace bnb::player_api
basis is the base basis: for y/rgb basis use .basis or get_subchannel_basis_transform(1); for uv basi...
uint64_t get_frame_time_us() const noexcept override
Get timestamp of the current frame.
frame_processor_sptr get_frame_processor() const noexcept override
Get last available frame.
The interface is inherited by all classes that must work with the player, responsible for providing f...
Definition input.hpp:29