Lines Matching defs:this

5  * you may not use this file except in compliance with the License.
109 * this is the first round of alignment, only inserting/deleting/modifying bounds, according to
116 * this is the second round of alignment, treating non-BOUND items
244 static pico_status_t sphoReset(register picodata_ProcessingUnit this)
249 if (NULL == this || NULL == this->subObj) {
250 return picoos_emRaiseException(this->common->em,
253 spho = (spho_subobj_t *) this->subObj;
289 static pico_status_t sphoInitialize(register picodata_ProcessingUnit this, picoos_int32 resetMode)
299 if (NULL == this || NULL == this->subObj) {
300 return picoos_emRaiseException(this->common->em,
304 spho = (spho_subobj_t *) this->subObj;
311 fst = picokfst_getFST(this->voice->kbArray[myKbIds[i]]);
316 spho->fixedIds = picoktab_getFixedIds(this->voice->kbArray[PICOKNOW_KBID_FIXED_IDS]);
317 spho->phones = picoktab_getPhones(this->voice->kbArray[PICOKNOW_KBID_TAB_PHONES]);
326 return sphoReset(this);
330 static picodata_step_result_t sphoStep(register picodata_ProcessingUnit this,
336 static pico_status_t sphoTerminate(register picodata_ProcessingUnit this)
342 static pico_status_t sphoSubObjDeallocate(register picodata_ProcessingUnit this,
347 spho = (spho_subobj_t *) this->subObj;
349 if (NULL != this) {
350 if (NULL != this->subObj) {
351 spho = (spho_subobj_t *) (this->subObj);
353 picoos_deallocate(mm, (void *) &this->subObj);
365 picodata_ProcessingUnit this = picodata_newProcessingUnit(mm, common, cbIn, cbOut, voice);
366 if (this == NULL) {
370 this->initialize = sphoInitialize;
371 this->step = sphoStep;
372 this->terminate = sphoTerminate;
373 this->subDeallocate = sphoSubObjDeallocate;
375 this->subObj = picoos_allocate(mm, sizeof(spho_subobj_t));
376 if (this->subObj == NULL) {
377 picoos_deallocate(mm, (void **)(void*)&this);
380 spho = (spho_subobj_t *) this->subObj;
382 spho->common = this->common;
395 sphoInitialize(this, PICO_RESET_FULL);
396 return this;
496 spho = spho; /* avoid warning "var not used in this function"*/
523 static pico_status_t sphoExtractPhonemes(register picodata_ProcessingUnit this,
656 picoos_emRaiseException(this->common->em,rv,NULL,NULL);
867 /* the calculation is based on the fst-modified value (because this is what the customer wants to
922 static picodata_step_result_t sphoStep(register picodata_ProcessingUnit this,
950 if (NULL == this || NULL == this->subObj) {
953 spho = (spho_subobj_t *) this->subObj;
955 mode = mode; /* avoid warning "var not used in this function"*/
996 rv = picodata_cbGetItem(this->cbIn, spho->tmpbuf, PICODATA_MAX_ITEMSIZE, &blen);
1019 picoos_emRaiseException(this->common->em, rv,
1131 /* this should never happen */
1153 rv = sphoExtractPhonemes(this, spho, spho->headxReadPos,
1170 /* phoneme buffer cannot take this item anymore;
1181 return (picodata_step_result_t)picoos_emRaiseException(this->common->em,
1207 PICOTRNS_PRINTSYMSEQ(this->voice->kbArray[PICOKNOW_KBID_DBG], spho->phonBufOut, spho->phonWritePos);
1230 PICOTRNS_PRINTSYMSEQ(this->voice->kbArray[PICOKNOW_KBID_DBG], spho->phonBuf, spho->phonWritePos);
1244 PICOTRNS_PRINTSYMSEQ(this->voice->kbArray[PICOKNOW_KBID_DBG], spho->phonBufOut, spho->phonWritePos);
1250 picoos_emRaiseWarning(this->common->em, PICO_WARN_FALLBACK,NULL,(picoos_char *)"phon buffer full");
1326 return (picodata_step_result_t)picoos_emRaiseException(this->common->em,
1434 return (picodata_step_result_t)picoos_emRaiseException(this->common->em,
1455 this->common->em, PICO_ERR_OTHER, NULL,
1469 /* i expect a word boundary symbol in this range unless a phrase boundary was encountered before */
1478 return (picodata_step_result_t)picoos_emRaiseException(this->common->em,
1527 return (picodata_step_result_t)picoos_emRaiseException(this->common->em, PICO_ERR_OTHER, NULL, NULL);
1539 return (picodata_step_result_t)picoos_emRaiseException(this->common->em, PICO_ERR_OTHER, NULL, NULL);
1568 return (picodata_step_result_t)picoos_emRaiseException(this->common->em, PICO_WARN_INCOMPLETE, NULL, NULL);
1600 rv = picodata_cbPutItem(this->cbOut, spho->outBuf,
1603 PICODATA_INFO_ITEM(this->voice->kbArray[PICOKNOW_KBID_DBG],
1608 /* we have to redo this item */
1643 picoos_emRaiseException(this->common->em,PICO_ERR_OTHER,NULL,NULL);
1665 picoos_emRaiseException(this->common->em,PICO_ERR_OTHER,NULL,NULL);
1677 picoos_emRaiseException(this->common->em, PICO_ERR_OTHER, NULL, NULL);
1686 picoos_emRaiseException(this->common->em, PICO_ERR_OTHER, NULL, NULL);