Lines Matching defs:rect
55 AVSubtitleRect *rect;
104 sub->rects[0] = rect = av_mallocz(sizeof(*sub->rects[0]));
108 rect->x = x; rect->y = y;
109 rect->w = w; rect->h = h;
110 rect->type = SUBTITLE_BITMAP;
111 rect->linesize[0] = w;
112 rect->data[0] = av_malloc(w * h);
113 rect->nb_colors = 4;
114 rect->data[1] = av_mallocz(AVPALETTE_SIZE);
115 if (!rect->data[0] || !rect->data[1])
119 for (i = 0; i < rect->nb_colors; i++)
120 ((uint32_t*)rect->data[1])[i] = bytestream_get_be24(&buf);
124 for (i = 1; i < rect->nb_colors; i++)
125 ((uint32_t *)rect->data[1])[i] |= 0xff000000;
127 for (i = 0; i < rect->nb_colors; i++)
128 ((uint32_t *)rect->data[1])[i] |= (unsigned)*buf++ << 24;
134 bitmap = rect->data[0];
137 if (y == (h + 1) / 2) bitmap = rect->data[0] + w;