Blame view

src/decoder/dvpp/DvppDecoder.h 1.1 KB
0b4cd5d5   Hu Chunming   完成轨迹定时抓拍
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
27
28
29
30
31
32
33
34
35
36
37
38
  #include<string>
  
  #include "depend_headers.h"
  #include "CircularQueue.hpp"
  #include "FFReceiver.h"
  #include "DvppDec.h"
  
  using namespace std;
  
  class DvppDecoder{
  public:
      DvppDecoder();
      ~DvppDecoder();
      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 );
  
      bool isSurport(FFDecConfig& cfg);
  
      float fps();
  
      void setName(string nm){
          m_dec_name = nm;
      }
  
      string getName(){
          return m_dec_name;
      }
  
9b4d4adf   Hu Chunming   添加定时抓拍;
39
      DeviceMemory* snapshot();
0b4cd5d5   Hu Chunming   完成轨迹定时抓拍
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
  
      void setPostDecArg(const void* postDecArg);
      void setFinishedDecArg(const void* finishedDecArg);
  
      int getCachedQueueLength();
  
  public:
      void taskFinishing();
  
  private:
      FFDecConfig m_cfg;
      string m_dec_name;
  
      CircularQueue<AVPacket *> *m_pktQueueptr;
      FFReceiver m_receiver;
      DvppDec m_decoder;
  
      const void * m_finishedDecArg;
      DECODE_FINISHED_CALLBACK decode_finished_cbk;
  
      bool m_bFinished{false};
  
  };