Debian Codegraph @

src/demuxer/ES_AC3.h

raw
1 /*
2 * Copyright (C) 2013-2021 Jean-Luc Barrière
3 * Copyright (C) 2005-2014 Team Kodi (https://kodi.tv)
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSE.md for more information.
7 */
8
9 #ifndef ES_AC3_H
10 #define ES_AC3_H
11
12 #include "elementaryStream.h"
13
14 namespace TSDemux
15 {
16 class ES_AC3 : public ElementaryStream
17 {
18 private:
19 int m_SampleRate;
20 int m_Channels;
21 int m_BitRate;
22 int m_FrameSize;
23
24 int64_t m_PTS; /* pts of the current frame */
25 int64_t m_DTS; /* dts of the current frame */
26
27 int FindHeaders(uint8_t *buf, int buf_size);
28
29 public:
30 ES_AC3(uint16_t pid);
31 virtual ~ES_AC3();
32
33 virtual void Parse(STREAM_PKT* pkt);
34 virtual void Reset();
35 };
36 }
37
38 #endif /* ES_AC3_H */