Lines Matching refs:FDKwriteBits
241 FDKwriteBits(hBs, instanceTagPCE, 4); /* Element instance tag */
242 FDKwriteBits(hBs, profile, 2); /* Object type */
243 FDKwriteBits(hBs, sampleRateIndex, 4); /* Sample rate index*/
245 FDKwriteBits(hBs, config->num_front_channel_elements, 4); /* Front channel Elements */
246 FDKwriteBits(hBs, config->num_side_channel_elements , 4); /* No Side Channel Elements */
247 FDKwriteBits(hBs, config->num_back_channel_elements , 4); /* No Back channel Elements */
248 FDKwriteBits(hBs, config->num_lfe_channel_elements , 2); /* No Lfe channel elements */
250 FDKwriteBits(hBs, 0, 3); /* No assoc data elements */
251 FDKwriteBits(hBs, 0, 4); /* No valid cc elements */
252 FDKwriteBits(hBs, 0, 1); /* Mono mixdown present */
253 FDKwriteBits(hBs, 0, 1); /* Stereo mixdown present */
256 FDKwriteBits(hBs, 1, 1); /* Matrix mixdown present */
257 FDKwriteBits(hBs, (matrixMixdownA-1)&0x3, 2); /* matrix_mixdown_idx */
258 FDKwriteBits(hBs, pseudoSurroundEnable&0x1, 1); /* pseudo_surround_enable */
261 FDKwriteBits(hBs, 0, 1); /* Matrix mixdown not present */
267 FDKwriteBits(hBs, isCpe, 1); /* Front channel Elements is CPE? */
268 FDKwriteBits(hBs, tag, 4); /* Front channel Instance Tag.*/
273 FDKwriteBits(hBs, isCpe, 1); /* Front channel Elements is CPE? */
274 FDKwriteBits(hBs, tag, 4); /* Front channel Instance Tag.*/
279 FDKwriteBits(hBs, isCpe, 1); /* Front channel Elements is CPE? */
280 FDKwriteBits(hBs, tag, 4); /* Front channel Instance Tag.*/
283 FDKwriteBits(hBs, lfeCnt++, 4); /* LFE channel Instance Tag. */
295 FDKwriteBits(hBs, 0 ,8); /* Do no write any comment. */
346 FDKwriteBits( hBitstreamBuffer, AOT_ESCAPE, 5 );
347 FDKwriteBits( hBitstreamBuffer, tmp-32, 6 ); /* AudioObjectType */
349 FDKwriteBits( hBitstreamBuffer, tmp, 5 );
357 FDKwriteBits( hBitstreamBuffer, sampleRateIndex, 4 );
359 FDKwriteBits( hBitstreamBuffer, sampleRate, 24 );
376 FDKwriteBits( asc, ((samplesPerFrame==960 || samplesPerFrame==480)?1:0), 1); /* frameLengthFlag: 1 for a 960/480 (I)MDCT, 0 for a 1024/512 (I)MDCT*/
377 FDKwriteBits( asc, 0, 1); /* dependsOnCoreCoder: Sampling Rate Coder Specific, see in ISO/IEC 14496-3 Subpart 4, 4.4.1 */
378 FDKwriteBits( asc, extFlg, 1 ); /* Extension Flag: Shall be 1 for aot = 17,19,20,21,22,23 */
386 FDKwriteBits( asc, config->BSACnumOfSubFrame, 5 ); /* numOfSubFrame */
387 FDKwriteBits( asc, config->BSAClayerLength, 11 ); /* layer_length */
392 FDKwriteBits( asc, (config->flags & CC_VCB11) ? 1 : 0, 1 ); /* aacSectionDataResillienceFlag */
393 FDKwriteBits( asc, (config->flags & CC_RVLC) ? 1 : 0, 1 ); /* aacScaleFactorDataResillienceFlag */
394 FDKwriteBits( asc, (config->flags & CC_HCR) ? 1 : 0, 1 ); /* aacSpectralDataResillienceFlag */
396 FDKwriteBits( asc, 0, 1 ); /* extensionFlag3: reserved. Shall be '0' */
416 FDKwriteBits(hBs, (config->samplesPerFrame == 480) ? 1 : 0, 1);
418 FDKwriteBits(hBs, (config->flags & CC_VCB11 ) ? 1:0, 1);
419 FDKwriteBits(hBs, (config->flags & CC_RVLC ) ? 1:0, 1);
420 FDKwriteBits(hBs, (config->flags & CC_HCR ) ? 1:0, 1);
422 FDKwriteBits(hBs, (config->flags & CC_SBR) ? 1:0, 1); /* SBR header flag */
424 FDKwriteBits(hBs, (config->samplingRate == config->extSamplingRate) ? 0:1, 1); /* Samplerate Flag */
425 FDKwriteBits(hBs, (config->flags & CC_SBRCRC) ? 1:0, 1); /* SBR CRC flag*/
441 FDKwriteBits(hBs, 0, 4); /* ELDEXT_TERM */
493 FDKwriteBits( asc, getChannelConfig(config->channelMode), 4 );
542 FDKwriteBits( asc, 0, 2 ); /* epconfig 0 */