Lines Matching refs:tnsInfo
446 static INT FDKaacEnc_encodeTnsDataPresent(TNS_INFO *tnsInfo, in FDKaacEnc_encodeTnsDataPresent() argument
450 if ( (hBitStream!=NULL) && (tnsInfo!=NULL) ) in FDKaacEnc_encodeTnsDataPresent()
456 if (tnsInfo->numOfFilters[i]!=0) { in FDKaacEnc_encodeTnsDataPresent()
480 static INT FDKaacEnc_encodeTnsData(TNS_INFO *tnsInfo, in FDKaacEnc_encodeTnsData() argument
486 if (tnsInfo!=NULL) { in FDKaacEnc_encodeTnsData()
494 if (tnsInfo->numOfFilters[i]!=0) { in FDKaacEnc_encodeTnsData()
503 FDKwriteBits(hBitStream,tnsInfo->numOfFilters[i],(blockType==SHORT_WINDOW?1:2)); in FDKaacEnc_encodeTnsData()
505 if (tnsInfo->numOfFilters[i]) { in FDKaacEnc_encodeTnsData()
506 FDKwriteBits(hBitStream,(tnsInfo->coefRes[i]==4?1:0),1); in FDKaacEnc_encodeTnsData()
509 for (j=0; j<tnsInfo->numOfFilters[i]; j++) { in FDKaacEnc_encodeTnsData()
510 FDKwriteBits(hBitStream,tnsInfo->length[i][j],(blockType==SHORT_WINDOW?4:6)); in FDKaacEnc_encodeTnsData()
512 FDK_ASSERT(tnsInfo->order[i][j] <= 12); in FDKaacEnc_encodeTnsData()
513 FDKwriteBits(hBitStream,tnsInfo->order[i][j],(blockType==SHORT_WINDOW?3:5)); in FDKaacEnc_encodeTnsData()
515 if (tnsInfo->order[i][j]){ in FDKaacEnc_encodeTnsData()
516 FDKwriteBits(hBitStream,tnsInfo->direction[i][j],1); in FDKaacEnc_encodeTnsData()
518 if(tnsInfo->coefRes[i] == 4) { in FDKaacEnc_encodeTnsData()
520 for(k=0; k<tnsInfo->order[i][j]; k++) { in FDKaacEnc_encodeTnsData()
521 if (tnsInfo->coef[i][j][k]> 3 || in FDKaacEnc_encodeTnsData()
522 tnsInfo->coef[i][j][k]< -4) { in FDKaacEnc_encodeTnsData()
529 for(k=0; k<tnsInfo->order[i][j]; k++) { in FDKaacEnc_encodeTnsData()
530 if ( tnsInfo->coef[i][j][k]> 1 in FDKaacEnc_encodeTnsData()
531 || tnsInfo->coef[i][j][k]< -2) { in FDKaacEnc_encodeTnsData()
537 FDKwriteBits(hBitStream,-(coefBits - tnsInfo->coefRes[i]),1); /*coef_compres*/ in FDKaacEnc_encodeTnsData()
539 for (k=0; k<tnsInfo->order[i][j]; k++ ) { in FDKaacEnc_encodeTnsData()
541 FDKwriteBits(hBitStream,tnsInfo->coef[i][j][k] & rmask[coefBits],coefBits); in FDKaacEnc_encodeTnsData()
553 if (tnsInfo->numOfFilters[i]) { in FDKaacEnc_encodeTnsData()
555 for (j=0; j<tnsInfo->numOfFilters[i]; j++) { in FDKaacEnc_encodeTnsData()
558 if (tnsInfo->order[i][j]) { in FDKaacEnc_encodeTnsData()
561 if (tnsInfo->coefRes[i] == 4) { in FDKaacEnc_encodeTnsData()
563 for (k=0; k<tnsInfo->order[i][j]; k++) { in FDKaacEnc_encodeTnsData()
564 if (tnsInfo->coef[i][j][k]> 3 || tnsInfo->coef[i][j][k]< -4) { in FDKaacEnc_encodeTnsData()
572 for (k=0; k<tnsInfo->order[i][j]; k++) { in FDKaacEnc_encodeTnsData()
573 if (tnsInfo->coef[i][j][k]> 1 || tnsInfo->coef[i][j][k]< -2) { in FDKaacEnc_encodeTnsData()
579 for (k=0; k<tnsInfo->order[i][j]; k++) { in FDKaacEnc_encodeTnsData()
1069 pTnsInfo = &psyOutChannel[ch]->tnsInfo; in FDKaacEnc_ChannelElementWrite()