Lines Matching defs:pdf
246 static picoos_int32 getFromPdf(picokpdf_PdfMUL pdf, picoos_uint32 vecstart,
252 picokpdf_PdfMUL pdf, picoos_uint8 invpow, picoos_uint8 invDoubleDec);
254 static picoos_uint8 makeWUWandWUm(cep_subobj_t * cep, picokpdf_PdfMUL pdf,
258 static void getDirect(picokpdf_PdfMUL pdf, picoos_uint16 *indices,
262 static void getVoiced(picokpdf_PdfMUL pdf, picoos_uint16 *indices,
853 * @param pdf : pdf resource
864 picokpdf_PdfMUL pdf, picoos_uint8 invpow, picoos_uint8 invDoubleDec)
869 picoos_uint8 ceporder = pdf->ceporder;
870 picoos_uint8 bigpow = pdf->bigpow;
871 picoos_uint8 meanpow = pdf->meanpow;
948 * @param pdf : pointer to picoos_uint8, sequence of pdf vectors, each vector of length 1+ceporder*2+numdeltas*3+ceporder*3
949 * @param indices : indices of pdf vectors for all frames in current sentence
959 static picoos_uint8 makeWUWandWUm(cep_subobj_t * cep, picokpdf_PdfMUL pdf,
969 picoos_uint8 vecsize = pdf->vecsize;
1015 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR,
1018 mean = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTMEAN,
1026 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR,
1030 mean = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTMEAN,
1040 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR,
1044 mean = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTMEAN,
1062 diag1[i] = getFromPdf(pdf, vecstart, numvuv, ceporder, numdeltas, cepnum,
1065 prev_diag1 = cep->diag1[i] = getFromPdf(pdf, vecstart,
1069 k = vecstart +pdf->numvuv+pdf->ceporder*2 + pdf->numdeltas*3 +
1070 pdf->ceporder*2 +cepnum;
1071 cep->diag1[i] = (picoos_int32)(pdf->content[k]) << pdf->bigpow;
1082 k = vecstart + pdf->numvuv + pdf->ceporder * 2 + pdf->numdeltas * 3 + pdf->ceporder * 2 + cepnum;
1083 cep->diag1[i] += (picoos_int32)(pdf->content[k]) << pdf->bigpow; */
1086 prev_diag1_1 = getFromPdf(pdf, vecstart, cepnum,
1103 k = vecstart + pdf->numvuv + pdf->ceporder * 2 + pdf->numdeltas * 3 + pdf->ceporder * 2 + cepnum;
1104 cep->diag2[i] = (picoos_int32)(pdf->content[k]) << pdf->bigpow;
1105 k -= pdf->ceporder;
1106 ivar = (picoos_int32)(pdf->content[k]) << pdf->bigpow;
1108 cep->diag2[i] = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR,
1110 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR,
1122 * @param pdf : pointer to picoos_uint8, sequence of pdf vectors, each vector of length 1+ceporder*2+numdeltas*3+ceporder*3
1123 * @param vecstart : indices of pdf vectors for all frames in current sentence
1131 static picoos_int32 getFromPdf(picokpdf_PdfMUL pdf, picoos_uint32 vecstart,
1141 if (pdf->numdeltas == 0xFF) {
1146 p = pdf->content
1147 + (vecstart + pdf->numvuv + cepnum * 2); /* cepnum'th static mean */
1149 | *p) << (pdf->meanpowUm[cepnum]);
1152 cc = pdf->ceporder + cepnum;
1153 p = pdf->content + (vecstart + pdf->numvuv + cc * 2); /* cepnum'th delta mean */
1155 | *p) << (pdf->meanpowUm[cc]);
1158 cc = pdf->ceporder * 2 + cepnum;
1159 p = pdf->content + (vecstart + pdf->numvuv + cc * 2); /* cepnum'th delta delta mean */
1161 | *p) << (pdf->meanpowUm[cc]);
1172 k = vecstart + pdf->numvuv + pdf->ceporder * 6 + cepnum; /* cepnum'th static ivar */
1173 ivar = (picoos_int32) (pdf->content[k])
1174 << (pdf->ivarpow[cepnum]);
1177 ceporder = pdf->ceporder;
1178 k = vecstart + pdf->numvuv + ceporder * 7 + cepnum; /* cepnum'th delta ivar */
1179 ivar = (picoos_int32) (pdf->content[k])
1180 << (pdf->ivarpow[ceporder + cepnum]);
1183 ceporder = pdf->ceporder;
1184 k = vecstart + pdf->numvuv + ceporder * 8 + cepnum; /* cepnum'th delta delta ivar */
1185 ivar = (picoos_int32) (pdf->content[k])
1186 << (pdf->ivarpow[2 * ceporder + cepnum]);
1204 p = pdf->content
1205 + (vecstart + pdf->numvuv + cepnum * 2); /* cepnum'th static mean */
1207 | *p) << (pdf->meanpowUm[cepnum]);
1211 ceporder = pdf->ceporder;
1214 while ((s < pdf->numdeltas) && (ind < cepnum || (ind
1216 k = vecstart + pdf->numvuv + ceporder * 2 + s; /* s'th delta index */
1217 ind = (picoos_uint8) (pdf->content[k]); /* is already picoos_uint8 but just to make explicit */
1219 k = vecstart + pdf->numvuv + ceporder * 2
1220 + pdf->numdeltas + s * 2; /* s'th sparse delta mean, corresponds to cepnum'th delta mean */
1222 = ((picoos_int32) ((picoos_int16) ((pdf->content[k
1223 + 1]) << 8)) | pdf->content[k])
1224 << (pdf->meanpowUm[ceporder
1233 ceporder = pdf->ceporder;
1235 s = pdf->numdeltas;
1238 k = vecstart + pdf->numvuv + ceporder2 + s; /* s'th delta index */
1239 ind = (picoos_uint8) (pdf->content[k]); /* is already picoos_uint8 but just to make explicit */
1241 k = vecstart + pdf->numvuv + ceporder2
1242 + pdf->numdeltas + s * 2; /* s'th sparse delta mean, corresponds to cepnum'th delta delta mean */
1244 = ((picoos_int32) ((picoos_int16) ((pdf->content[k
1245 + 1]) << 8)) | pdf->content[k])
1246 << (pdf->meanpowUm[ceporder2
1261 k = vecstart + pdf->numvuv + pdf->ceporder * 2
1262 + pdf->numdeltas * 3 + cepnum; /* cepnum'th static ivar */
1263 ivar = (picoos_int32) (pdf->content[k])
1264 << (pdf->ivarpow[cepnum]);
1267 ceporder = pdf->ceporder;
1268 k = vecstart + pdf->numvuv + ceporder * 3
1269 + pdf->numdeltas * 3 + cepnum; /* cepnum'th delta ivar */
1270 ivar = (picoos_int32) (pdf->content[k])
1271 << (pdf->ivarpow[ceporder + cepnum]);
1274 ceporder2 = 2 * pdf->ceporder;
1275 k = vecstart + pdf->numvuv + ceporder2 + pdf->numdeltas
1277 ivar = (picoos_int32) (pdf->content[k])
1278 << (pdf->ivarpow[ceporder2 + cepnum]);
1295 * @param pdf : pointer to picoos_uint8, sequence of pdf vectors, each vector of length 1+ceporder*2+numdeltas*3+ceporder*3
1296 * @param indices : indices of pdf vectors for all frames in current sentence
1304 static void getDirect(picokpdf_PdfMUL pdf, picoos_uint16 *indices,
1313 picoos_uint8 vecsize = pdf->vecsize;
1314 picoos_uint8 order = pdf->ceporder;
1323 mean = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTMEAN,
1325 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR,
1327 prev_mean = mean = picocep_fixptdiv(mean, ivar, pdf->bigpow);
1329 smoothcep[j] = (picoos_int16)(mean/(1<<pdf->meanpow));
1336 * @param pdf : pointer to picoos_uint8, sequence of pdf vectors, each vector of length 1+ceporder*2+numdeltas*3+ceporder*3
1337 * @param indices : indices of pdf vectors for all frames in current sentence
1343 static void getVoiced(picokpdf_PdfMUL pdf, picoos_uint16 *indices,
1349 picoos_uint8 vecsize = pdf->vecsize;
1351 if (pdf->numvuv == 0) {
1356 smoothcep[j] = pdf->content[vecstart]; /* odd value is voiced, even if unvoiced */
1690 picokpdf_PdfMUL pdf;
1701 /* still to be experimented if higher order coeff can remain unsmoothed, i.e. simple copy from pdf */
1711 pdf = cep->pdflfz;
1712 for (cepnum = 0; cepnum < pdf->ceporder; cepnum++) {
1716 makeWUWandWUm(cep, pdf, cep->indicesLFZ, 0, N,
1718 invMatrix(cep, N, cep->outF0 + cep->outF0WritePos, cepnum, pdf,
1721 getDirect(pdf, cep->indicesLFZ, cep->activeEndPos,
1725 cep->outF0WritePos += cep->activeEndPos * pdf->ceporder;
1728 pdf = cep->pdfmgc;
1729 for (cepnum = 0; cepnum < pdf->ceporder; cepnum++) {
1733 makeWUWandWUm(cep, pdf, cep->indicesMGC, 0, N,
1737 pdf, PICOCEP_MGCINVPOW,
1740 getDirect(pdf, cep->indicesMGC, cep->activeEndPos,
1744 cep->outXCepWritePos += cep->activeEndPos * pdf->ceporder;
1746 getVoiced(pdf, cep->indicesMGC, cep->activeEndPos, cep->outVoiced
1801 * scmeanpow = pdf->bigpow - pdf->meanpow;