Lines Matching refs:rects
284 if (h->num_rects && !h->rects)
320 bytestream_put_be16(&q, h->rects[region_id]->x); /* left pos */
321 bytestream_put_be16(&q, h->rects[region_id]->y); /* top pos */
329 if (buf_size < 6 + h->rects[clut_id]->nb_colors * 6)
334 if (h->rects[clut_id]->nb_colors <= 4) {
337 } else if (h->rects[clut_id]->nb_colors <= 16) {
340 } else if (h->rects[clut_id]->nb_colors <= 256) {
357 for(i = 0; i < h->rects[clut_id]->nb_colors; i++) {
362 uint32_t x= ((uint32_t*)h->rects[clut_id]->data[1])[i];
376 buf_size -= 6 + h->rects[clut_id]->nb_colors * 6;
385 if (h->rects[region_id]->nb_colors <= 4) {
388 } else if (h->rects[region_id]->nb_colors <= 16) {
391 } else if (h->rects[region_id]->nb_colors <= 256) {
405 bytestream_put_be16(&q, h->rects[region_id]->w); /* region width */
406 bytestream_put_be16(&q, h->rects[region_id]->h); /* region height */
431 if (h->rects[object_id]->nb_colors <= 4) {
434 } else if (h->rects[object_id]->nb_colors <= 16) {
437 } else if (h->rects[object_id]->nb_colors <= 256) {
467 h->rects[object_id]->data[0],
468 h->rects[object_id]->w * 2,
469 h->rects[object_id]->w,
470 h->rects[object_id]->h >> 1);
476 h->rects[object_id]->data[0] + h->rects[object_id]->w,
477 h->rects[object_id]->w * 2,
478 h->rects[object_id]->w,
479 h->rects[object_id]->h >> 1);