Lines Matching refs:cep
244 static void initSmoothing(cep_subobj_t * cep);
250 static void invMatrix(cep_subobj_t * cep, picoos_uint16 N,
254 static picoos_uint8 makeWUWandWUm(cep_subobj_t * cep, picokpdf_PdfMUL pdf,
268 static void treat_phone(cep_subobj_t * cep, picodata_itemhead_t * ihead);
291 cep_subobj_t * cep; in cepInitialize() local
295 cep = (cep_subobj_t *) this->subObj; in cepInitialize()
297 cep->inBufSize = PICODATA_BUFSIZE_CEP; in cepInitialize()
298 cep->inReadPos = 0; in cepInitialize()
299 cep->inWritePos = 0; in cepInitialize()
301 cep->headxBottom = cep->headxWritePos = 0; in cepInitialize()
302 cep->cbufBufSize = PICOCEP_MAXSIZE_CBUF; in cepInitialize()
303 cep->cbufWritePos = 0; in cepInitialize()
305 cep->outBufSize = PICODATA_MAX_ITEMSIZE; in cepInitialize()
306 cep->outReadPos = 0; in cepInitialize()
307 cep->outWritePos = 0; in cepInitialize()
309 cep->indexReadPos = 0; in cepInitialize()
310 cep->indexWritePos = 0; in cepInitialize()
312 cep->outXCepReadPos = 0; in cepInitialize()
313 cep->outXCepWritePos = 0; in cepInitialize()
314 cep->outVoicedReadPos = 0; in cepInitialize()
315 cep->outVoicedWritePos = 0; in cepInitialize()
316 cep->outF0ReadPos = 0; in cepInitialize()
317 cep->outF0WritePos = 0; in cepInitialize()
319 cep->needMoreInput = 0; in cepInitialize()
320 cep->inIgnoreState = 0; in cepInitialize()
321 cep->sentenceEnd = FALSE; in cepInitialize()
322 cep->procState = PICOCEP_STEPSTATE_COLLECT; in cepInitialize()
324 cep->nNumFrames = 0; in cepInitialize()
329 cep->activeEndPos = PICOCEP_MAXWINLEN; in cepInitialize()
333 cep->pdflfz = picokpdf_getPdfMUL( in cepInitialize()
337 cep->pdfmgc = picokpdf_getPdfMUL( in cepInitialize()
346 cep->framehead.type = PICODATA_ITEM_FRAME_PAR; in cepInitialize()
347 cep->framehead.info1 = PICOCEP_OUT_DATA_FORMAT; in cepInitialize()
348 cep->framehead.info2 = cep->pdfmgc->ceporder; in cepInitialize()
349 cep->framehead.len = sizeof(picoos_uint16) + (cep->framehead.info2 + 4) in cepInitialize()
351 cep->scmeanpowLFZ = cep->pdflfz->bigpow - cep->pdflfz->meanpow; in cepInitialize()
352 cep->scmeanpowMGC = cep->pdfmgc->bigpow - cep->pdfmgc->meanpow; in cepInitialize()
354 cep->scmeanLFZ = (1 << (picoos_uint32) cep->scmeanpowLFZ); in cepInitialize()
356 cep->scmeanMGC = (1 << (picoos_uint32) cep->scmeanpowMGC); in cepInitialize()
360 initSmoothing(cep); in cepInitialize()
399 cep_subobj_t * cep = (cep_subobj_t *) this->subObj; in cepSubObjDeallocate() local
400 picoos_deallocate(this->common->mm, (void *) &cep->outXCep); in cepSubObjDeallocate()
401 picoos_deallocate(this->common->mm, (void *) &cep->outVoiced); in cepSubObjDeallocate()
402 picoos_deallocate(this->common->mm, (void *) &cep->outF0); in cepSubObjDeallocate()
426 cep_subobj_t * cep; in picocep_newCepUnit() local
440 cep = (cep_subobj_t *) this->subObj; in picocep_newCepUnit()
448 cep->outF0 = (picoos_int16 *) picoos_allocate(this->common->mm, in picocep_newCepUnit()
451 cep->outXCep = (picoos_int16 *) picoos_allocate(this->common->mm, in picocep_newCepUnit()
454 cep->outVoiced = (picoos_uint8 *) picoos_allocate(this->common->mm, in picocep_newCepUnit()
457 if ((NULL == cep->outF0) || (NULL == cep->outXCep) || (NULL in picocep_newCepUnit()
458 == cep->outVoiced)) { in picocep_newCepUnit()
459 picoos_deallocate(this->common->mm, (void *) &(cep->outF0)); in picocep_newCepUnit()
460 picoos_deallocate(this->common->mm, (void *) &(cep->outXCep)); in picocep_newCepUnit()
461 picoos_deallocate(this->common->mm, (void *) &(cep->outVoiced)); in picocep_newCepUnit()
462 picoos_deallocate(mm, (void*) &cep); in picocep_newCepUnit()
809 static void initSmoothing(cep_subobj_t * cep) in initSmoothing() argument
811 cep->xi[0] = 1; in initSmoothing()
812 cep->xi[1] = -1; in initSmoothing()
813 cep->xi[2] = 2; in initSmoothing()
814 cep->xi[3] = -4; in initSmoothing()
815 cep->xi[4] = 2; in initSmoothing()
816 cep->xsqi[0] = 1; in initSmoothing()
817 cep->xsqi[1] = 1; in initSmoothing()
818 cep->xsqi[2] = 4; in initSmoothing()
819 cep->xsqi[3] = 16; in initSmoothing()
820 cep->xsqi[4] = 4; in initSmoothing()
822 cep->x1[0] = -1; in initSmoothing()
823 cep->x1[1] = 2; in initSmoothing()
824 cep->xsq1[0] = 1; in initSmoothing()
825 cep->xsq1[1] = 4; in initSmoothing()
827 cep->x2[0] = -1; in initSmoothing()
828 cep->x2[1] = -4; in initSmoothing()
829 cep->x2[2] = 2; in initSmoothing()
830 cep->xsq2[0] = 1; in initSmoothing()
831 cep->xsq2[1] = 16; in initSmoothing()
832 cep->xsq2[2] = 4; in initSmoothing()
834 cep->xm[0] = 1; in initSmoothing()
835 cep->xm[1] = 2; in initSmoothing()
836 cep->xm[2] = -4; in initSmoothing()
837 cep->xsqm[0] = 1; in initSmoothing()
838 cep->xsqm[1] = 4; in initSmoothing()
839 cep->xsqm[2] = 16; in initSmoothing()
841 cep->xn[0] = 1; in initSmoothing()
842 cep->xn[1] = 2; in initSmoothing()
843 cep->xsqn[0] = 1; in initSmoothing()
844 cep->xsqn[1] = 4; in initSmoothing()
862 static void invMatrix(cep_subobj_t * cep, picoos_uint16 N, in invMatrix() argument
875 cep->invdiag0[0] = picocep_fixptInvDiagEle(cep->diag0[0], &rowscpow, in invMatrix()
877 cep->diag1[0] = picocep_fixptinv((cep->diag1[0]) << rowscpow, in invMatrix()
878 cep->invdiag0[0], bigpow, invpow, invDoubleDec); /* perform division via inverse */ in invMatrix()
879 cep->diag2[0] = picocep_fixptinv((cep->diag2[0]) << rowscpow, in invMatrix()
880 cep->invdiag0[0], bigpow, invpow, invDoubleDec); in invMatrix()
881 …cep->WUm[0] = (cep->WUm[0]) << rowscpow; /* if diag0 too low, multiply LHS and RHS of row in matri… in invMatrix()
884 cep->WUm[j] = cep->WUm[j] - picocep_fixptmult(cep->diag1[j - 1], in invMatrix()
885 cep->WUm[j - 1], bigpow, invDoubleDec); in invMatrix()
887 cep->WUm[j] = cep->WUm[j] - picocep_fixptmult(cep->diag2[j - 2], in invMatrix()
888 cep->WUm[j - 2], bigpow, invDoubleDec); in invMatrix()
892 v1 = picocep_fixptmult((cep->diag1[j - 1]) / (1 << rowscpow), in invMatrix()
893 …cep->diag0[j - 1], bigpow, invDoubleDec); /* undo scaling by 1<<rowscpow because diag1(j-1) refers… in invMatrix()
894 cep->diag0[j] = cep->diag0[j] - picocep_fixptmult(cep->diag1[j - 1], in invMatrix()
897 v2 = picocep_fixptmult((cep->diag2[j - 2]) / (1 << prevrowscpow), in invMatrix()
898 …cep->diag0[j - 2], bigpow, invDoubleDec); /* undo scaling by 1<<prevrowscpow because diag1(j-2) re… in invMatrix()
899 cep->diag0[j] = cep->diag0[j] - picocep_fixptmult( in invMatrix()
900 cep->diag2[j - 2], v2, bigpow, invDoubleDec); in invMatrix()
903 cep->invdiag0[j] = picocep_fixptInvDiagEle(cep->diag0[j], &rowscpow, in invMatrix()
905 cep->WUm[j] = (cep->WUm[j]) << rowscpow; in invMatrix()
907 h = picocep_fixptmult(cep->diag2[j - 1], v1, bigpow, invDoubleDec); in invMatrix()
908 cep->diag1[j] = picocep_fixptinv((cep->diag1[j] - h) << rowscpow, in invMatrix()
909 … cep->invdiag0[j], bigpow, invpow, invDoubleDec); /* eliminate column j below pivot */ in invMatrix()
912 cep->diag2[j] = picocep_fixptinv((cep->diag2[j]) << rowscpow, in invMatrix()
913 … cep->invdiag0[j], bigpow, invpow, invDoubleDec); /* eliminate column j below pivot */ in invMatrix()
919 cep->WUm[j] = picocep_fixptinv(cep->WUm[j], cep->invdiag0[j], bigpow, in invMatrix()
922 cep->WUm[j] = picocep_fixptdivpow(cep->WUm[j], bigpow); in invMatrix()
928 cep->WUm[j] = cep->WUm[j] - picocep_fixptmult(cep->diag1[j], cep->WUm[j in invMatrix()
931 cep->WUm[j] = cep->WUm[j] - picocep_fixptmult(cep->diag2[j], in invMatrix()
932 cep->WUm[j + 2], bigpow, invDoubleDec); in invMatrix()
939 smoothcep[k] = (picoos_int16)(cep->WUm[j]/(1<<meanpow)); in invMatrix()
959 static picoos_uint8 makeWUWandWUm(cep_subobj_t * cep, picokpdf_PdfMUL pdf, in makeWUWandWUm() argument
976 x = cep->xi; in makeWUWandWUm()
977 xsq = cep->xsqi; in makeWUWandWUm()
984 x = cep->x1; in makeWUWandWUm()
985 xsq = cep->xsq1; in makeWUWandWUm()
989 x = cep->x2; in makeWUWandWUm()
990 xsq = cep->xsq2; in makeWUWandWUm()
996 x = cep->xm; in makeWUWandWUm()
997 xsq = cep->xsqm; in makeWUWandWUm()
1003 x = cep->xn; in makeWUWandWUm()
1004 xsq = cep->xsqn; in makeWUWandWUm()
1011 cep->diag0[i] = prev_diag0; in makeWUWandWUm()
1012 cep->WUm[i] = prev_WUm; in makeWUWandWUm()
1017 … prev_diag0 = cep->diag0[i] = ivar << 2; /* multiply ivar by 4 (4 used to be first entry of xsq) */ in makeWUWandWUm()
1020 … prev_WUm = cep->WUm[i] = mean << 1; /* multiply mean by 2 (2 used to be first entry of x) */ in makeWUWandWUm()
1028 cep->diag0[i] += xsq[j] * ivar; in makeWUWandWUm()
1033 cep->WUm[i] += x[j] * mean; in makeWUWandWUm()
1042 cep->diag0[i] += xsq[numd + j] * ivar; in makeWUWandWUm()
1047 cep->WUm[i] += x[numd + j] * mean; in makeWUWandWUm()
1051 cep->diag0[i] = (cep->diag0[i] + 2) / 4; /* long DIV with rounding */ in makeWUWandWUm()
1052 cep->WUm[i] = (cep->WUm[i] + 1) / 2; /* long DIV with rounding */ in makeWUWandWUm()
1058 cep->diag1[i] = prev_diag1; in makeWUWandWUm()
1065 prev_diag1 = cep->diag1[i] = getFromPdf(pdf, vecstart, in makeWUWandWUm()
1074 cep->diag1[i] = 0; in makeWUWandWUm()
1078 cep->diag1[i] += prev_diag1_1; in makeWUWandWUm()
1088 cep->diag1[i] += prev_diag1_1; in makeWUWandWUm()
1092 cep->diag1[i] *= -2; in makeWUWandWUm()
1099 cep->diag2[i] = prev_diag2; in makeWUWandWUm()
1108 cep->diag2[i] = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR, in makeWUWandWUm()
1112 cep->diag2[i] -= (ivar + 2) / 4; in makeWUWandWUm()
1113 prev_diag2 = cep->diag2[i]; in makeWUWandWUm()
1382 static void treat_phone(cep_subobj_t * cep, picodata_itemhead_t * ihead) in treat_phone() argument
1397 pos = cep->inReadPos + PICODATA_ITEM_HEADSIZE + state * 6; in treat_phone()
1401 frames = get_pi_uint16(cep->inBuf, &pos); in treat_phone()
1407 bufferFull = cep->indexWritePos >= PICOCEP_MAXWINLEN; in treat_phone()
1414 indlfz = get_pi_uint16(cep->inBuf, &pos); /* lfz index */ in treat_phone()
1415 indlfz += -1 + cep->pdflfz->stateoffset[state]; /* transform index */ in treat_phone()
1416 indmgc = get_pi_uint16(cep->inBuf, &pos); /* mgc index */ in treat_phone()
1417 indmgc += -1 + cep->pdfmgc->stateoffset[state]; /* transform index */ in treat_phone()
1420 if ((cep->indexWritePos - frame) + frames > PICOCEP_MAXWINLEN) { in treat_phone()
1422 frames = PICOCEP_MAXWINLEN - (cep->indexWritePos - frame); in treat_phone()
1427 cep->indicesMGC[cep->indexWritePos] = indmgc; in treat_phone()
1428 cep->indicesLFZ[cep->indexWritePos] = indlfz; in treat_phone()
1429 cep->phoneId[cep->indexWritePos] = ihead->info1; in treat_phone()
1430 cep->indexWritePos++; in treat_phone()
1435 state, frames,cep->indexWritePos)); in treat_phone()
1439 frames = get_pi_uint16(cep->inBuf, &pos); in treat_phone()
1443 cep->inReadPos = cep->nextInPos; in treat_phone()
1445 PICODBG_DEBUG(("finished phone, advancing inReadPos to %i",cep->inReadPos)); in treat_phone()
1478 register cep_subobj_t * cep; in cepStep() local
1494 cep = (cep_subobj_t *) this->subObj; in cepStep()
1502 PICODBG_DEBUG(("doing pu state %i", cep->procState)); in cepStep()
1504 switch (cep->procState) { in cepStep()
1513 &(cep->inBuf[cep->inWritePos]), cep->inBufSize in cepStep()
1514 - cep->inWritePos, &blen); in cepStep()
1524 cep->inWritePos += blen; in cepStep()
1525 cep->procState = PICOCEP_STEPSTATE_PROCESS_PARSE; in cepStep()
1529 cep->inReadPos = cep->inWritePos = 0; in cepStep()
1539 … PICODBG_DEBUG(("getting info from inBuf in range: [%i,%i[", cep->inReadPos, cep->inWritePos)); in cepStep()
1540 if (cep->inWritePos <= cep->inReadPos) { in cepStep()
1545 cep->inReadPos = cep->inWritePos = 0; in cepStep()
1546 cep->procState = PICOCEP_STEPSTATE_COLLECT; in cepStep()
1551 if (!picodata_is_valid_item(cep->inBuf + cep->inReadPos, in cepStep()
1552 cep->inWritePos - cep->inReadPos)) { in cepStep()
1555 cep->inBuf + cep->inReadPos, cep->inWritePos in cepStep()
1556 …- cep->inReadPos, &ihead, &icontents);PICODBG_DEBUG(("PARSE bad item %s",picodata_head_to_string(&… in cepStep()
1561 sResult = picodata_get_iteminfo(cep->inBuf + cep->inReadPos, in cepStep()
1562 cep->inWritePos - cep->inReadPos, &ihead, &icontents); in cepStep()
1569 cep->inReadPos = cep->inWritePos = 0; in cepStep()
1570 cep->procState = PICOCEP_STEPSTATE_COLLECT; in cepStep()
1581 cep->nextInPos = PICODATA_ITEM_HEADSIZE + ihead.len; in cepStep()
1589 if (cep->inIgnoreState) { in cepStep()
1593 cep->inIgnoreState = 0; in cepStep()
1595 cep->inReadPos = cep->nextInPos; in cepStep()
1603 && (cep->indexWritePos > 0)) { in cepStep()
1605 cep->activeEndPos = cep->indexWritePos; in cepStep()
1606 cep->sentenceEnd = TRUE; in cepStep()
1608 …ODBG_DEBUG(("cep: PARSE found sentence terminator; setting activeEndPos to %i",cep->activeEndPos)); in cepStep()
1609 cep->procState = PICOCEP_STEPSTATE_PROCESS_SMOOTH; in cepStep()
1614 treat_phone(cep, &ihead); in cepStep()
1620 cep->inIgnoreState = 1; in cepStep()
1626 if (cep->indexWritePos <= 0) { in cepStep()
1629 picodata_copy_item(cep->inBuf + cep->inReadPos, in cepStep()
1630 cep->inWritePos - cep->inReadPos, in cepStep()
1631 cep->outBuf, cep->outBufSize, &blen); in cepStep()
1632 cep->outWritePos += blen; in cepStep()
1635 cep->outBuf, PICODATA_MAX_ITEMSIZE); in cepStep()
1637 cep->feedFollowState in cepStep()
1639 cep->procState = PICOCEP_STEPSTATE_FEED; in cepStep()
1640 } else if ((cep->headxWritePos < PICOCEP_MAXNR_HEADX) in cepStep()
1641 && (cep->cbufWritePos + ihead.len in cepStep()
1642 < cep->cbufBufSize)) { in cepStep()
1644 …type %c, length %i). Storing associated with index %i",ihead.type, ihead.len, cep->indexWritePos)); in cepStep()
1647 cep->inBuf + cep->inReadPos, in cepStep()
1648 cep->inWritePos - cep->inReadPos, in cepStep()
1649 &(cep->headx[cep->headxWritePos].head), in cepStep()
1650 &(cep->cbuf[cep->cbufWritePos]), in cepStep()
1651 cep->cbufBufSize in cepStep()
1652 - cep->cbufWritePos, &clen); in cepStep()
1661 cep->headx[cep->headxWritePos].frame in cepStep()
1662 = cep->indexWritePos; in cepStep()
1665 cep->headx[cep->headxWritePos].cind in cepStep()
1666 = cep->cbufWritePos; in cepStep()
1667 cep->cbufWritePos += clen; in cepStep()
1669 cep->headx[cep->headxWritePos].cind = 0; in cepStep()
1671 cep->headxWritePos++; in cepStep()
1674 …BG_DEBUG(("PARSE is forced to smooth prematurely; setting activeEndPos to %i", cep->activeEndPos)); in cepStep()
1675 cep->procState = PICOCEP_STEPSTATE_PROCESS_SMOOTH; in cepStep()
1681 cep->inReadPos = cep->nextInPos; in cepStep()
1696 N = cep->activeEndPos; /* numframes in current step */ in cepStep()
1704 cep->outXCepReadPos = cep->outXCepWritePos = 0; in cepStep()
1705 cep->outVoicedReadPos = cep->outVoicedWritePos = 0; in cepStep()
1706 cep->outF0ReadPos = cep->outF0WritePos = 0; in cepStep()
1711 pdf = cep->pdflfz; in cepStep()
1713 if (cep->activeEndPos <= 0) { in cepStep()
1716 makeWUWandWUm(cep, pdf, cep->indicesLFZ, 0, N, in cepStep()
1718 invMatrix(cep, N, cep->outF0 + cep->outF0WritePos, cepnum, pdf, in cepStep()
1721 getDirect(pdf, cep->indicesLFZ, cep->activeEndPos, in cepStep()
1722 cepnum, cep->outF0 + cep->outF0WritePos); in cepStep()
1725 cep->outF0WritePos += cep->activeEndPos * pdf->ceporder; in cepStep()
1728 pdf = cep->pdfmgc; in cepStep()
1730 if (cep->activeEndPos <= 0) { in cepStep()
1733 makeWUWandWUm(cep, pdf, cep->indicesMGC, 0, N, in cepStep()
1735 invMatrix(cep, N, cep->outXCep in cepStep()
1736 + cep->outXCepWritePos, cepnum, in cepStep()
1740 getDirect(pdf, cep->indicesMGC, cep->activeEndPos, in cepStep()
1741 cepnum, cep->outXCep + cep->outXCepWritePos); in cepStep()
1744 cep->outXCepWritePos += cep->activeEndPos * pdf->ceporder; in cepStep()
1746 getVoiced(pdf, cep->indicesMGC, cep->activeEndPos, cep->outVoiced in cepStep()
1747 + cep->outVoicedWritePos); in cepStep()
1748 cep->outVoicedWritePos += cep->activeEndPos; in cepStep()
1753 cep->indexReadPos = 0; in cepStep()
1754 cep->procState = PICOCEP_STEPSTATE_PROCESS_FRAME; in cepStep()
1765 if ((cep->headxBottom < cep->headxWritePos) in cepStep()
1766 && (cep->headx[cep->headxBottom].frame in cepStep()
1767 <= cep->indexReadPos)) { in cepStep()
1773 &(cep->headx[cep->headxBottom].head), in cepStep()
1774 &(cep->cbuf[cep->headx[cep->headxBottom].cind]), in cepStep()
1775 cep->headx[cep->headxBottom].head.len, cep->outBuf, in cepStep()
1776 cep->outBufSize, &blen); in cepStep()
1777 cep->outWritePos += blen; in cepStep()
1780 cep->headxBottom++; in cepStep()
1783 cep->feedFollowState = PICOCEP_STEPSTATE_PROCESS_FRAME; in cepStep()
1784 cep->procState = PICOCEP_STEPSTATE_FEED; in cepStep()
1788 if (cep->indexReadPos < cep->activeEndPos) { in cepStep()
1792 cep->nNumFrames++; in cepStep()
1795 cep->activeEndPos, cep->indexReadPos, cep->indexWritePos in cepStep()
1806 cep->outWritePos = cep->outReadPos = 0; in cepStep()
1807 cep->outBuf[cep->outWritePos++] = cep->framehead.type; in cepStep()
1808 cep->outBuf[cep->outWritePos++] = cep->framehead.info1; in cepStep()
1809 cep->outBuf[cep->outWritePos++] = cep->framehead.info2; in cepStep()
1810 cep->outBuf[cep->outWritePos++] = cep->framehead.len; in cepStep()
1812 PICODBG_DEBUG(("FRAME writing position after header: %i",cep->outWritePos)); in cepStep()
1820 …PICODBG_DEBUG(("FRAME reading phoneId[%i] = %c:",cep->indexReadPos, cep->phoneId[cep->indexReadPos… in cepStep()
1824 = (picoos_uint16) cep->phoneId[cep->indexReadPos]; in cepStep()
1827 (void *) &cep->outBuf[cep->outWritePos], in cepStep()
1830 cep->outWritePos += sizeof(tmpUint16); in cepStep()
1832 … PICODBG_DEBUG(("FRAME writing position after phone id: %i",cep->outWritePos)); in cepStep()
1834 for (i = 0; i < cep->pdflfz->ceporder; i++) { in cepStep()
1836 tmpUint16 = (cep->outVoiced[cep->outVoicedReadPos] in cepStep()
1837 & 0x01) ? cep->outF0[cep->outF0ReadPos] in cepStep()
1841 (void *) &cep->outBuf[cep->outWritePos], in cepStep()
1843 cep->outWritePos += sizeof(tmpUint16); in cepStep()
1846 = (picoos_uint16) (cep->outVoiced[cep->outVoicedReadPos]); in cepStep()
1848 (void *) &cep->outBuf[cep->outWritePos], in cepStep()
1850 cep->outWritePos += sizeof(tmpUint16); in cepStep()
1852 = (picoos_uint16) (cep->outF0[cep->outF0ReadPos]); in cepStep()
1854 (void *) &cep->outBuf[cep->outWritePos], in cepStep()
1856 cep->outWritePos += sizeof(tmpUint16); in cepStep()
1858 cep->outVoicedReadPos++; in cepStep()
1859 cep->outF0ReadPos++; in cepStep()
1862 PICODBG_DEBUG(("FRAME writing position after f0: %i",cep->outWritePos)); in cepStep()
1864 for (i = 0; i < cep->pdfmgc->ceporder; i++) { in cepStep()
1865 tmpInt16 = cep->outXCep[cep->outXCepReadPos++]; in cepStep()
1867 (void *) &cep->outBuf[cep->outWritePos], in cepStep()
1869 cep->outWritePos += sizeof(tmpInt16); in cepStep()
1872 … PICODBG_DEBUG(("FRAME writing position after cepstrals: %i",cep->outWritePos)); in cepStep()
1875 = (picoos_uint16) cep->indicesMGC[cep->indexReadPos++]; in cepStep()
1878 (void *) &cep->outBuf[cep->outWritePos], in cepStep()
1881 … PICODBG_DEBUG(("FRAME writing position after mgc index: %i",cep->outWritePos)); in cepStep()
1883 cep->outWritePos += sizeof(tmpUint16); in cepStep()
1887 cep->feedFollowState = PICOCEP_STEPSTATE_PROCESS_FRAME; in cepStep()
1888 cep->procState = PICOCEP_STEPSTATE_FEED; in cepStep()
1890 } else if (cep->sentenceEnd) { in cepStep()
1893 cep->nNumFrames)); in cepStep()
1894 … cep->nNumFrames = 0;PICODBG_DEBUG(("FRAME no more active frames for this sentence")); in cepStep()
1897 initSmoothing(cep); in cepStep()
1898 cep->sentenceEnd = FALSE; in cepStep()
1899 cep->indexReadPos = cep->indexWritePos = 0; in cepStep()
1900 cep->activeEndPos = PICOCEP_MAXWINLEN; in cepStep()
1901 cep->headxBottom = cep->headxWritePos = 0; in cepStep()
1902 cep->cbufWritePos = 0; in cepStep()
1903 cep->procState = PICOCEP_STEPSTATE_PROCESS_PARSE; in cepStep()
1907 cep->procState = PICOCEP_STEPSTATE_PROCESS_PARSE; in cepStep()
1922 sResult = picodata_cbPutItem(this->cbOut, cep->outBuf, in cepStep()
1923 cep->outBufSize, &blen); in cepStep()
1931 if (cep->outBuf[0] != 'k') { in cepStep()
1934 cep->outBuf, PICODATA_MAX_ITEMSIZE); in cepStep()
1941 if (cep->outReadPos >= cep->outWritePos) { in cepStep()
1942 cep->outReadPos = 0; in cepStep()
1943 cep->outWritePos = 0; in cepStep()
1945 cep->procState = cep->feedFollowState; in cepStep()
1946 PICODBG_DEBUG(("FEED ok, going back to procState %i", cep->procState)); in cepStep()
1950 cep->procState = cep->feedFollowState; in cepStep()