Home
last modified time | relevance | path

Searched refs:yuv_color (Results 1 – 3 of 3) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvf_drawbox.c87 unsigned char yuv_color[4]; member
129 row[0][x ] = ctx->yuv_color[Y]; in draw_region()
130 row[1][x >> ctx->hsub] = ctx->yuv_color[U]; in draw_region()
131 row[2][x >> ctx->hsub] = ctx->yuv_color[V]; in draw_region()
132 row[3][x ] = ctx->yuv_color[A]; in draw_region()
146 double alpha = (double)ctx->yuv_color[A] / 255; in draw_region()
149 … row[0][x ] = (1 - alpha) * row[0][x ] + alpha * ctx->yuv_color[Y]; in draw_region()
150 … row[1][x >> ctx->hsub] = (1 - alpha) * row[1][x >> ctx->hsub] + alpha * ctx->yuv_color[U]; in draw_region()
151 … row[2][x >> ctx->hsub] = (1 - alpha) * row[2][x >> ctx->hsub] + alpha * ctx->yuv_color[V]; in draw_region()
249 s->yuv_color[Y] = RGB_TO_Y_CCIR(s->rgba_color[0], s->rgba_color[1], s->rgba_color[2]); in init()
[all …]
Dvf_signalstats.c49 int yuv_color[3]; member
100 s->yuv_color[0] = (( 66*r + 129*g + 25*b + (1<<7)) >> 8) + 16; in init()
101 s->yuv_color[1] = ((-38*r + -74*g + 112*b + (1<<7)) >> 8) + 128; in init()
102 s->yuv_color[2] = ((112*r + -94*g + -18*b + (1<<7)) >> 8) + 128; in init()
197 f->data[0][y * f->linesize[0] + x] = s->yuv_color[0]; in burn_frame8()
198 f->data[1][chromay * f->linesize[1] + chromax] = s->yuv_color[1]; in burn_frame8()
199 f->data[2][chromay * f->linesize[2] + chromax] = s->yuv_color[2]; in burn_frame8()
207 AV_WN16(f->data[0] + y * f->linesize[0] + x * 2, s->yuv_color[0] * mult); in burn_frame16()
208 AV_WN16(f->data[1] + chromay * f->linesize[1] + chromax * 2, s->yuv_color[1] * mult); in burn_frame16()
209 AV_WN16(f->data[2] + chromay * f->linesize[2] + chromax * 2, s->yuv_color[2] * mult); in burn_frame16()
Dvf_fillborders.c52 uint8_t yuv_color[4]; member
647 s->yuv_color[Y] = RGB_TO_Y_CCIR(s->rgba_color[R], s->rgba_color[G], s->rgba_color[B]); in config_input()
648 s->yuv_color[U] = RGB_TO_U_CCIR(s->rgba_color[R], s->rgba_color[G], s->rgba_color[B], 0); in config_input()
649 s->yuv_color[V] = RGB_TO_V_CCIR(s->rgba_color[R], s->rgba_color[G], s->rgba_color[B], 0); in config_input()
650 s->yuv_color[A] = s->rgba_color[A]; in config_input()
660 memcpy(s->fill, s->yuv_color, sizeof(s->yuv_color)); in config_input()