summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h')
-rw-r--r--xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
new file mode 100644
index 0000000..2d85ed9
--- /dev/null
+++ b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h
@@ -0,0 +1,52 @@
1#pragma once
2
3/*
4 * Copyright (C) 2012-2013 Team XBMC
5 * http://xbmc.org
6 *
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
11 *
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with XBMC; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#include "TimingConstants.h"
24#include <cstdint>
25#include <memory>
26
27#define DMX_SPECIALID_STREAMINFO -10
28#define DMX_SPECIALID_STREAMCHANGE -11
29
30struct DemuxCryptoInfo;
31
32typedef struct DemuxPacket
33{
34 DemuxPacket() = default;
35
36 uint8_t *pData = nullptr;
37 int iSize = 0;
38 int iStreamId = -1;
39 int64_t demuxerId; // id of the demuxer that created the packet
40 int iGroupId = -1; // the group this data belongs to, used to group data from different streams together
41
42 void *pSideData = nullptr;
43 int iSideDataElems = 0;
44
45 double pts = DVD_NOPTS_VALUE;
46 double dts = DVD_NOPTS_VALUE;
47 double duration = 0; // duration in DVD_TIME_BASE if available
48 int dispTime = 0;
49 bool recoveryPoint = false;
50
51 std::shared_ptr<DemuxCryptoInfo> cryptoInfo;
52} DemuxPacket;