Lines Matching refs:sprite_id

200         uint16_t sprite_id;  in cdtoons_decode_frame()  local
205 sprite_id = bytestream_get_be16(&buf); in cdtoons_decode_frame()
206 if (sprite_id >= CDTOONS_MAX_SPRITES) { in cdtoons_decode_frame()
208 "Sprite ID %d is too high.\n", sprite_id); in cdtoons_decode_frame()
211 if (c->sprites[sprite_id].active) { in cdtoons_decode_frame()
213 "Sprite ID %d is a duplicate.\n", sprite_id); in cdtoons_decode_frame()
217 c->sprites[sprite_id].flags = bytestream_get_be16(&buf); in cdtoons_decode_frame()
225 c->sprites[sprite_id].size = size; in cdtoons_decode_frame()
226 c->sprites[sprite_id].owner_frame = frame_id; in cdtoons_decode_frame()
227 c->sprites[sprite_id].start_frame = bytestream_get_be16(&buf); in cdtoons_decode_frame()
228 c->sprites[sprite_id].end_frame = bytestream_get_be16(&buf); in cdtoons_decode_frame()
234 av_fast_padded_malloc(&c->sprites[sprite_id].data, &c->sprites[sprite_id].alloc_size, size); in cdtoons_decode_frame()
235 if (!c->sprites[sprite_id].data) in cdtoons_decode_frame()
238 c->sprites[sprite_id].active = 1; in cdtoons_decode_frame()
240 bytestream_get_buffer(&buf, c->sprites[sprite_id].data, size); in cdtoons_decode_frame()
305 uint16_t sprite_id, width, height; in cdtoons_decode_frame() local
313 sprite_id = bytestream_get_be16(&buf); in cdtoons_decode_frame()
319 if ((i == 0) && (sprite_id == 0)) { in cdtoons_decode_frame()
327 if (sprite_id >= CDTOONS_MAX_SPRITES) { in cdtoons_decode_frame()
329 "Sprite ID %d is too high.\n", sprite_id); in cdtoons_decode_frame()
333 block_data = c->sprites[sprite_id].data; in cdtoons_decode_frame()
334 if (!c->sprites[sprite_id].active) { in cdtoons_decode_frame()
336 av_log(avctx, AV_LOG_WARNING, "Sprite %d is missing.\n", sprite_id); in cdtoons_decode_frame()
339 if (c->sprites[sprite_id].size < 14) { in cdtoons_decode_frame()
340 av_log(avctx, AV_LOG_ERROR, "Sprite %d is too small.\n", sprite_id); in cdtoons_decode_frame()
348 c->sprites[sprite_id].size - 14, in cdtoons_decode_frame()