Lines Matching refs:rects
95 int i, imax, color, alpha, rects = h->num_rects;
100 if (rects == 0 || h->rects == NULL)
102 if (rects > 20)
103 rects = 20;
110 for (object_id = 0; object_id < rects; object_id++)
111 for (i=0; i<h->rects[object_id]->w*h->rects[object_id]->h; ++i) {
112 color = h->rects[object_id]->pict.data[0][i];
114 alpha = ((uint32_t*)h->rects[object_id]->pict.data[1])[color] >> 24;
138 for (object_id = 0; object_id < rects; object_id++) {
141 if ((q - outbuf) + h->rects[object_id]->w*h->rects[object_id]->h/2
142 + 17*rects + 21 > outbuf_size) {
146 dvd_encode_rle(&q, h->rects[object_id]->pict.data[0],
147 h->rects[object_id]->w*2,
148 h->rects[object_id]->w, h->rects[object_id]->h >> 1,
151 dvd_encode_rle(&q, h->rects[object_id]->pict.data[0] + h->rects[object_id]->w,
152 h->rects[object_id]->w*2,
153 h->rects[object_id]->w, h->rects[object_id]->h >> 1,
163 bytestream_put_be16(&q, (q - outbuf) /*- 2 */ + 8 + 12*rects + 2);
172 for (object_id = 0; object_id < rects; object_id++) {
173 int x2 = h->rects[object_id]->x + h->rects[object_id]->w - 1;
174 int y2 = h->rects[object_id]->y + h->rects[object_id]->h - 1;
178 *q++ = h->rects[object_id]->x >> 4;
179 *q++ = (h->rects[object_id]->x << 4) | ((x2 >> 8) & 0xf);
182 *q++ = h->rects[object_id]->y >> 4;
183 *q++ = (h->rects[object_id]->y << 4) | ((y2 >> 8) & 0xf);