Lines Matching refs:hBitStream
188 HANDLE_FDK_BITSTREAM hBitStream, in adtsWrite_EncodeHeader() argument
205 FDKresetBitbuffer(hBitStream, BS_WRITER); in adtsWrite_EncodeHeader()
208 hAdts->subFrameStartBit = FDKgetValidBits(hBitStream); in adtsWrite_EncodeHeader()
213 FDKresetBitbuffer(hBitStream, BS_WRITER); in adtsWrite_EncodeHeader()
216 crcIndex = adtsWrite_CrcStartReg(hAdts, hBitStream, 0); in adtsWrite_EncodeHeader()
220 FDKwriteBits(hBitStream, 0xFFF, 12); in adtsWrite_EncodeHeader()
221 FDKwriteBits(hBitStream, hAdts->mpeg_id, 1); in adtsWrite_EncodeHeader()
222 FDKwriteBits(hBitStream, hAdts->layer, 2); in adtsWrite_EncodeHeader()
223 FDKwriteBits(hBitStream, hAdts->protection_absent, 1); in adtsWrite_EncodeHeader()
224 FDKwriteBits(hBitStream, hAdts->profile, 2); in adtsWrite_EncodeHeader()
225 FDKwriteBits(hBitStream, hAdts->sample_freq_index, 4); in adtsWrite_EncodeHeader()
226 FDKwriteBits(hBitStream, hAdts->private_bit, 1); in adtsWrite_EncodeHeader()
227 FDKwriteBits(hBitStream, getChannelConfig(hAdts->channel_mode), 3); in adtsWrite_EncodeHeader()
228 FDKwriteBits(hBitStream, hAdts->original, 1); in adtsWrite_EncodeHeader()
229 FDKwriteBits(hBitStream, hAdts->home, 1); in adtsWrite_EncodeHeader()
231 FDKwriteBits(hBitStream, hAdts->copyright_id, 1); in adtsWrite_EncodeHeader()
232 FDKwriteBits(hBitStream, hAdts->copyright_start, 1); in adtsWrite_EncodeHeader()
233 FDKwriteBits(hBitStream, (frame_length + hAdts->headerBits)>>3, 13); in adtsWrite_EncodeHeader()
234 FDKwriteBits(hBitStream, buffer_fullness, 11); in adtsWrite_EncodeHeader()
235 FDKwriteBits(hBitStream, hAdts->num_raw_blocks, 2); in adtsWrite_EncodeHeader()
242 adtsWrite_CrcEndReg(hAdts, hBitStream, crcIndex); in adtsWrite_EncodeHeader()
245 FDKwriteBits(hBitStream, 0, 16); in adtsWrite_EncodeHeader()
248 FDKwriteBits(hBitStream, 0, 16); in adtsWrite_EncodeHeader()