kodi
DemuxPacket.h
1 /*
2  * Copyright (C) 2012-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "TimingConstants.h"
12 #include "addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/demux_packet.h"
13 
14 #define DMX_SPECIALID_STREAMINFO DEMUX_SPECIALID_STREAMINFO
15 #define DMX_SPECIALID_STREAMCHANGE DEMUX_SPECIALID_STREAMCHANGE
16 
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #endif /* __cplusplus */
21 
23  {
24  DemuxPacket()
25  {
26  pData = nullptr;
27  iSize = 0;
28  iStreamId = -1;
29  demuxerId = -1;
30  iGroupId = -1;
31 
32  pSideData = nullptr;
33  iSideDataElems = 0;
34 
35  pts = DVD_NOPTS_VALUE;
36  dts = DVD_NOPTS_VALUE;
37  duration = 0;
38  dispTime = 0;
39  recoveryPoint = false;
40 
41  cryptoInfo = nullptr;
42  }
43 
46  };
47 
48 #ifdef __cplusplus
49 } /* extern "C" */
50 #endif /* __cplusplus */
int iSize
Size of the package given at pData.
Definition: demux_packet.h:55
int iStreamId
Identification of the stream.
Definition: demux_packet.h:58
double pts
Presentation time stamp (PTS).
Definition: demux_packet.h:84
double m_ptsOffsetCorrection
PTS offset correction applied to the PTS and DTS.
Definition: DemuxPacket.h:45
int iSideDataElems
Data elements stored at pSideData.
Definition: demux_packet.h:79
bool recoveryPoint
To show that this package allows recreating the presentation by mistake.
Definition: demux_packet.h:97
double duration
Duration in STREAM_TIME_BASE if available.
Definition: demux_packet.h:90
void * pSideData
Additional packet data that can be provided by the container.
Definition: demux_packet.h:76
double dts
Decoding time stamp (DTS).
Definition: demux_packet.h:87
Definition: demux_packet.h:45
Definition: DemuxPacket.h:22
int64_t demuxerId
Identification of the associated demuxer, this can be identical on several streams.
Definition: demux_packet.h:62
struct DEMUX_CRYPTO_INFO * cryptoInfo
Optional data to allow decryption at processing site if necessary.
Definition: demux_packet.h:108
uint8_t * pData
Stream package which is given for decoding.
Definition: demux_packet.h:52
int iGroupId
The group this data belongs to, used to group data from different streams together.
Definition: demux_packet.h:66
int dispTime
Display time from input stream.
Definition: demux_packet.h:93