Home | History | Annotate | Download | only in src

Lines Matching refs:psOut

511 static INT encodeIpdOpd(HANDLE_PS_OUT        psOut,
518 FDKsbrEnc_WriteBits_ps(hBitBuf, psOut->enableIpdOpd, 1);
520 if(psOut->enableIpdOpd==1) {
521 INT *ipdLast = psOut->ipdLast;
522 INT *opdLast = psOut->opdLast;
524 for(env=0; env<psOut->nEnvelopes; env++) {
525 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaIPD[env], 1);
527 psOut->ipd[env],
529 getNoBands(psOut->iidMode),
530 psOut->deltaIPD[env],
533 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaOPD[env], 1);
535 psOut->opd[env],
537 getNoBands(psOut->iidMode),
538 psOut->deltaOPD[env],
589 static INT encodePSExtension(const HANDLE_PS_OUT psOut,
594 if(psOut->enableIpdOpd==1) {
596 INT extSize = (2 + encodeIpdOpd(psOut,NULL)+7)>>3;
608 ipdOpdBits += encodeIpdOpd(psOut, hBitBuf );
620 INT FDKsbrEnc_WritePSBitstream(const HANDLE_PS_OUT psOut,
628 if(psOut != NULL){
631 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->enablePSHeader, 1);
633 if(psOut->enablePSHeader) {
635 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->enableIID, 1);
636 if(psOut->enableIID) {
637 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->iidMode, 3);
639 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->enableICC, 1);
640 if(psOut->enableICC) {
641 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->iccMode, 3);
643 if(psOut->enableIpdOpd) {
650 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->frameClass, 1);
651 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, getEnvIdx(psOut->nEnvelopes, psOut->frameClass), 2);
653 if(psOut->frameClass==1) {
654 for(env=0; env<psOut->nEnvelopes; env++) {
655 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->frameBorder[env], 5);
659 if(psOut->enableIID==1) {
660 INT *iidLast = psOut->iidLast;
661 for(env=0; env<psOut->nEnvelopes; env++) {
662 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaIID[env], 1);
664 psOut->iid[env],
666 getNoBands(psOut->iidMode),
667 (PS_IID_RESOLUTION)getIIDRes(psOut->iidMode),
668 psOut->deltaIID[env],
671 iidLast = psOut->iid[env];
675 if(psOut->enableICC==1) {
676 INT *iccLast = psOut->iccLast;
677 for(env=0; env<psOut->nEnvelopes; env++) {
678 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaICC[env], 1);
680 psOut->icc[env],
682 getNoBands(psOut->iccMode),
683 psOut->deltaICC[env],
686 iccLast = psOut->icc[env];
691 bitCnt += encodePSExtension(psOut, hBitBuf);
694 } /* if(psOut != NULL) */