summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2020-07-02 23:09:26 +0200
committermanuel <manuel@mausz.at>2020-07-02 23:09:26 +0200
commit5f8335c1e49ce108ef3481863833c98efa00411b (patch)
treef02b5c1c9765bb6a14c8eb42bb4f81b9face0b55 /xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
parente317daf081a1048904fdf0b548946fa3ba6593a7 (diff)
downloadkodi-pvr-build-master.tar.gz
kodi-pvr-build-master.tar.bz2
kodi-pvr-build-master.zip
sync with upstreamHEADmaster
Diffstat (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h')
-rw-r--r--xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h47
1 files changed, 29 insertions, 18 deletions
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
index f8ceab2..6da4838 100644
--- a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
+++ b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
@@ -9,32 +9,43 @@
9#pragma once 9#pragma once
10 10
11#include "TimingConstants.h" 11#include "TimingConstants.h"
12
12#include <cstdint> 13#include <cstdint>
13#include <memory> 14#include <memory>
14 15
15#define DMX_SPECIALID_STREAMINFO -10 16#define DMX_SPECIALID_STREAMINFO -10
16#define DMX_SPECIALID_STREAMCHANGE -11 17#define DMX_SPECIALID_STREAMCHANGE -11
17 18
18struct DemuxCryptoInfo; 19#ifdef __cplusplus
19 20extern "C"
20typedef struct DemuxPacket
21{ 21{
22 DemuxPacket() = default; 22#endif /* __cplusplus */
23
24 struct DemuxCryptoInfo;
25
26 typedef struct DemuxPacket
27 {
28 DemuxPacket() = default;
29
30 uint8_t* pData = nullptr;
31 int iSize = 0;
32 int iStreamId = -1;
33 int64_t demuxerId = -1; // id of the demuxer that created the packet
34 int iGroupId =
35 -1; // the group this data belongs to, used to group data from different streams together
23 36
24 uint8_t *pData = nullptr; 37 void* pSideData = nullptr;
25 int iSize = 0; 38 int iSideDataElems = 0;
26 int iStreamId = -1;
27 int64_t demuxerId = -1; // id of the demuxer that created the packet
28 int iGroupId = -1; // the group this data belongs to, used to group data from different streams together
29 39
30 void *pSideData = nullptr; 40 double pts = DVD_NOPTS_VALUE;
31 int iSideDataElems = 0; 41 double dts = DVD_NOPTS_VALUE;
42 double duration = 0; // duration in DVD_TIME_BASE if available
43 int dispTime = 0;
44 bool recoveryPoint = false;
32 45
33 double pts = DVD_NOPTS_VALUE; 46 std::shared_ptr<DemuxCryptoInfo> cryptoInfo;
34 double dts = DVD_NOPTS_VALUE; 47 } DemuxPacket;
35 double duration = 0; // duration in DVD_TIME_BASE if available
36 int dispTime = 0;
37 bool recoveryPoint = false;
38 48
39 std::shared_ptr<DemuxCryptoInfo> cryptoInfo; 49#ifdef __cplusplus
40} DemuxPacket; 50} /* extern "C" */
51#endif /* __cplusplus */