• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavfilter/

Lines Matching refs:drawbox

42     DrawBoxContext *drawbox= ctx->priv;
46 drawbox->x = drawbox->y = drawbox->w = drawbox->h = 0;
50 &drawbox->x, &drawbox->y, &drawbox->w, &drawbox->h, color_str);
55 drawbox->yuv_color[Y] = RGB_TO_Y_CCIR(rgba_color[0], rgba_color[1], rgba_color[2]);
56 drawbox->yuv_color[U] = RGB_TO_U_CCIR(rgba_color[0], rgba_color[1], rgba_color[2], 0);
57 drawbox->yuv_color[V] = RGB_TO_V_CCIR(rgba_color[0], rgba_color[1], rgba_color[2], 0);
58 drawbox->yuv_color[A] = rgba_color[3];
79 DrawBoxContext *drawbox = inlink->dst->priv;
81 drawbox->hsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_w;
82 drawbox->vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h;
84 if (drawbox->w == 0) drawbox->w = inlink->w;
85 if (drawbox->h == 0) drawbox->h = inlink->h;
88 drawbox->w, drawbox->y, drawbox->w, drawbox->h,
89 drawbox->yuv_color[Y], drawbox->yuv_color[U], drawbox->yuv_color[V], drawbox->yuv_color[A]);
96 DrawBoxContext *drawbox = inlink->dst->priv;
97 int plane, x, y, xb = drawbox->x, yb = drawbox->y;
101 for (y = FFMAX(yb, y0); y < (y0 + h) && y < (yb + drawbox->h); y++) {
106 picref->linesize[plane] * (y >> drawbox->vsub);
108 for (x = FFMAX(xb, 0); x < (xb + drawbox->w) && x < picref->video->w; x++) {
109 double alpha = (double)drawbox->yuv_color[A] / 255;
111 if ((y - yb < 3) || (yb + drawbox->h - y < 4) ||
112 (x - xb < 3) || (xb + drawbox->w - x < 4)) {
113 row[0][x ] = (1 - alpha) * row[0][x ] + alpha * drawbox->yuv_color[Y];
114 row[1][x >> drawbox->hsub] = (1 - alpha) * row[1][x >> drawbox->hsub] + alpha * drawbox->yuv_color[U];
115 row[2][x >> drawbox->hsub] = (1 - alpha) * row[2][x >> drawbox->hsub] + alpha * drawbox->yuv_color[V];
124 .name = "drawbox",