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