Lines Matching refs:rects
259 int i, rects = h->num_rects, ret;
269 if (rects == 0 || !h->rects)
271 for (i = 0; i < rects; i++)
272 if (h->rects[i]->type != SUBTITLE_BITMAP) {
277 for (i = 0; i < rects; i++)
278 if ((h->rects[i]->flags & AV_SUBTITLE_FLAG_FORCED) != 0) {
283 vrect = *h->rects[0];
285 if (rects > 1) {
290 int xmin = h->rects[0]->x, xmax = xmin + h->rects[0]->w;
291 int ymin = h->rects[0]->y, ymax = ymin + h->rects[0]->h;
292 for (i = 1; i < rects; i++) {
293 xmin = FFMIN(xmin, h->rects[i]->x);
294 ymin = FFMIN(ymin, h->rects[i]->y);
295 xmax = FFMAX(xmax, h->rects[i]->x + h->rects[i]->w);
296 ymax = FFMAX(ymax, h->rects[i]->y + h->rects[i]->h);
307 for (i = 0; i < rects; i++)
308 global_palette_hits[0] -= h->rects[i]->w * h->rects[i]->h;
311 for (i = 0; i < rects; i++)
312 count_colors(avctx, global_palette_hits, h->rects[i]);
315 if (rects > 1) {
320 for (i = 0; i < rects; i++) {
321 build_color_map(avctx, cmap, (uint32_t *)h->rects[i]->data[1],
323 copy_rectangle(&vrect, h->rects[i], cmap);
328 build_color_map(avctx, cmap, (uint32_t *)h->rects[0]->data[1],