14 #define MAX_IEC61937_PACKET 61440 15 #define IEC61937_DATA_OFFSET 8 17 #define DTS1_FRAME_SIZE 512 18 #define DTS2_FRAME_SIZE 1024 19 #define DTS3_FRAME_SIZE 2048 20 #define AC3_FRAME_SIZE 1536 21 #define EAC3_FRAME_SIZE 6144 22 #define TRUEHD_FRAME_SIZE 15360 24 #define OUT_SAMPLESIZE 16 25 #define OUT_CHANNELS 2 26 #define OUT_FRAMESTOBYTES(a) ((a) * OUT_CHANNELS * (OUT_SAMPLESIZE>>3)) 32 typedef int (*PackFunc)(uint8_t *data,
unsigned int size, uint8_t *dest);
34 static int PackAC3 (uint8_t *data,
unsigned int size, uint8_t *dest);
35 static int PackEAC3 (uint8_t *data,
unsigned int size, uint8_t *dest);
36 static int PackDTS_512 (uint8_t *data,
unsigned int size, uint8_t *dest,
bool littleEndian);
37 static int PackDTS_1024(uint8_t *data,
unsigned int size, uint8_t *dest,
bool littleEndian);
38 static int PackDTS_2048(uint8_t *data,
unsigned int size, uint8_t *dest,
bool littleEndian);
39 static int PackTrueHD (uint8_t *data,
unsigned int size, uint8_t *dest);
40 static int PackDTSHD (uint8_t *data,
unsigned int size, uint8_t *dest,
unsigned int period);
41 static int PackPause(uint8_t *dest,
unsigned int millis,
unsigned int framesize,
unsigned int samplerate,
unsigned int rep_period,
unsigned int encodedRate);
44 static int PackDTS(uint8_t *data,
unsigned int size, uint8_t *dest,
bool littleEndian,
45 unsigned int frameSize, uint16_t type);
49 IEC61937_TYPE_NULL = 0x00,
50 IEC61937_TYPE_AC3 = 0x01,
51 IEC61937_TYPE_DTS1 = 0x0B,
52 IEC61937_TYPE_DTS2 = 0x0C,
53 IEC61937_TYPE_DTS3 = 0x0D,
54 IEC61937_TYPE_DTSHD = 0x11,
55 IEC61937_TYPE_EAC3 = 0x15,
56 IEC61937_TYPE_TRUEHD = 0x16
62 __pragma(pack(push, 1))
70 uint8_t m_data[MAX_IEC61937_PACKET - IEC61937_DATA_OFFSET];
Definition: DVDDemuxBXA.h:19
Definition: AEPackIEC61937.h:28