MythTV master
cc708decoder.h
Go to the documentation of this file.
1// -*- Mode: c++ -*-
2// Copyright (c) 2003-2005, Daniel Kristjansson
3
4#ifndef CC708DECODER_H_
5#define CC708DECODER_H_
6
7#include <cstdint>
8
11
12using cc708_seen_flags = std::array<bool,64>;
13using cc708_seen_times = std::array<SystemTime,64>;
14
17{
18 std::array<uint8_t,128+16> data {0};
19 int size {0};
20};
21
22class CC708Reader;
23
25{
26 public:
27 explicit CC708Decoder(CC708Reader *ccr) : m_reader(ccr) {}
28 ~CC708Decoder() = default;
29
30 void decode_cc_data(uint cc_type, uint data1, uint data2);
31
33 void services(std::chrono::seconds seconds, cc708_seen_flags & seen) const;
34
35 private:
39};
40
41#endif // CC708DECODER_H_
std::array< bool, 64 > cc708_seen_flags
Definition: cc708decoder.h:12
std::array< SystemTime, 64 > cc708_seen_times
Definition: cc708decoder.h:13
CC708Decoder(CC708Reader *ccr)
Definition: cc708decoder.h:27
cc708_seen_times m_lastSeen
Definition: cc708decoder.h:38
CC708Reader * m_reader
Definition: cc708decoder.h:37
void decode_cc_data(uint cc_type, uint data1, uint data2)
CaptionPacket m_partialPacket
Definition: cc708decoder.h:36
~CC708Decoder()=default
void services(std::chrono::seconds seconds, cc708_seen_flags &seen) const
unsigned int uint
Definition: freesurround.h:24
EIA-708-A closed caption packet.
Definition: cc708decoder.h:17
std::array< uint8_t, 128+16 > data
Definition: cc708decoder.h:18