Lines Matching refs:config

229   const PCE_CONFIGURATION* config = NULL;  in transportEnc_writePCE()  local
238 if ((config=getPceEntry(channelMode))==NULL) { in transportEnc_writePCE()
243 pEl_list = &config->el_list[0]; in transportEnc_writePCE()
249 FDKwriteBits(hBs, config->num_front_channel_elements, 4); /* Front channel Elements */ in transportEnc_writePCE()
250 FDKwriteBits(hBs, config->num_side_channel_elements , 4); /* No Side Channel Elements */ in transportEnc_writePCE()
251 FDKwriteBits(hBs, config->num_back_channel_elements , 4); /* No Back channel Elements */ in transportEnc_writePCE()
252 FDKwriteBits(hBs, config->num_lfe_channel_elements , 2); /* No Lfe channel elements */ in transportEnc_writePCE()
268 for(i=0; i<config->num_front_channel_elements; i++) { in transportEnc_writePCE()
274 for(i=0; i<config->num_side_channel_elements; i++) { in transportEnc_writePCE()
280 for(i=0; i<config->num_back_channel_elements; i++) { in transportEnc_writePCE()
286 for(i=0; i<config->num_lfe_channel_elements; i++) { in transportEnc_writePCE()
310 const PCE_CONFIGURATION* config = NULL; in transportEnc_GetPCEBits() local
312 if ((config=getPceEntry(channelMode))==NULL) { in transportEnc_GetPCEBits()
325 bits += (1+4) * (INT)config->num_front_channel_elements; in transportEnc_GetPCEBits()
326 bits += (1+4) * (INT)config->num_side_channel_elements; in transportEnc_GetPCEBits()
327 bits += (1+4) * (INT)config->num_back_channel_elements; in transportEnc_GetPCEBits()
328 bits += (4) * (INT)config->num_lfe_channel_elements; in transportEnc_GetPCEBits()
371 CODER_CONFIG *config, in transportEnc_writeGASpecificConfig() argument
376 int aot = config->aot; in transportEnc_writeGASpecificConfig()
377 int samplesPerFrame = config->samplesPerFrame; in transportEnc_writeGASpecificConfig()
385 if (getChannelConfig(config->channelMode) == 0) { in transportEnc_writeGASpecificConfig()
386 …transportEnc_writePCE(asc, config->channelMode, config->samplingRate, 0, 1, config->matrixMixdownA… in transportEnc_writeGASpecificConfig()
390 FDKwriteBits( asc, config->BSACnumOfSubFrame, 5 ); /* numOfSubFrame */ in transportEnc_writeGASpecificConfig()
391 FDKwriteBits( asc, config->BSAClayerLength, 11 ); /* layer_length */ in transportEnc_writeGASpecificConfig()
396 … FDKwriteBits( asc, (config->flags & CC_VCB11) ? 1 : 0, 1 ); /* aacSectionDataResillienceFlag */ in transportEnc_writeGASpecificConfig()
397 …FDKwriteBits( asc, (config->flags & CC_RVLC) ? 1 : 0, 1 ); /* aacScaleFactorDataResillienceFlag */ in transportEnc_writeGASpecificConfig()
398 … FDKwriteBits( asc, (config->flags & CC_HCR) ? 1 : 0, 1 ); /* aacSpectralDataResillienceFlag */ in transportEnc_writeGASpecificConfig()
411 CODER_CONFIG *config, in transportEnc_writeELDSpecificConfig() argument
417 if (config->channelMode == MODE_1_1) { in transportEnc_writeELDSpecificConfig()
420 FDKwriteBits(hBs, (config->samplesPerFrame == 480) ? 1 : 0, 1); in transportEnc_writeELDSpecificConfig()
422 FDKwriteBits(hBs, (config->flags & CC_VCB11 ) ? 1:0, 1); in transportEnc_writeELDSpecificConfig()
423 FDKwriteBits(hBs, (config->flags & CC_RVLC ) ? 1:0, 1); in transportEnc_writeELDSpecificConfig()
424 FDKwriteBits(hBs, (config->flags & CC_HCR ) ? 1:0, 1); in transportEnc_writeELDSpecificConfig()
426 FDKwriteBits(hBs, (config->flags & CC_SBR) ? 1:0, 1); /* SBR header flag */ in transportEnc_writeELDSpecificConfig()
427 if ( (config->flags & CC_SBR) ) { in transportEnc_writeELDSpecificConfig()
428 …FDKwriteBits(hBs, (config->samplingRate == config->extSamplingRate) ? 0:1, 1); /* Samplerate Flag … in transportEnc_writeELDSpecificConfig()
429 FDKwriteBits(hBs, (config->flags & CC_SBRCRC) ? 1:0, 1); /* SBR CRC flag*/ in transportEnc_writeELDSpecificConfig()
435 pPce = getPceEntry(config->channelMode); in transportEnc_writeELDSpecificConfig()
439 cb->cbSbr(cb->cbSbrData, hBs, 0, 0, 0, config->aot, pPce->el_list[e], e); in transportEnc_writeELDSpecificConfig()
454 CODER_CONFIG *config, in transportEnc_writeASC() argument
466 switch (config->aot) { in transportEnc_writeASC()
481 if (config->sbrSignaling==SIG_EXPLICIT_HIERARCHICAL && config->sbrPresent) in transportEnc_writeASC()
482 writeAot(asc, config->extAOT); in transportEnc_writeASC()
484 writeAot(asc, config->aot); in transportEnc_writeASC()
487 writeSampleRate(asc, config->samplingRate); in transportEnc_writeASC()
491 if (config->channelMode == MODE_INVALID) { in transportEnc_writeASC()
492 config->channelMode = transportEnc_GetChannelMode(config->noChannels); in transportEnc_writeASC()
493 if (config->channelMode == MODE_INVALID) in transportEnc_writeASC()
497 FDKwriteBits( asc, getChannelConfig(config->channelMode), 4 ); in transportEnc_writeASC()
499 if (config->sbrSignaling==SIG_EXPLICIT_HIERARCHICAL && config->sbrPresent) { in transportEnc_writeASC()
500 writeSampleRate(asc, config->extSamplingRate); in transportEnc_writeASC()
501 writeAot(asc, config->aot); in transportEnc_writeASC()
504 switch (config->aot) { in transportEnc_writeASC()
518 err = transportEnc_writeGASpecificConfig(asc, config, extFlag, alignAnchor); in transportEnc_writeASC()
525 err = transportEnc_writeELDSpecificConfig(asc, config, epConfig, cb); in transportEnc_writeASC()
534 switch (config->aot) { in transportEnc_writeASC()
553 if (config->sbrSignaling==SIG_EXPLICIT_BW_COMPATIBLE) in transportEnc_writeASC()
557 if (config->sbrPresent) { in transportEnc_writeASC()
560 writeAot(asc, config->extAOT); in transportEnc_writeASC()
562 writeSampleRate(asc, config->extSamplingRate); in transportEnc_writeASC()
563 if (config->psPresent) { in transportEnc_writeASC()