Lines Matching refs:sprite_id

193         uint16_t sprite_id;  in cdtoons_decode_frame()  local
198 sprite_id = bytestream_get_be16(&buf); in cdtoons_decode_frame()
199 if (sprite_id >= CDTOONS_MAX_SPRITES) { in cdtoons_decode_frame()
201 "Sprite ID %d is too high.\n", sprite_id); in cdtoons_decode_frame()
204 if (c->sprites[sprite_id].active) { in cdtoons_decode_frame()
206 "Sprite ID %d is a duplicate.\n", sprite_id); in cdtoons_decode_frame()
210 c->sprites[sprite_id].flags = bytestream_get_be16(&buf); in cdtoons_decode_frame()
218 c->sprites[sprite_id].size = size; in cdtoons_decode_frame()
219 c->sprites[sprite_id].owner_frame = frame_id; in cdtoons_decode_frame()
220 c->sprites[sprite_id].start_frame = bytestream_get_be16(&buf); in cdtoons_decode_frame()
221 c->sprites[sprite_id].end_frame = bytestream_get_be16(&buf); in cdtoons_decode_frame()
227 av_fast_padded_malloc(&c->sprites[sprite_id].data, &c->sprites[sprite_id].alloc_size, size); in cdtoons_decode_frame()
228 if (!c->sprites[sprite_id].data) in cdtoons_decode_frame()
231 c->sprites[sprite_id].active = 1; in cdtoons_decode_frame()
233 bytestream_get_buffer(&buf, c->sprites[sprite_id].data, size); in cdtoons_decode_frame()
298 uint16_t sprite_id, width, height; in cdtoons_decode_frame() local
306 sprite_id = bytestream_get_be16(&buf); in cdtoons_decode_frame()
312 if ((i == 0) && (sprite_id == 0)) { in cdtoons_decode_frame()
320 if (sprite_id >= CDTOONS_MAX_SPRITES) { in cdtoons_decode_frame()
322 "Sprite ID %d is too high.\n", sprite_id); in cdtoons_decode_frame()
326 block_data = c->sprites[sprite_id].data; in cdtoons_decode_frame()
327 if (!c->sprites[sprite_id].active) { in cdtoons_decode_frame()
329 av_log(avctx, AV_LOG_WARNING, "Sprite %d is missing.\n", sprite_id); in cdtoons_decode_frame()
332 if (c->sprites[sprite_id].size < 14) { in cdtoons_decode_frame()
333 av_log(avctx, AV_LOG_ERROR, "Sprite %d is too small.\n", sprite_id); in cdtoons_decode_frame()
341 c->sprites[sprite_id].size - 14, in cdtoons_decode_frame()