Debian Codegraph @

src/demuxer/ES_MPEGAudio.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_MPEGAUDIO_H
10 #define ES_MPEGAUDIO_H
11
12 #include "elementaryStream.h"
13
14 namespace TSDemux
15 {
16 class ES_MPEG2Audio : 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;
25 int64_t m_DTS;
26
27 int FindHeaders(uint8_t *buf, int buf_size);
28
29 public:
30 ES_MPEG2Audio(uint16_t pid);
31 virtual ~ES_MPEG2Audio();
32
33 virtual void Parse(STREAM_PKT* pkt);
34 };
35 }
36
37 #endif /* ES_MPEGAUDIO_H */