• Home
  • Raw
  • Download

Lines Matching refs:rects

99     sub->rects =  av_mallocz(sizeof(*sub->rects));  in decode_frame()
100 if (!sub->rects) in decode_frame()
103 sub->rects[0] = av_mallocz(sizeof(*sub->rects[0])); in decode_frame()
104 if (!sub->rects[0]) { in decode_frame()
105 av_freep(&sub->rects); in decode_frame()
108 sub->rects[0]->x = x; sub->rects[0]->y = y; in decode_frame()
109 sub->rects[0]->w = w; sub->rects[0]->h = h; in decode_frame()
110 sub->rects[0]->type = SUBTITLE_BITMAP; in decode_frame()
111 sub->rects[0]->linesize[0] = w; in decode_frame()
112 sub->rects[0]->data[0] = av_malloc(w * h); in decode_frame()
113 sub->rects[0]->nb_colors = 4; in decode_frame()
114 sub->rects[0]->data[1] = av_mallocz(AVPALETTE_SIZE); in decode_frame()
115 if (!sub->rects[0]->data[0] || !sub->rects[0]->data[1]) { in decode_frame()
116 av_freep(&sub->rects[0]->data[1]); in decode_frame()
117 av_freep(&sub->rects[0]->data[0]); in decode_frame()
118 av_freep(&sub->rects[0]); in decode_frame()
119 av_freep(&sub->rects); in decode_frame()
125 for (i = 0; i < sub->rects[0]->nb_colors; i++) in decode_frame()
126 ((uint32_t*)sub->rects[0]->data[1])[i] = bytestream_get_be24(&buf); in decode_frame()
130 for (i = 1; i < sub->rects[0]->nb_colors; i++) in decode_frame()
131 ((uint32_t *)sub->rects[0]->data[1])[i] |= 0xff000000; in decode_frame()
133 for (i = 0; i < sub->rects[0]->nb_colors; i++) in decode_frame()
134 ((uint32_t *)sub->rects[0]->data[1])[i] |= (unsigned)*buf++ << 24; in decode_frame()
142 rect = sub->rects[0]; in decode_frame()
154 bitmap = sub->rects[0]->data[0]; in decode_frame()
157 if (y == (h + 1) / 2) bitmap = sub->rects[0]->data[0] + w; in decode_frame()