summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxCC.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxCC.h')
-rw-r--r--xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxCC.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxCC.h b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxCC.h
deleted file mode 100644
index ae78298..0000000
--- a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxCC.h
+++ /dev/null
@@ -1,68 +0,0 @@
1/*
2 * Copyright (C) 2005-2014 Team XBMC
3 * http://xbmc.org
4 *
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
18 *
19 */
20
21#pragma once
22#include "DVDDemux.h"
23#include <vector>
24
25class CCaptionBlock;
26class CDecoderCC708;
27
28class CDVDDemuxCC : public CDVDDemux
29{
30public:
31 CDVDDemuxCC(AVCodecID codec);
32 virtual ~CDVDDemuxCC();
33
34 virtual void Reset() {};
35 virtual void Abort() {};
36 virtual void Flush() {};
37 virtual DemuxPacket* Read() { return NULL; };
38 virtual bool SeekTime(int time, bool backwords = false, double* startpts = NULL) {return true;};
39 virtual void SetSpeed(int iSpeed) {};
40 virtual int GetStreamLength() {return 0;};
41 virtual CDemuxStream* GetStream(int iStreamId);
42 virtual int GetNrOfStreams();
43 virtual std::string GetFileName() {return "";};
44
45 DemuxPacket* Read(DemuxPacket *packet);
46 static void Handler(int service, void *userdata);
47
48protected:
49 bool OpenDecoder();
50 void Dispose();
51 DemuxPacket* Decode();
52
53 struct streamdata
54 {
55 int streamIdx;
56 int service;
57 bool hasData ;
58 double pts;
59 };
60 std::vector<streamdata> m_streamdata;
61 std::vector<CDemuxStreamSubtitle> m_streams;
62 bool m_hasData;
63 double m_curPts;
64 std::vector<CCaptionBlock*> m_ccReorderBuffer;
65 std::vector<CCaptionBlock*> m_ccTempBuffer;
66 CDecoderCC708 *m_ccDecoder;
67 AVCodecID m_codec;
68};