Lines Matching refs:vrect
262 AVSubtitleRect vrect;
280 vrect = *h->rects[0];
295 vrect.x = xmin;
296 vrect.y = ymin;
297 vrect.w = xmax - xmin;
298 vrect.h = ymax - ymin;
299 if ((ret = av_image_check_size(vrect.w, vrect.h, 0, avctx)) < 0)
303 global_palette_hits[0] = vrect.w * vrect.h;
313 if (!(vrect_data = av_calloc(vrect.w, vrect.h)))
315 vrect.pict.data [0] = vrect_data;
316 vrect.pict.linesize[0] = vrect.w;
320 copy_rectangle(&vrect, h->rects[i], cmap);
340 if ((q - outbuf) + vrect.w * vrect.h / 2 + 17 + 21 > outbuf_size) {
345 dvd_encode_rle(&q, vrect.pict.data[0], vrect.w * 2,
346 vrect.w, (vrect.h + 1) >> 1, cmap);
348 dvd_encode_rle(&q, vrect.pict.data[0] + vrect.w, vrect.w * 2,
349 vrect.w, vrect.h >> 1, cmap);
351 if (dvdc->even_rows_fix && (vrect.h & 1)) {
353 vrect.h++;
373 x2 = vrect.x + vrect.w - 1;
374 y2 = vrect.y + vrect.h - 1;
378 *q++ = vrect.x >> 4;
379 *q++ = (vrect.x << 4) | ((x2 >> 8) & 0xf);
382 *q++ = vrect.y >> 4;
383 *q++ = (vrect.y << 4) | ((y2 >> 8) & 0xf);