• Home
  • Raw
  • Download

Lines Matching refs:hBitStream

119                                         HANDLE_FDK_BITSTREAM    hBitStream)  in FDKaacEnc_encodeSpectralData()  argument
122 INT dbgVal = FDKgetValidBits(hBitStream); in FDKaacEnc_encodeSpectralData()
135 hBitStream); in FDKaacEnc_encodeSpectralData()
139 return(FDKgetValidBits(hBitStream)-dbgVal); in FDKaacEnc_encodeSpectralData()
153 HANDLE_FDK_BITSTREAM hBitStream, in FDKaacEnc_encodeGlobalGain() argument
156 if (hBitStream != NULL) { in FDKaacEnc_encodeGlobalGain()
157 FDKwriteBits(hBitStream,globalGain - scalefac + globalGainOffset-4*(LOG_NORM_PCM-mdctScale),8); in FDKaacEnc_encodeGlobalGain()
177 HANDLE_FDK_BITSTREAM hBitStream, in FDKaacEnc_encodeIcsInfo() argument
193 if (hBitStream != NULL) { in FDKaacEnc_encodeIcsInfo()
196 FDKwriteBits(hBitStream,icsReservedBit,1); in FDKaacEnc_encodeIcsInfo()
197 FDKwriteBits(hBitStream,blockType,2); in FDKaacEnc_encodeIcsInfo()
198 FDKwriteBits(hBitStream, (windowShape == LOL_WINDOW) ? KBD_WINDOW : windowShape,1); in FDKaacEnc_encodeIcsInfo()
205 FDKwriteBits(hBitStream,maxSfbPerGroup,6); in FDKaacEnc_encodeIcsInfo()
209 FDKwriteBits(hBitStream, 0, 1); in FDKaacEnc_encodeIcsInfo()
214 FDKwriteBits(hBitStream,maxSfbPerGroup,4); in FDKaacEnc_encodeIcsInfo()
217 FDKwriteBits(hBitStream,groupingMask,TRANS_FAC-1); in FDKaacEnc_encodeIcsInfo()
236 HANDLE_FDK_BITSTREAM hBitStream, in FDKaacEnc_encodeSectionData() argument
239 if (hBitStream != NULL) { in FDKaacEnc_encodeSectionData()
243 INT dbgVal=FDKgetValidBits(hBitStream); in FDKaacEnc_encodeSectionData()
265 FDKwriteBits(hBitStream,codeBook,sectCbBits); in FDKaacEnc_encodeSectionData()
272 FDKwriteBits(hBitStream,sectEscapeVal,sectLenBits); in FDKaacEnc_encodeSectionData()
275 FDKwriteBits(hBitStream,sectLen,sectLenBits); in FDKaacEnc_encodeSectionData()
278 return(FDKgetValidBits(hBitStream)-dbgVal); in FDKaacEnc_encodeSectionData()
295 HANDLE_FDK_BITSTREAM hBitStream, in FDKaacEnc_encodeScaleFactorData() argument
300 if (hBitStream != NULL) { in FDKaacEnc_encodeScaleFactorData()
307 INT dbgVal = FDKgetValidBits(hBitStream); in FDKaacEnc_encodeScaleFactorData()
324 if(FDKaacEnc_codeScalefactorDelta(deltaIs,hBitStream)) { in FDKaacEnc_encodeScaleFactorData()
337 FDKwriteBits(hBitStream,deltaPns+(1<<(PNS_PCM_BITS-1)),PNS_PCM_BITS); in FDKaacEnc_encodeScaleFactorData()
341 if(FDKaacEnc_codeScalefactorDelta(deltaPns,hBitStream)) { in FDKaacEnc_encodeScaleFactorData()
359 if(FDKaacEnc_codeScalefactorDelta(deltaScf,hBitStream)){ in FDKaacEnc_encodeScaleFactorData()
367 return(FDKgetValidBits(hBitStream)-dbgVal); in FDKaacEnc_encodeScaleFactorData()
387 HANDLE_FDK_BITSTREAM hBitStream) in FDKaacEnc_encodeMSInfo() argument
391 if (hBitStream != NULL) in FDKaacEnc_encodeMSInfo()
396 FDKwriteBits(hBitStream,SI_MS_MASK_NONE,2); in FDKaacEnc_encodeMSInfo()
401 FDKwriteBits(hBitStream,SI_MS_MASK_ALL,2); in FDKaacEnc_encodeMSInfo()
406 FDKwriteBits(hBitStream,SI_MS_MASK_SOME,2); in FDKaacEnc_encodeMSInfo()
413 FDKwriteBits(hBitStream,1,1); in FDKaacEnc_encodeMSInfo()
416 FDKwriteBits(hBitStream,0,1); in FDKaacEnc_encodeMSInfo()
448 HANDLE_FDK_BITSTREAM hBitStream) in FDKaacEnc_encodeTnsDataPresent() argument
450 if ( (hBitStream!=NULL) && (tnsInfo!=NULL) ) in FDKaacEnc_encodeTnsDataPresent()
463 FDKwriteBits(hBitStream,0,1); in FDKaacEnc_encodeTnsDataPresent()
465 FDKwriteBits(hBitStream,1,1); in FDKaacEnc_encodeTnsDataPresent()
482 HANDLE_FDK_BITSTREAM hBitStream) in FDKaacEnc_encodeTnsData() argument
499 if (hBitStream != NULL) in FDKaacEnc_encodeTnsData()
503 FDKwriteBits(hBitStream,tnsInfo->numOfFilters[i],(blockType==SHORT_WINDOW?1:2)); in FDKaacEnc_encodeTnsData()
506 FDKwriteBits(hBitStream,(tnsInfo->coefRes[i]==4?1:0),1); in FDKaacEnc_encodeTnsData()
510 FDKwriteBits(hBitStream,tnsInfo->length[i][j],(blockType==SHORT_WINDOW?4:6)); in FDKaacEnc_encodeTnsData()
513 FDKwriteBits(hBitStream,tnsInfo->order[i][j],(blockType==SHORT_WINDOW?3:5)); in FDKaacEnc_encodeTnsData()
516 FDKwriteBits(hBitStream,tnsInfo->direction[i][j],1); in FDKaacEnc_encodeTnsData()
537 FDKwriteBits(hBitStream,-(coefBits - tnsInfo->coefRes[i]),1); /*coef_compres*/ in FDKaacEnc_encodeTnsData()
541 FDKwriteBits(hBitStream,tnsInfo->coef[i][j][k] & rmask[coefBits],coefBits); in FDKaacEnc_encodeTnsData()
602 static INT FDKaacEnc_encodeGainControlData(HANDLE_FDK_BITSTREAM hBitStream) in FDKaacEnc_encodeGainControlData() argument
604 if (hBitStream != NULL) { in FDKaacEnc_encodeGainControlData()
605 FDKwriteBits(hBitStream,0,1); in FDKaacEnc_encodeGainControlData()
619 static INT FDKaacEnc_encodePulseData(HANDLE_FDK_BITSTREAM hBitStream) in FDKaacEnc_encodePulseData() argument
621 if (hBitStream != NULL) { in FDKaacEnc_encodePulseData()
622 FDKwriteBits(hBitStream,0,1); in FDKaacEnc_encodePulseData()
637 static INT FDKaacEnc_writeExtensionPayload( HANDLE_FDK_BITSTREAM hBitStream, in FDKaacEnc_writeExtensionPayload() argument
653 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionPayload()
654 FDKwriteBits(hBitStream, extPayloadType, EXT_TYPE_BITS); in FDKaacEnc_writeExtensionPayload()
663 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionPayload()
666 FDKwriteBits(hBitStream, extPayloadData[i], 8); in FDKaacEnc_writeExtensionPayload()
670 FDKwriteBits(hBitStream, extPayloadData[i]>>(8-writeBits), writeBits); in FDKaacEnc_writeExtensionPayload()
687 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionPayload()
689 … FDKwriteBits(hBitStream, 0x00, DATA_EL_VERSION_BITS); /* data_element_version = ANC_DATA */ in FDKaacEnc_writeExtensionPayload()
692 FDKwriteBits(hBitStream, 255, 8); in FDKaacEnc_writeExtensionPayload()
694 FDKwriteBits(hBitStream, dataElementLength, 8); in FDKaacEnc_writeExtensionPayload()
697 FDKwriteBits(hBitStream, extPayloadData[i], 8); in FDKaacEnc_writeExtensionPayload()
708 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionPayload()
710 FDKwriteBits(hBitStream, 0x00, FILL_NIBBLE_BITS); in FDKaacEnc_writeExtensionPayload()
713 FDKwriteBits(hBitStream, fillByte, 8); in FDKaacEnc_writeExtensionPayload()
776 HANDLE_FDK_BITSTREAM hBitStream = transportEnc_GetBitstream(hTpEnc); in FDKaacEnc_writeDataStreamElement() local
779 FDKwriteBits(hBitStream, ID_DSE, EL_ID_BITS); in FDKaacEnc_writeDataStreamElement()
783 FDKwriteBits(hBitStream, elementInstanceTag, EL_INSTANCE_TAG_BITS); in FDKaacEnc_writeDataStreamElement()
784 FDKwriteBits(hBitStream, DATA_BYTE_ALIGN_FLAG, DATA_BYTE_ALIGN_FLAG_BITS); in FDKaacEnc_writeDataStreamElement()
788 FDKwriteBits(hBitStream, 255, DATA_LEN_COUNT_BITS); in FDKaacEnc_writeDataStreamElement()
789 FDKwriteBits(hBitStream, esc_count, DATA_LEN_ESC_COUNT_BITS); in FDKaacEnc_writeDataStreamElement()
791 FDKwriteBits(hBitStream, cnt, DATA_LEN_COUNT_BITS); in FDKaacEnc_writeDataStreamElement()
795 INT tmp = (INT)FDKgetValidBits(hBitStream); in FDKaacEnc_writeDataStreamElement()
796 FDKbyteAlign(hBitStream, alignAnchor); in FDKaacEnc_writeDataStreamElement()
798 dseBitsUsed += (INT)FDKgetValidBits(hBitStream) - tmp - MAX_DATA_ALIGN_BITS; in FDKaacEnc_writeDataStreamElement()
803 FDKwriteBits(hBitStream, dataBuffer[i], 8); in FDKaacEnc_writeDataStreamElement()
835 HANDLE_FDK_BITSTREAM hBitStream = NULL; in FDKaacEnc_writeExtensionData() local
840 hBitStream = transportEnc_GetBitstream(hTpEnc); in FDKaacEnc_writeExtensionData()
855 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionData()
858 FDKpushFor(hBitStream, payloadBits-1); /* Does a cache sync internally */ in FDKaacEnc_writeExtensionData()
861 FDKwriteBitsBwd(hBitStream, extPayloadData[i], 8); in FDKaacEnc_writeExtensionData()
865 FDKwriteBitsBwd(hBitStream, extPayloadData[i]>>(8-writeBits), writeBits); in FDKaacEnc_writeExtensionData()
868 FDKsyncCacheBwd (hBitStream); in FDKaacEnc_writeExtensionData()
869 FDKpushFor (hBitStream, payloadBits+1); in FDKaacEnc_writeExtensionData()
877 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionData()
880 FDKwriteBits(hBitStream, 0x00, 8); in FDKaacEnc_writeExtensionData()
883 FDKwriteBits(hBitStream, 0x00, writeBits); in FDKaacEnc_writeExtensionData()
892 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionData()
897 FDKwriteBits(hBitStream, extPayloadData[i], 8); in FDKaacEnc_writeExtensionData()
901 FDKwriteBits(hBitStream, extPayloadData[i]>>(8-writeBits), writeBits); in FDKaacEnc_writeExtensionData()
909 extBitsUsed += FDKaacEnc_writeExtensionPayload( hBitStream, in FDKaacEnc_writeExtensionData()
948 if (hBitStream != NULL) { in FDKaacEnc_writeExtensionData()
950 FDKwriteBits(hBitStream, ID_FIL, EL_ID_BITS); in FDKaacEnc_writeExtensionData()
952 FDKwriteBits(hBitStream, 15, FILL_EL_COUNT_BITS); in FDKaacEnc_writeExtensionData()
953 FDKwriteBits(hBitStream, esc_count, FILL_EL_ESC_COUNT_BITS); in FDKaacEnc_writeExtensionData()
955 FDKwriteBits(hBitStream, cnt, FILL_EL_COUNT_BITS); in FDKaacEnc_writeExtensionData()
962 extBitsUsed += FDKaacEnc_writeExtensionPayload( hBitStream, in FDKaacEnc_writeExtensionData()
984 static void FDKaacEnc_ByteAlignment(HANDLE_FDK_BITSTREAM hBitStream, int alignBits) in FDKaacEnc_ByteAlignment() argument
986 FDKwriteBits(hBitStream, 0, alignBits); in FDKaacEnc_ByteAlignment()
1002 HANDLE_FDK_BITSTREAM hBitStream = NULL; in FDKaacEnc_ChannelElementWrite() local
1011 hBitStream = transportEnc_GetBitstream(hTpEnc); in FDKaacEnc_ChannelElementWrite()
1028 if (hBitStream != NULL) { in FDKaacEnc_ChannelElementWrite()
1029 FDKwriteBits(hBitStream, pElInfo->elType, EL_ID_BITS); in FDKaacEnc_ChannelElementWrite()
1080 if (hBitStream != NULL) { in FDKaacEnc_ChannelElementWrite()
1081 FDKwriteBits(hBitStream, pElInfo->instanceTag, 4); in FDKaacEnc_ChannelElementWrite()
1089 if (hBitStream != NULL) { in FDKaacEnc_ChannelElementWrite()
1090 FDKwriteBits(hBitStream, psyOutElement->commonWindow, 1); in FDKaacEnc_ChannelElementWrite()
1101 hBitStream, in FDKaacEnc_ChannelElementWrite()
1107 if (hBitStream != NULL) { in FDKaacEnc_ChannelElementWrite()
1108 FDKwriteBits(hBitStream, 0, 1); in FDKaacEnc_ChannelElementWrite()
1125 hBitStream); in FDKaacEnc_ChannelElementWrite()
1131 hBitStream, in FDKaacEnc_ChannelElementWrite()
1137 …INT siBits = FDKaacEnc_encodeSectionData(pChSectionData, hBitStream, (syntaxFlags & AC_ER_VCB11)?1… in FDKaacEnc_ChannelElementWrite()
1138 if (hBitStream != NULL) { in FDKaacEnc_ChannelElementWrite()
1152 hBitStream, in FDKaacEnc_ChannelElementWrite()
1156 if ( (hBitStream != NULL) in FDKaacEnc_ChannelElementWrite()
1173 bitDemand += FDKaacEnc_encodePulseData(hBitStream); in FDKaacEnc_ChannelElementWrite()
1180 hBitStream); in FDKaacEnc_ChannelElementWrite()
1186 hBitStream); in FDKaacEnc_ChannelElementWrite()
1194 bitDemand += FDKaacEnc_encodeGainControlData(hBitStream); in FDKaacEnc_ChannelElementWrite()
1206 if (hBitStream != NULL) in FDKaacEnc_ChannelElementWrite()
1213 hBitStream ); in FDKaacEnc_ChannelElementWrite()