Lines Matching refs:adif
108 int adifWrite_EncodeHeader(ADIF_INFO *adif, HANDLE_FDK_BITSTREAM hBs, in adifWrite_EncodeHeader() argument
119 INT totalBitRate = adif->bitRate; in adifWrite_EncodeHeader()
121 if (adif->headerWritten) return 0; in adifWrite_EncodeHeader()
127 adif->bVariableRate = (adif_buffer_fullness >= (INT)(0x1 << 20)) ? 1 : 0; in adifWrite_EncodeHeader()
143 FDKwriteBits(hBs, adif->bVariableRate ? 1 : 0, 1); in adifWrite_EncodeHeader()
149 if (!adif->bVariableRate) { in adifWrite_EncodeHeader()
153 transportEnc_writePCE(hBs, adif->cm, adif->samplingRate, adif->instanceTag, in adifWrite_EncodeHeader()
154 adif->profile, adif->matrixMixdownA, in adifWrite_EncodeHeader()
155 (adif->pseudoSurroundEnable) ? 1 : 0, alignAnchor); in adifWrite_EncodeHeader()
160 int adifWrite_GetHeaderBits(ADIF_INFO *adif) { in adifWrite_GetHeaderBits() argument
164 if (adif->headerWritten) return 0; in adifWrite_GetHeaderBits()
178 if (!adif->bVariableRate) { in adifWrite_GetHeaderBits()
183 bits = transportEnc_GetPCEBits(adif->cm, adif->matrixMixdownA, bits); in adifWrite_GetHeaderBits()