Lines Matching refs:rects
257 int i, rects = h->num_rects, ret;
267 if (rects == 0 || h->rects == NULL)
269 for (i = 0; i < rects; i++)
270 if (h->rects[i]->type != SUBTITLE_BITMAP) {
275 for (i = 0; i < rects; i++)
276 if ((h->rects[i]->flags & AV_SUBTITLE_FLAG_FORCED) != 0) {
280 vrect = *h->rects[0];
282 if (rects > 1) {
287 int xmin = h->rects[0]->x, xmax = xmin + h->rects[0]->w;
288 int ymin = h->rects[0]->y, ymax = ymin + h->rects[0]->h;
289 for (i = 1; i < rects; i++) {
290 xmin = FFMIN(xmin, h->rects[i]->x);
291 ymin = FFMIN(ymin, h->rects[i]->y);
292 xmax = FFMAX(xmax, h->rects[i]->x + h->rects[i]->w);
293 ymax = FFMAX(ymax, h->rects[i]->y + h->rects[i]->h);
304 for (i = 0; i < rects; i++)
305 global_palette_hits[0] -= h->rects[i]->w * h->rects[i]->h;
308 for (i = 0; i < rects; i++)
309 count_colors(avctx, global_palette_hits, h->rects[i]);
312 if (rects > 1) {
317 for (i = 0; i < rects; i++) {
318 build_color_map(avctx, cmap, (uint32_t *)h->rects[i]->pict.data[1],
320 copy_rectangle(&vrect, h->rects[i], cmap);
325 build_color_map(avctx, cmap, (uint32_t *)h->rects[0]->pict.data[1],