11 #include "AEPackIEC61937.h" 12 #include "AEChannelInfo.h" 19 #include <libavutil/crc.h> 25 double GetDuration()
const;
36 STREAM_TYPE_DTSHD_CORE,
42 DataType m_type = STREAM_TYPE_NULL;
43 unsigned int m_sampleRate;
44 unsigned int m_channels;
45 bool m_dataIsLE =
true;
46 unsigned int m_dtsPeriod = 0;
47 unsigned int m_repeat = 0;
48 unsigned int m_ac3FrameSize = 0;
58 int AddData(uint8_t *data,
unsigned int size, uint8_t **buffer = NULL,
unsigned int *bufferSize = 0);
60 void SetCoreOnly(
bool value) { m_coreOnly = value; }
61 unsigned int IsValid()
const {
return m_hasSync; }
62 unsigned int GetSampleRate()
const {
return m_info.m_sampleRate; }
63 unsigned int GetChannels()
const {
return m_info.m_channels; }
64 unsigned int GetFrameSize()
const {
return m_fsize; }
66 unsigned int GetDTSPeriod()
const {
return m_info.m_dtsPeriod; }
67 unsigned int GetEAC3BlocksDiv()
const {
return m_info.m_repeat; }
68 enum CAEStreamInfo::DataType GetDataType()
const {
return m_info.m_type; }
69 bool IsLittleEndian()
const {
return m_info.m_dataIsLE; }
70 unsigned int GetBufferSize()
const {
return m_bufferSize; }
75 uint8_t m_buffer[MAX_IEC61937_PACKET];
76 unsigned int m_bufferSize = 0;
77 unsigned int m_skipBytes = 0;
79 typedef unsigned int (
CAEStreamParser::*ParseFunc)(uint8_t *data,
unsigned int size);
82 bool m_coreOnly =
false;
83 unsigned int m_needBytes = 0;
85 bool m_hasSync =
false;
87 unsigned int m_coreSize = 0;
88 unsigned int m_dtsBlocks = 0;
89 unsigned int m_fsize = 0;
91 AVCRC m_crcTrueHD[1024];
93 void GetPacket(uint8_t **buffer,
unsigned int *bufferSize);
94 unsigned int DetectType(uint8_t *data,
unsigned int size);
95 bool TrySyncAC3(uint8_t *data,
unsigned int size,
bool resyncing,
bool wantEAC3dependent);
96 unsigned int SyncAC3(uint8_t *data,
unsigned int size);
97 unsigned int SyncDTS(uint8_t *data,
unsigned int size);
98 unsigned int SyncTrueHD(uint8_t *data,
unsigned int size);
100 static unsigned int GetTrueHDChannels(
const uint16_t chanmap);
Definition: AEStreamInfo.h:51
Definition: AEStreamInfo.h:22