Lines Matching defs:tsmb
113 int (*decode)(const uint8_t *tsmb, MovTextContext *m, uint64_t size);
242 static int decode_twrp(const uint8_t *tsmb, MovTextContext *m, uint64_t size)
245 m->w.wrap_flag = bytestream_get_byte(&tsmb);
249 static int decode_hlit(const uint8_t *tsmb, MovTextContext *m, uint64_t size)
252 m->h.hlit_start = bytestream_get_be16(&tsmb);
253 m->h.hlit_end = bytestream_get_be16(&tsmb);
257 static int decode_hclr(const uint8_t *tsmb, MovTextContext *m, uint64_t size)
260 bytestream_get_buffer(&tsmb, m->c.hlit_color, 4);
272 static int decode_styl(const uint8_t *tsmb, MovTextContext *m, uint64_t size)
275 int style_entries = bytestream_get_be16(&tsmb);
292 style->start = bytestream_get_be16(&tsmb);
293 style->end = bytestream_get_be16(&tsmb);
301 tsmb += 8;
307 mov_text_parse_style_record(style, &tsmb);
514 const uint8_t *tsmb = end;
517 while (tsmb_end - tsmb >= 8) {
518 uint64_t tsmb_size = bytestream_get_be32(&tsmb);
519 uint32_t tsmb_type = bytestream_get_be32(&tsmb);
523 if (tsmb_end - tsmb < 8)
525 tsmb_size = bytestream_get_be64(&tsmb);
537 if (tsmb_end - tsmb < tsmb_size)
544 ret_tsmb = box_types[i].decode(tsmb, m, tsmb_size);
549 tsmb += tsmb_size;