Lines Matching refs:object_id
93 int object_id;
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++) {
139 offset1[object_id] = q - outbuf;
141 if ((q - outbuf) + h->rects[object_id]->w*h->rects[object_id]->h/2
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,
150 offset2[object_id] = q - outbuf;
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,
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);
188 bytestream_put_be16(&q, offset1[object_id]);
189 bytestream_put_be16(&q, offset2[object_id]);