Home
last modified time | relevance | path

Searched refs:nb_colors (Results 1 - 10 of 10) sorted by relevance

/third_party/ffmpeg/libavfilter/
H A Dvsrc_gradients.c46 int nb_colors; member
76 {"nb_colors", "set the number of colors", OFFSET(nb_colors), AV_OPT_TYPE_INT, {.i64=2}, 2, 8, FLAGS },
77 {"n", "set the number of colors", OFFSET(nb_colors), AV_OPT_TYPE_INT, {.i64=2}, 2, 8, FLAGS },
120 static uint32_t lerp_colors(uint8_t arr[3][4], int nb_colors, int nb_wrap_colors, float step) in lerp_colors() argument
125 if (nb_colors == 1 || step <= 0.0) { in lerp_colors()
128 i = nb_colors - 1; in lerp_colors()
135 if (i >= nb_colors - 1) { in lerp_colors()
136 i = nb_colors - 1; in lerp_colors()
143 static uint64_t lerp_colors16(uint8_t arr[3][4], int nb_colors, in argument
166 lerp_colors32(float arr[3][4], int nb_colors, int nb_wrap_colors, float step, float *r, float *g, float *b, float *a) lerp_colors32() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Ddvbsubenc.c329 if (buf_size < 6 + h->rects[clut_id]->nb_colors * 6) in dvbsub_encode()
334 if (h->rects[clut_id]->nb_colors <= 4) { in dvbsub_encode()
337 } else if (h->rects[clut_id]->nb_colors <= 16) { in dvbsub_encode()
340 } else if (h->rects[clut_id]->nb_colors <= 256) { in dvbsub_encode()
357 for(i = 0; i < h->rects[clut_id]->nb_colors; i++) { in dvbsub_encode()
376 buf_size -= 6 + h->rects[clut_id]->nb_colors * 6; in dvbsub_encode()
385 if (h->rects[region_id]->nb_colors <= 4) { in dvbsub_encode()
388 } else if (h->rects[region_id]->nb_colors <= 16) { in dvbsub_encode()
391 } else if (h->rects[region_id]->nb_colors <= 256) { in dvbsub_encode()
431 if (h->rects[object_id]->nb_colors < in dvbsub_encode()
[all...]
H A Dmvcdec.c142 int w, h, nb_colors, i, x, y, p0, p1, mask; in decode_mvc2() local
157 nb_colors = bytestream2_get_byteu(gb); in decode_mvc2()
158 if (bytestream2_get_bytes_left(gb) < nb_colors * 3) in decode_mvc2()
160 for (i = 0; i < FFMIN(nb_colors, 128); i++) in decode_mvc2()
162 if (nb_colors > 128) in decode_mvc2()
163 bytestream2_skip(gb, (nb_colors - 128) * 3); in decode_mvc2()
H A Dxsubdec.c113 rect->nb_colors = 4; in decode_frame()
119 for (i = 0; i < rect->nb_colors; i++) in decode_frame()
124 for (i = 1; i < rect->nb_colors; i++) in decode_frame()
127 for (i = 0; i < rect->nb_colors; i++) in decode_frame()
H A Dxsubenc.c142 if (h->rects[0]->nb_colors > 4) in xsub_encode()
143 av_log(avctx, AV_LOG_WARNING, "No more than 4 subtitle colors supported (%d found.)\n", h->rects[0]->nb_colors); in xsub_encode()
H A Ddvdsubdec.c394 sub_header->rects[0]->nb_colors = 256; in decode_dvd_subtitles()
399 sub_header->rects[0]->nb_colors = 4; in decode_dvd_subtitles()
450 for(i = 0; i < s->rects[0]->nb_colors; i++) { in find_smallest_bounding_rectangle()
H A Dpgssubdec.c581 rect->nb_colors = 256; in display_end_segment()
587 memcpy(rect->data[1], palette->clut, rect->nb_colors * sizeof(uint32_t)); in display_end_segment()
H A Davcodec.h2282 int nb_colors; ///< number of colors in pict, undefined when pict is not set member
H A Dlibzvbi-teletextdec.c485 sub_rect->nb_colors = ctx->opacity > 0 && ctx->opacity < 255 ? 2 * VBI_NB_COLORS : VBI_NB_COLORS; in gen_sub_bitmap()
H A Ddvbsubdec.c798 rect->nb_colors = (1 << region->depth); in save_subtitle_set()

Completed in 18 milliseconds