• Home
  • Raw
  • Download

Lines Matching refs:pAdts

98 void adtsRead_CrcInit(HANDLE_ADTS pAdts) /*!< pointer to adts crc info stucture */  in adtsRead_CrcInit()  argument
100 FDKcrcInit(&pAdts->crcInfo, 0x8005, 0xFFFF, 16); in adtsRead_CrcInit()
104 HANDLE_ADTS pAdts, /*!< pointer to adts stucture */ in adtsRead_CrcStartReg() argument
109 if (pAdts->bs.protection_absent) { in adtsRead_CrcStartReg()
113 return ( FDKcrcStartReg(&pAdts->crcInfo, hBs, mBits) ); in adtsRead_CrcStartReg()
118 HANDLE_ADTS pAdts, /*!< pointer to adts crc info stucture */ in adtsRead_CrcEndReg() argument
123 if (pAdts->bs.protection_absent == 0) in adtsRead_CrcEndReg()
125 FDKcrcEndReg(&pAdts->crcInfo, hBs, reg); in adtsRead_CrcEndReg()
129 TRANSPORTDEC_ERROR adtsRead_CrcCheck( HANDLE_ADTS pAdts ) in adtsRead_CrcCheck() argument
134 if (pAdts->bs.protection_absent) in adtsRead_CrcCheck()
137 crc = FDKcrcGetCRC(&pAdts->crcInfo); in adtsRead_CrcCheck()
138 if (crc != pAdts->crcReadValue) in adtsRead_CrcCheck()
166 HANDLE_ADTS pAdts, in adtsRead_DecodeHeader() argument
211 FDKcrcReset(&pAdts->crcInfo); in adtsRead_DecodeHeader()
213 crcReg = FDKcrcStartReg(&pAdts->crcInfo, hBs, 0); in adtsRead_DecodeHeader()
219 pAdts->rawDataBlockDist[i] = (USHORT)FDKreadBits(hBs, 16); in adtsRead_DecodeHeader()
223 pAdts->rawDataBlockDist[bs.num_raw_blocks] = bs.frame_length - 7 - bs.num_raw_blocks*2 - 2 ; in adtsRead_DecodeHeader()
225 pAdts->rawDataBlockDist[i] -= pAdts->rawDataBlockDist[i-1]; in adtsRead_DecodeHeader()
234 FDKcrcEndReg(&pAdts->crcInfo, hBs, crcReg); in adtsRead_DecodeHeader()
238 pAdts->crcReadValue = crc_check; in adtsRead_DecodeHeader()
241 if (pAdts->crcReadValue != FDKcrcGetCRC(&pAdts->crcInfo)) { in adtsRead_DecodeHeader()
245 FDKcrcReset(&pAdts->crcInfo); in adtsRead_DecodeHeader()
260 if ( (bs.mpeg_id == 0) && (pAdts->decoderCanDoMpeg4 == 0) ) in adtsRead_DecodeHeader()
277 if (pAdts->BufferFullnesStartFlag) in adtsRead_DecodeHeader()
294 pAdts->BufferFullnesStartFlag = 0; in adtsRead_DecodeHeader()
318 crcReg = adtsRead_CrcStartReg(pAdts, hBs, 0); in adtsRead_DecodeHeader()
322 adtsRead_CrcEndReg(pAdts, hBs, crcReg); in adtsRead_DecodeHeader()
334 …&& (bs.sample_freq_index == pAdts->bs.sample_freq_index) /* we could compare the complete fixed h… in adtsRead_DecodeHeader()
335 && (bs.channel_config == pAdts->bs.channel_config) /* == 0 */ in adtsRead_DecodeHeader()
336 && (bs.mpeg_id == pAdts->bs.mpeg_id) ) in adtsRead_DecodeHeader()
356 FDKmemcpy(&pAdts->bs, &bs, sizeof(STRUCT_ADTS_BS)); in adtsRead_DecodeHeader()
362 HANDLE_ADTS pAdts, in adtsRead_GetRawDataBlockLength() argument
368 if (pAdts->bs.num_raw_blocks == 0) { in adtsRead_GetRawDataBlockLength()
369 …length = (pAdts->bs.frame_length - 7) << 3; /* aac_frame_length subtracted by the header size (… in adtsRead_GetRawDataBlockLength()
370 if (pAdts->bs.protection_absent == 0) in adtsRead_GetRawDataBlockLength()
373 if (pAdts->bs.protection_absent) { in adtsRead_GetRawDataBlockLength()
379 length = (pAdts->rawDataBlockDist[blockNum] << 3) - 16; in adtsRead_GetRawDataBlockLength()
383 length -= pAdts->bs.num_pce_bits; in adtsRead_GetRawDataBlockLength()