Lines Matching refs:psOut
509 static INT encodeIpdOpd(HANDLE_PS_OUT psOut, in encodeIpdOpd() argument
516 FDKsbrEnc_WriteBits_ps(hBitBuf, psOut->enableIpdOpd, 1); in encodeIpdOpd()
518 if(psOut->enableIpdOpd==1) { in encodeIpdOpd()
519 INT *ipdLast = psOut->ipdLast; in encodeIpdOpd()
520 INT *opdLast = psOut->opdLast; in encodeIpdOpd()
522 for(env=0; env<psOut->nEnvelopes; env++) { in encodeIpdOpd()
523 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaIPD[env], 1); in encodeIpdOpd()
525 psOut->ipd[env], in encodeIpdOpd()
527 getNoBands((PS_RESOLUTION)psOut->iidMode), in encodeIpdOpd()
528 psOut->deltaIPD[env], in encodeIpdOpd()
531 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaOPD[env], 1); in encodeIpdOpd()
533 psOut->opd[env], in encodeIpdOpd()
535 getNoBands((PS_RESOLUTION)psOut->iidMode), in encodeIpdOpd()
536 psOut->deltaOPD[env], in encodeIpdOpd()
587 static INT encodePSExtension(const HANDLE_PS_OUT psOut, in encodePSExtension() argument
592 if(psOut->enableIpdOpd==1) { in encodePSExtension()
594 INT extSize = (2 + encodeIpdOpd(psOut,NULL)+7)>>3; in encodePSExtension()
606 ipdOpdBits += encodeIpdOpd(psOut, hBitBuf ); in encodePSExtension()
618 INT FDKsbrEnc_WritePSBitstream(const HANDLE_PS_OUT psOut, in FDKsbrEnc_WritePSBitstream() argument
626 if(psOut != NULL){ in FDKsbrEnc_WritePSBitstream()
629 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->enablePSHeader, 1); in FDKsbrEnc_WritePSBitstream()
631 if(psOut->enablePSHeader) { in FDKsbrEnc_WritePSBitstream()
633 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->enableIID, 1); in FDKsbrEnc_WritePSBitstream()
634 if(psOut->enableIID) { in FDKsbrEnc_WritePSBitstream()
635 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->iidMode, 3); in FDKsbrEnc_WritePSBitstream()
637 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->enableICC, 1); in FDKsbrEnc_WritePSBitstream()
638 if(psOut->enableICC) { in FDKsbrEnc_WritePSBitstream()
639 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->iccMode, 3); in FDKsbrEnc_WritePSBitstream()
641 if(psOut->enableIpdOpd) { in FDKsbrEnc_WritePSBitstream()
648 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->frameClass, 1); in FDKsbrEnc_WritePSBitstream()
649 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, getEnvIdx(psOut->nEnvelopes, psOut->frameClass), 2); in FDKsbrEnc_WritePSBitstream()
651 if(psOut->frameClass==1) { in FDKsbrEnc_WritePSBitstream()
652 for(env=0; env<psOut->nEnvelopes; env++) { in FDKsbrEnc_WritePSBitstream()
653 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->frameBorder[env], 5); in FDKsbrEnc_WritePSBitstream()
657 if(psOut->enableIID==1) { in FDKsbrEnc_WritePSBitstream()
658 INT *iidLast = psOut->iidLast; in FDKsbrEnc_WritePSBitstream()
659 for(env=0; env<psOut->nEnvelopes; env++) { in FDKsbrEnc_WritePSBitstream()
660 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaIID[env], 1); in FDKsbrEnc_WritePSBitstream()
662 psOut->iid[env], in FDKsbrEnc_WritePSBitstream()
664 getNoBands((PS_RESOLUTION)psOut->iidMode), in FDKsbrEnc_WritePSBitstream()
665 (PS_IID_RESOLUTION)getIIDRes(psOut->iidMode), in FDKsbrEnc_WritePSBitstream()
666 psOut->deltaIID[env], in FDKsbrEnc_WritePSBitstream()
669 iidLast = psOut->iid[env]; in FDKsbrEnc_WritePSBitstream()
673 if(psOut->enableICC==1) { in FDKsbrEnc_WritePSBitstream()
674 INT *iccLast = psOut->iccLast; in FDKsbrEnc_WritePSBitstream()
675 for(env=0; env<psOut->nEnvelopes; env++) { in FDKsbrEnc_WritePSBitstream()
676 bitCnt += FDKsbrEnc_WriteBits_ps( hBitBuf, psOut->deltaICC[env], 1); in FDKsbrEnc_WritePSBitstream()
678 psOut->icc[env], in FDKsbrEnc_WritePSBitstream()
680 getNoBands((PS_RESOLUTION)psOut->iccMode), in FDKsbrEnc_WritePSBitstream()
681 psOut->deltaICC[env], in FDKsbrEnc_WritePSBitstream()
684 iccLast = psOut->icc[env]; in FDKsbrEnc_WritePSBitstream()
689 bitCnt += encodePSExtension(psOut, hBitBuf); in FDKsbrEnc_WritePSBitstream()