MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
input_av.h
Go to the documentation of this file.
1 #ifndef INT64_MIN
2 #define INT64_MIN (-(9223372036854775807 ## LL)-1)
3 #endif
4 
5 #ifndef INT64_MAX
6 #define INT64_MAX ((9223372036854775807 ## LL))
7 #endif
8 
9 #include "input.h"
10 extern "C" {
11  #include <libavcodec/avcodec.h>
12  #include <libavformat/avformat.h>
13 }
14 
15 namespace Mist {
16  class inputAV : public Input {
17  public:
18  inputAV(Util::Config * cfg);
19  ~inputAV();
20  protected:
21  //Private Functions
22  bool setup();
23  bool readHeader();
24  void getNext(bool smart = true);
25  void seek(int seekTime);
26  void trackSelect(std::string trackSpec);
27  private:
28  AVFormatContext *pFormatCtx;
29  };
30 }
31 
inputAV(Util::Config *cfg)
Definition: input_av.cpp:14
AVFormatContext * pFormatCtx
Definition: input_av.h:28
Definition: input.h:19
Recording to file.
Definition: input.cpp:13
Mist::inputAV mistIn
Definition: input_av.h:32
void getNext(bool smart=true)
Definition: input_av.cpp:216
void trackSelect(std::string trackSpec)
Definition: input_av.cpp:266
bool setup()
Definition: input_av.cpp:44
Definition: input_av.h:16
void seek(int seekTime)
Definition: input_av.cpp:250
Deals with parsing configuration from commandline options.
Definition: config.h:18
bool readHeader()
Definition: input_av.cpp:92
~inputAV()
Definition: input_av.cpp:38