summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxBXA.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2015-03-04 00:23:39 +0100
committermanuel <manuel@mausz.at>2015-03-04 00:23:39 +0100
commit9d11b08ad61b1f0d6d7023ce403285d8662efaed (patch)
tree5bc0c947d9e10d3e8c9dc1e6b26f3d6599f0cea1 /xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxBXA.h
parentc159d9f91f1573901868100a9464527a5a71575b (diff)
downloadkodi-pvr-build-9d11b08ad61b1f0d6d7023ce403285d8662efaed.tar.gz
kodi-pvr-build-9d11b08ad61b1f0d6d7023ce403285d8662efaed.tar.bz2
kodi-pvr-build-9d11b08ad61b1f0d6d7023ce403285d8662efaed.zip
sync with upstream
Diffstat (limited to 'xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxBXA.h')
-rw-r--r--xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxBXA.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxBXA.h b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxBXA.h
deleted file mode 100644
index bdb65b4..0000000
--- a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxBXA.h
+++ /dev/null
@@ -1,85 +0,0 @@
1#pragma once
2/*
3 * Copyright (C) 2012-2013 Team XBMC
4 * http://xbmc.org
5 *
6 * This Program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This Program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with XBMC; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#include "DVDDemux.h"
23
24#ifdef TARGET_WINDOWS
25#define __attribute__(dummy_val)
26#else
27#include <config.h>
28#endif
29
30#ifdef TARGET_WINDOWS
31#pragma pack(push)
32#pragma pack(1)
33#endif
34
35typedef struct
36{
37 char fourcc[4];
38 uint32_t type;
39 uint32_t channels;
40 uint32_t sampleRate;
41 uint32_t bitsPerSample;
42 uint64_t durationMs;
43} __attribute__((__packed__)) Demux_BXA_FmtHeader;
44
45#ifdef TARGET_WINDOWS
46#pragma pack(pop)
47#endif
48
49#include <vector>
50
51#define BXA_PACKET_TYPE_FMT_DEMUX 1
52
53class CDemuxStreamAudioBXA;
54
55class CDVDDemuxBXA : public CDVDDemux
56{
57public:
58
59 CDVDDemuxBXA();
60 ~CDVDDemuxBXA();
61
62 bool Open(CDVDInputStream* pInput);
63 void Dispose();
64 void Reset();
65 void Abort();
66 void Flush();
67 DemuxPacket* Read();
68 bool SeekTime(int time, bool backwords = false, double* startpts = NULL) { return false; }
69 void SetSpeed(int iSpeed) {};
70 int GetStreamLength() { return (int)m_header.durationMs; }
71 CDemuxStream* GetStream(int iStreamId);
72 int GetNrOfStreams();
73 std::string GetFileName();
74 virtual void GetStreamCodecName(int iStreamId, std::string &strName);
75
76protected:
77 friend class CDemuxStreamAudioBXA;
78 CDVDInputStream* m_pInput;
79 int64_t m_bytes;
80
81 CDemuxStreamAudioBXA *m_stream;
82
83 Demux_BXA_FmtHeader m_header;
84};
85