Blame view

src/dvpp/DvppDecoderApi.h 898 Bytes
63e6f7bc   Hu Chunming   完成dvpp。但是nv和gb281...
1
2
3
4
5
6
7
8
  #include<string>
  #include <pthread.h>
  
  #include "depend_headers.h"
  #include "../interface/AbstractDecoder.h"
  
  using namespace std;
  
d248da62   Hu Chunming   优化代码,修正dvpp的一些bug
9
  class DvppDecoder;
63e6f7bc   Hu Chunming   完成dvpp。但是nv和gb281...
10
  
00b0fbdb   Hu Chunming   编译nvdec
11
  class DvppDecoderApi : public AbstractDecoder {
63e6f7bc   Hu Chunming   完成dvpp。但是nv和gb281...
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
39
40
41
42
  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 );
  
      bool isSurport(FFDecConfig& cfg);
  
      int getCachedQueueLength();
  
      float fps();
  
      FFImgInfo* snapshot();
  
      DECODER_TYPE getDecoderType(){ return DECODER_TYPE_DVPP; }
      void setName(string nm);
      string getName();
  
      void setPostDecArg(const void* postDecArg);
      void setFinishedDecArg(const void* finishedDecArg);
  private:
d248da62   Hu Chunming   优化代码,修正dvpp的一些bug
43
      DvppDecoder* m_pDecoder;
63e6f7bc   Hu Chunming   完成dvpp。但是nv和gb281...
44
  };