Lines Matching refs:rects
99 sub->rects[0]->pict.data[0] = av_malloc(sub->rects[0]->w * sub->rects[0]->h);
101 if (!sub->rects[0]->pict.data[0])
107 while (buf < rle_bitmap_end && line_count < sub->rects[0]->h) {
122 if (run > 0 && pixel_count + run <= sub->rects[0]->w * sub->rects[0]->h) {
123 memset(sub->rects[0]->pict.data[0] + pixel_count, color, run);
130 if (pixel_count % sub->rects[0]->w > 0)
132 pixel_count % sub->rects[0]->w, sub->rects[0]->w);
137 if (pixel_count < sub->rects[0]->w * sub->rects[0]->h) {
142 av_dlog(avctx, "Pixel Count = %d, Area = %d\n", pixel_count, sub->rects[0]->w * sub->rects[0]->h);
367 sub->rects = av_mallocz(sizeof(*sub->rects));
368 sub->rects[0] = av_mallocz(sizeof(*sub->rects[0]));
371 sub->rects[0]->x = ctx->presentation.x;
372 sub->rects[0]->y = ctx->presentation.y;
373 sub->rects[0]->w = ctx->picture.w;
374 sub->rects[0]->h = ctx->picture.h;
375 sub->rects[0]->type = SUBTITLE_BITMAP;
378 sub->rects[0]->pict.linesize[0] = ctx->picture.w;
388 sub->rects[0]->nb_colors = 256;
389 sub->rects[0]->pict.data[1] = av_mallocz(AVPALETTE_SIZE);
391 memcpy(sub->rects[0]->pict.data[1], ctx->clut, sub->rects[0]->nb_colors * sizeof(uint32_t));