• Home
  • Raw
  • Download

Lines Matching refs:rects

258     int i, rects = h->num_rects, ret;  in encode_dvd_subtitles()  local
268 if (rects == 0 || !h->rects) in encode_dvd_subtitles()
270 for (i = 0; i < rects; i++) in encode_dvd_subtitles()
271 if (h->rects[i]->type != SUBTITLE_BITMAP) { in encode_dvd_subtitles()
276 for (i = 0; i < rects; i++) in encode_dvd_subtitles()
277 if ((h->rects[i]->flags & AV_SUBTITLE_FLAG_FORCED) != 0) { in encode_dvd_subtitles()
284 for (i = 0; i < rects; i++) in encode_dvd_subtitles()
285 if (!h->rects[i]->data[0]) { in encode_dvd_subtitles()
286 AVSubtitleRect *rect = h->rects[i]; in encode_dvd_subtitles()
296 vrect = *h->rects[0]; in encode_dvd_subtitles()
298 if (rects > 1) { in encode_dvd_subtitles()
303 int xmin = h->rects[0]->x, xmax = xmin + h->rects[0]->w; in encode_dvd_subtitles()
304 int ymin = h->rects[0]->y, ymax = ymin + h->rects[0]->h; in encode_dvd_subtitles()
305 for (i = 1; i < rects; i++) { in encode_dvd_subtitles()
306 xmin = FFMIN(xmin, h->rects[i]->x); in encode_dvd_subtitles()
307 ymin = FFMIN(ymin, h->rects[i]->y); in encode_dvd_subtitles()
308 xmax = FFMAX(xmax, h->rects[i]->x + h->rects[i]->w); in encode_dvd_subtitles()
309 ymax = FFMAX(ymax, h->rects[i]->y + h->rects[i]->h); in encode_dvd_subtitles()
320 for (i = 0; i < rects; i++) in encode_dvd_subtitles()
321 global_palette_hits[0] -= h->rects[i]->w * h->rects[i]->h; in encode_dvd_subtitles()
324 for (i = 0; i < rects; i++) in encode_dvd_subtitles()
325 count_colors(avctx, global_palette_hits, h->rects[i]); in encode_dvd_subtitles()
328 if (rects > 1) { in encode_dvd_subtitles()
333 for (i = 0; i < rects; i++) { in encode_dvd_subtitles()
334 build_color_map(avctx, cmap, (uint32_t *)h->rects[i]->data[1], in encode_dvd_subtitles()
336 copy_rectangle(&vrect, h->rects[i], cmap); in encode_dvd_subtitles()
341 build_color_map(avctx, cmap, (uint32_t *)h->rects[0]->data[1], in encode_dvd_subtitles()