Blame view

src/decoder/dvpp/DvppDecoderApi.h 1.05 KB
09c2d08c   Hu Chunming   arm交付版
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
  #include<string>
  #include <pthread.h>
  
  #include "depend_headers.h"
  #include "../interface/AbstractDecoder.h"
  
  using namespace std;
  
  class DvppDecoder;
  
  class DvppDecoderApi : public AbstractDecoder {
  public:
      DvppDecoderApi();
      ~DvppDecoderApi();
      bool init(FFDecConfig& cfg);
      void close();
      bool start();
      void pause();
      void resume();
  
      void setDecKeyframe(bool bKeyframe);
  
      bool isRunning();
      bool isFinished();
      bool isPausing();
      bool getResolution( int &width, int &height );
54f4a423   Hu Chunming   添加resize到1920,1080设置
27
      bool getOutResolution( int &width, int &height );
09c2d08c   Hu Chunming   arm交付版
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  
      bool isSurport(FFDecConfig& cfg);
  
      int getCachedQueueLength();
  
      float fps();
  
      DeviceMemory* snapshot();
  
      DECODER_TYPE getDecoderType(){ return DECODER_TYPE_DVPP; }
      void setName(string nm);
      string getName();
  
      void setPostDecArg(const void* postDecArg);
      void setFinishedDecArg(const void* finishedDecArg);
746db74c   Hu Chunming   实现recode
43
44
  
      void doRecode(RecoderInfo& recoderInfo);
d9fc3e82   Hu Chunming   recode添加colse功能和mq功能
45
46
  
      void set_mq_callback(std::function<bool(const char *msg)> mq_publish);
09c2d08c   Hu Chunming   arm交付版
47
48
49
  private:
      DvppDecoder* m_pDecoder;
  };