GOPDataBlock.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Digital Barriers
4 
20 #pragma once
21 
22 #include "EdgeVisSDK.h"
23 #include "Pimpl.h"
24 #include "GOPDataBlockTypes.h"
25 
26 namespace MediaStoreSDK
27 {
28  class GopBlock;
29 }
30 
31 namespace EdgeVisDecoderSDK
32 {
33  // class GOPDataBlockImpl;
34 
35  class GOPDataBlock : public EdgeVisSDKPimpl<MediaStoreSDK::GopBlock>
36  {
37  public:
38  DB_EDGEVIS_SDK GOPDataBlock();
39  GOPDataBlock(GOPDataBlockType block_type,
40  int64_t timestamp,
41  uint8_t* data,
42  int32_t length);
43 
44  EdgeVisSDKPimplWeakConstructor(GOPDataBlock);
45 
46  DB_EDGEVIS_SDK virtual ~GOPDataBlock();
47 
48  public:
49 
55  DB_EDGEVIS_SDK GOPDataBlockType GetBlockType();
56 
62  DB_EDGEVIS_SDK byte_array GetData() const;
63 
69  DB_EDGEVIS_SDK int64_t GetTimestamp();
70  };
71 }
Definition: GOPDataBlock.h:26
The GOP Data Block class represents an individual element of a GOPData buffer.
Definition: GOPDataBlock.h:35
GOPDataBlockType
Contains the type of GOPDataBlock.
Definition: GOPDataBlockTypes.h:25
The EdgeVis Decoder SDK namespace.