Lines Matching refs:pict
323 av_freep(&sub_header->rects[i]->pict.data[0]);
324 av_freep(&sub_header->rects[i]->pict.data[1]);
335 sub_header->rects[0]->pict.data[0] = bitmap;
343 sub_header->rects[0]->pict.data[1] = av_malloc(256 * 4);
345 yuv_a_to_rgba(yuv_palette, alpha, (uint32_t*)sub_header->rects[0]->pict.data[1], 256);
347 sub_header->rects[0]->pict.data[1] = av_malloc(4 * 4);
349 guess_palette((uint32_t*)sub_header->rects[0]->pict.data[1],
356 sub_header->rects[0]->pict.linesize[0] = w;
368 av_freep(&sub_header->rects[i]->pict.data[0]);
369 av_freep(&sub_header->rects[i]->pict.data[1]);
402 if ((((uint32_t*)s->rects[0]->pict.data[1])[i] >> 24) == 0)
406 while (y1 < s->rects[0]->h && is_transp(s->rects[0]->pict.data[0] + y1 * s->rects[0]->pict.linesize[0],
410 av_freep(&s->rects[0]->pict.data[0]);
416 while (y2 > 0 && is_transp(s->rects[0]->pict.data[0] + y2 * s->rects[0]->pict.linesize[0], 1,
420 while (x1 < (s->rects[0]->w - 1) && is_transp(s->rects[0]->pict.data[0] + x1, s->rects[0]->pict.linesize[0],
424 while (x2 > 0 && is_transp(s->rects[0]->pict.data[0] + x2, s->rects[0]->pict.linesize[0], s->rects[0]->h,
433 memcpy(bitmap + w * y, s->rects[0]->pict.data[0] + x1 + (y1 + y) * s->rects[0]->pict.linesize[0], w);
435 av_freep(&s->rects[0]->pict.data[0]);
436 s->rects[0]->pict.data[0] = bitmap;
437 s->rects[0]->pict.linesize[0] = w;
498 ppm_save("/tmp/a.ppm", sub->rects[0]->pict.data[0],
499 sub->rects[0]->w, sub->rects[0]->h, sub->rects[0]->pict.data[1]);