Banuba SDK
Loading...
Searching...
No Matches
bnb::player_api::interfaces::input Class Referenceabstract

The interface is inherited by all classes that must work with the player, responsible for providing frames from outside in the player. More...

#include <input.hpp>

Inheritance diagram for bnb::player_api::interfaces::input:
bnb::player_api::input_pixels_base bnb::player_api::live_input bnb::player_api::photo_input bnb::player_api::stream_input

Public Member Functions

virtual frame_processor_sptr get_frame_processor () const noexcept=0
 Get last available frame.
virtual uint64_t get_frame_time_us () const noexcept=0
 Get timestamp of the current frame.

Detailed Description

The interface is inherited by all classes that must work with the player, responsible for providing frames from outside in the player.

Definition at line 28 of file input.hpp.

Member Function Documentation

◆ get_frame_processor()

virtual frame_processor_sptr bnb::player_api::interfaces::input::get_frame_processor ( ) const
pure virtualnoexcept

Get last available frame.

Returns
frame_processor with filled frame_data

Implemented in bnb::player_api::input_pixels_base.

◆ get_frame_time_us()

virtual uint64_t bnb::player_api::interfaces::input::get_frame_time_us ( ) const
pure virtualnoexcept

Get timestamp of the current frame.

Returns
timestamp

Implemented in bnb::player_api::input_pixels_base.


The documentation for this class was generated from the following file: