Lines Matching refs:hBs

105                      HANDLE_FDK_BITSTREAM hBs,   /*!< handle to current bit buffer structure */  in adtsRead_CrcStartReg()  argument
113 return ( FDKcrcStartReg(&pAdts->crcInfo, hBs, mBits) ); in adtsRead_CrcStartReg()
119 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsRead_CrcEndReg() argument
125 FDKcrcEndReg(&pAdts->crcInfo, hBs, reg); in adtsRead_CrcEndReg()
168 HANDLE_FDK_BITSTREAM hBs, in adtsRead_DecodeHeader() argument
187 valBits = FDKgetValidBits(hBs); in adtsRead_DecodeHeader()
190 bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id); in adtsRead_DecodeHeader()
191 bs.layer = FDKreadBits(hBs, Adts_Length_Layer); in adtsRead_DecodeHeader()
192 bs.protection_absent = FDKreadBits(hBs, Adts_Length_ProtectionAbsent); in adtsRead_DecodeHeader()
193 bs.profile = FDKreadBits(hBs, Adts_Length_Profile); in adtsRead_DecodeHeader()
194 bs.sample_freq_index = FDKreadBits(hBs, Adts_Length_SamplingFrequencyIndex); in adtsRead_DecodeHeader()
195 bs.private_bit = FDKreadBits(hBs, Adts_Length_PrivateBit); in adtsRead_DecodeHeader()
196 bs.channel_config = FDKreadBits(hBs, Adts_Length_ChannelConfiguration); in adtsRead_DecodeHeader()
197 bs.original = FDKreadBits(hBs, Adts_Length_OriginalCopy); in adtsRead_DecodeHeader()
198 bs.home = FDKreadBits(hBs, Adts_Length_Home); in adtsRead_DecodeHeader()
201 bs.copyright_id = FDKreadBits(hBs, Adts_Length_CopyrightIdentificationBit); in adtsRead_DecodeHeader()
202 bs.copyright_start = FDKreadBits(hBs, Adts_Length_CopyrightIdentificationStart); in adtsRead_DecodeHeader()
203 bs.frame_length = FDKreadBits(hBs, Adts_Length_FrameLength); in adtsRead_DecodeHeader()
204 bs.adts_fullness = FDKreadBits(hBs, Adts_Length_BufferFullness); in adtsRead_DecodeHeader()
205 bs.num_raw_blocks = FDKreadBits(hBs, Adts_Length_NumberOfRawDataBlocksInFrame); in adtsRead_DecodeHeader()
212 FDKpushBack(hBs, 56); /* complete fixed and variable header! */ in adtsRead_DecodeHeader()
213 crcReg = FDKcrcStartReg(&pAdts->crcInfo, hBs, 0); in adtsRead_DecodeHeader()
214 FDKpushFor(hBs, 56); in adtsRead_DecodeHeader()
219 pAdts->rawDataBlockDist[i] = (USHORT)FDKreadBits(hBs, 16); in adtsRead_DecodeHeader()
234 FDKcrcEndReg(&pAdts->crcInfo, hBs, crcReg); in adtsRead_DecodeHeader()
235 crc_check = FDKreadBits(hBs, Adts_Length_CrcCheck); in adtsRead_DecodeHeader()
255 FDKpushFor(hBs, bs.frame_length * 8); // try again one frame later in adtsRead_DecodeHeader()
265 FDKpushFor(hBs, bs.frame_length * 8); // try again one frame later in adtsRead_DecodeHeader()
284 FDKpushBack(hBs, adtsHeaderLength); in adtsRead_DecodeHeader()
313 UINT alignAnchor = FDKgetValidBits(hBs); in adtsRead_DecodeHeader()
315 if (FDKreadBits(hBs,3) == ID_PCE) { in adtsRead_DecodeHeader()
318 crcReg = adtsRead_CrcStartReg(pAdts, hBs, 0); in adtsRead_DecodeHeader()
320 CProgramConfig_Read(&pAsc->m_progrConfigElement, hBs, alignAnchor); in adtsRead_DecodeHeader()
322 adtsRead_CrcEndReg(pAdts, hBs, crcReg); in adtsRead_DecodeHeader()
323 pceBits = alignAnchor - FDKgetValidBits(hBs); in adtsRead_DecodeHeader()
329 FDKpushBack(hBs,3); in adtsRead_DecodeHeader()
344 FDKpushFor(hBs, (bs.frame_length<<3) - adtsHeaderLength - 3); in adtsRead_DecodeHeader()