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