Home
last modified time | relevance | path

Searched refs:nb_colors (Results 1 – 12 of 12) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvsrc_gradients.c45 int nb_colors; member
75 …{"nb_colors", "set the number of colors", OFFSET(nb_colors), AV_OPT_TYPE_INT, {.i64=2}, …
76 …{"n", "set the number of colors", OFFSET(nb_colors), AV_OPT_TYPE_INT, {.i64=2}, …
120 static uint32_t lerp_colors(uint8_t arr[3][4], int nb_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()
132 scl = step * (nb_colors - 1); in lerp_colors()
138 static uint64_t lerp_colors16(uint8_t arr[3][4], int nb_colors, float step) in lerp_colors16() argument
143 if (nb_colors == 1 || step <= 0.0) { in lerp_colors16()
146 i = nb_colors - 1; in lerp_colors16()
[all …]
/third_party/ffmpeg/libavcodec/
Ddvbsubenc.c328 if (buf_size < 6 + h->rects[clut_id]->nb_colors * 6) in dvbsub_encode()
333 if (h->rects[clut_id]->nb_colors <= 4) { in dvbsub_encode()
336 } else if (h->rects[clut_id]->nb_colors <= 16) { in dvbsub_encode()
339 } else if (h->rects[clut_id]->nb_colors <= 256) { in dvbsub_encode()
356 for(i = 0; i < h->rects[clut_id]->nb_colors; i++) { in dvbsub_encode()
375 buf_size -= 6 + h->rects[clut_id]->nb_colors * 6; in dvbsub_encode()
384 if (h->rects[region_id]->nb_colors <= 4) { in dvbsub_encode()
387 } else if (h->rects[region_id]->nb_colors <= 16) { in dvbsub_encode()
390 } else if (h->rects[region_id]->nb_colors <= 256) { in dvbsub_encode()
430 if (h->rects[object_id]->nb_colors <= 4) { in dvbsub_encode()
[all …]
Dmvcdec.c139 int w, h, nb_colors, i, x, y, p0, p1, mask; in decode_mvc2() local
154 nb_colors = bytestream2_get_byteu(gb); in decode_mvc2()
155 if (bytestream2_get_bytes_left(gb) < nb_colors * 3) in decode_mvc2()
157 for (i = 0; i < FFMIN(nb_colors, 128); i++) in decode_mvc2()
159 if (nb_colors > 128) in decode_mvc2()
160 bytestream2_skip(gb, (nb_colors - 128) * 3); in decode_mvc2()
Dxsubdec.c113 sub->rects[0]->nb_colors = 4; in decode_frame()
125 for (i = 0; i < sub->rects[0]->nb_colors; i++) in decode_frame()
130 for (i = 1; i < sub->rects[0]->nb_colors; i++) in decode_frame()
133 for (i = 0; i < sub->rects[0]->nb_colors; i++) in decode_frame()
Dxsubenc.c155 if (h->rects[0]->nb_colors > 4) in xsub_encode()
156 … AV_LOG_WARNING, "No more than 4 subtitle colors supported (%d found.)\n", h->rects[0]->nb_colors); in xsub_encode()
Ddvdsubdec.c396 sub_header->rects[0]->nb_colors = 256; in decode_dvd_subtitles()
401 sub_header->rects[0]->nb_colors = 4; in decode_dvd_subtitles()
461 for(i = 0; i < s->rects[0]->nb_colors; i++) { in find_smallest_bounding_rectangle()
Dpgssubdec.c590 sub->rects[i]->nb_colors = 256; in display_end_segment()
598 memcpy(sub->rects[i]->data[1], palette->clut, sub->rects[i]->nb_colors * sizeof(uint32_t)); in display_end_segment()
Davcodec.h2692 int nb_colors; ///< number of colors in pict, undefined when pict is not set member
Dlibzvbi-teletextdec.c484 … sub_rect->nb_colors = ctx->opacity > 0 && ctx->opacity < 255 ? 2 * VBI_NB_COLORS : VBI_NB_COLORS; in gen_sub_bitmap()
Ddvbsubdec.c789 rect->nb_colors = (1 << region->depth); in save_subtitle_set()
/third_party/gstreamer/gstplugins_bad/gst/dvbsuboverlay/
Ddvb-sub.c1229 rect->nb_colors = 16; in _dvb_sub_parse_end_of_display_set()
/third_party/ffmpeg/doc/
Dfilters.texi23864 @item nb_colors, n