Banuba SDK
push_frame_mocker.hpp
Go to the documentation of this file.
1 /// \file
2 /// \addtogroup EffectPlayer
3 /// @{
4 ///
5 // AUTOGENERATED FILE - DO NOT MODIFY!
6 // This file generated by Djinni from effect_player.djinni
7 
8 #pragma once
9 
11 #include <bnb/utils/defs.hpp>
12 #include <memory>
13 #include <string>
14 
15 namespace bnb { namespace interfaces {
16 
17 class effect_player;
18 
19 /** This class will mock data from default source to data from file. Used for testing and debug. */
20 class BNB_EXPORT push_frame_mocker {
21 public:
22  virtual ~push_frame_mocker() {}
23 
24  /**
25  * @param player effect player to which attach this provider.
26  * @param provider provider to fetch frames from
27  */
28  static std::shared_ptr<push_frame_mocker> create(const std::shared_ptr<effect_player> & player, const std::shared_ptr<::bnb::interfaces::frames_provider> & provider);
29 
30  /**
31  * Parse file and start pushing frame to Effect player.
32  * @param outputFile path to file to write processed data in internal format.
33  */
34  virtual void process(const std::string & output_file) = 0;
35 };
36 
37 } } // namespace bnb::interfaces
38 /// @}
39 
bnb::interfaces::push_frame_mocker::create
static std::shared_ptr< push_frame_mocker > create(const std::shared_ptr< effect_player > &player, const std::shared_ptr<::bnb::interfaces::frames_provider > &provider)
frames_provider.hpp
bnb::interfaces::push_frame_mocker
This class will mock data from default source to data from file.
Definition: push_frame_mocker.hpp:20
bnb::interfaces::push_frame_mocker::process
virtual void process(const std::string &output_file)=0
Parse file and start pushing frame to Effect player.