Lines Matching full:item
51 * <b> Pico Data : Item Format </b>\n
53 The item header is identical for all item types and PUs. Item types
56 Item Header structure\n
59 - 0x00 item type
60 - 0x01 item info 1
61 - 0x02 item info 2
62 - 0x03 item length in bytes (not including the header)
64 depending on the item type/info, a specific subheader may follow
68 /* item header fields (tmp.: use item functions below to acces header fields */
94 /* ** CharBuffer item functions, cf. below in items section ****/
100 /* item header size */
132 /* ------------------------- item types ---------------------------- */
133 /* new item types, info1, info2 to be defined during PU development */
159 /* ------------------------- PUNC item type ---------------------------- */
170 /* len for PUNC item is ALWAYS = 0 */
171 /* ------------------------- BOUND item type ---------------------------- */
176 #define PICODATA_ITEMINFO1_BOUND_PHR0 '\x30' /* 48 '0', no break, no item */
185 /* len for BOUND item is ALWAYS = 0 */
186 /* ------------------------- CMD item type ---------------------------- */
189 #define PICODATA_ITEMINFO1_CMD_PLAY 'p' /* 112 play command : PU in info 2 will read items from file-->Filename in item content.*/
190 #define PICODATA_ITEMINFO1_CMD_SAVE 's' /* 115 save command : PU in info 2 will save items to file-->Filename in item content.*/
192 #define PICODATA_ITEMINFO1_CMD_PROSDOMAIN 'd' /* 100 prosody domain : domain type in info 2, domain name in item content */
194 spell type/pause len as little endian uint16 in item content */
196 #define PICODATA_ITEMINFO1_CMD_PHONEME 'o' /* phoneme command : info 2 contains start/stop info, phonemes in item content */
199 silence duration as little endian uint16 in item content */
200 #define PICODATA_ITEMINFO1_CMD_CONTEXT 'c' /* context command : context name in item content */
201 #define PICODATA_ITEMINFO1_CMD_VOICE 'v' /* context command : voice name in item content */
202 #define PICODATA_ITEMINFO1_CMD_MARKER 'm' /* marker command : marker name in item content */
204 uint16 in item content; relative value is in promille */
206 uint16 in item content; elative value is in promille */
208 uint16 in item content; relative value is in promille */
210 uint16 in item content; relative value is in promille */
237 /* len for CMD item could be >= 0 */
238 /* ------------------------- TOKEN item type ---------------------------- */
250 /* len for WORDTOK item is ALWAYS > 0, if len==0 an error should be raised */
255 * ------------------------- WORDGRAPH item type ----------------------------
258 * - len for WORDGRAPH item is ALWAYS > 0, if len==0 an error should be raised
260 * \n------------------------- WORDINDEX item type ----------------------------
263 * - len for WORDINDEX item is ALWAYS > 0, if len==0 an error should be raised
264 * \n------------------------- WORDPHON item type ----------------------------
267 * -len WORDPHON item is ALWAYS > 0, if len==0 an error should be raised
268 * \n------------------------- SYLLPHON item type ----------------------------
271 * - len for SYLLPHON item is ALWAYS > 0, if len==0 an error should be raised
272 * \n------------------------- PHONE item type (PRODUCED BY PAM)-----------------
275 * - len for PHON item is ALWAYS > 0, if len==0 an error should be raised
276 * \n------------------------- FRAME_PAR item type (PRODUCED BY CEP) --------
279 * - len for FRAME_PAR item is ALWAYS > 0, if len==0 an error should be raised
280 * \n------------------------- FRAME item type (PRODUCED BY SIG) -----------
283 * - len for FRAME item is ALWAYS > 0, if len==0 an error should be raised
293 /* gets a single item (head and content) from a CharBuffer in buf;
296 PICO_OK <- one item gotten
297 PICO_EOF <- no item available, cb is empty
298 PICO_EXC_BUF_UNDERFLOW <- cb not empty, but no valid item
305 /* gets the speech data (without item head) from a CharBuffer in buf;
308 PICO_OK <- speech data of one item gotten
309 PICO_EOF <- no item available, cb is empty
310 PICO_EXC_BUF_UNDERFLOW <- cb not empty, but no valid item
317 /* puts a single item (head and content) to a CharBuffer; clenmax is
320 PICO_OK <- one item put
321 PICO_EXC_BUF_UNDERFLOW <- no valid item in buf
335 /* checks, whether item of type 'ch' is a valid item type */
338 item, values in head set and item content
343 PICO_EXC_BUF_UNDERFLOW <- blenmax problem, or no valid item
351 /* gets from buf a single item, values in head set and item content
356 PICO_EXC_BUF_UNDERFLOW <- blenmax problem, or no valid item
364 /* puts a single item to buf; values in head and content copied to
369 PICO_EXC_BUF_UNDERFLOW <- clenmax problem, or no valid item
376 /* gets from buf info of a single item, values in head are set and
381 PICO_EXC_BUF_UNDERFLOW <- blenmax problem, or no valid item
387 /* copies the item in inbuf to outbuf after first checking if there is
388 a valid item in inbuf; inlenmax and outlenmax are the max length
392 PICO_OK <- item copied
394 PICO_ERR_OTHER <- no valid item in inbuf
400 /* sets the info1 field in the header contained in the item in buf;
408 /* sets the info2 field in the header contained in the item in buf;
416 /* sets the len field in the header contained in the item in buf;
424 /* check item validity and return TRUE if valid; return FALSE if
425 invalid; ilenmax is the max index to be used in item
427 picoos_uint8 picodata_is_valid_item(const picoos_uint8 *item,
430 /* return TRUE if head is a valid item head, FALSE otherwise */
467 PICODATA_PUTYPE_SINK /* item sink unit*/
612 /* convert (pretty print) item head 'head' and put output in 'str',
618 'item' in 'str', strlenmax is the maximum length of 'str' in
622 const picoos_uint8 *item,
627 #define PICODATA_INFO_ITEM(kb, pref, item, itemlenmax) \
629 picodata_info_item(kb, pref, item, itemlenmax, (picoos_char *)__FILE__)
635 #define PICODATA_INFO_ITEM(kb, pref, item, itemlenmax)