Searched refs:ncolors (Results 1 - 17 of 17) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/jpeg-7/
H A Drdcolmap.c51 int ncolors = cinfo->actual_number_of_colors; local
55 for (index = 0; index < ncolors; index++) {
63 if (ncolors >= (MAXJSAMPLE+1))
67 colormap0[ncolors] = (JSAMPLE) R;
68 colormap1[ncolors] = (JSAMPLE) G;
69 colormap2[ncolors] = (JSAMPLE) B;
H A Drdrle.c124 if (source->header.ncolors == 1 && source->header.ncmap == 0) {
127 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) {
131 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) {
135 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) {
139 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) {
166 (JDIMENSION) (width * source->header.ncolors),
296 for (channel = 0; channel < source->header.ncolors; channel++) {
H A Djquant2.c660 int i, x, ncolors; local
765 ncolors = 0;
768 colorlist[ncolors++] = (JSAMPLE) i;
770 return ncolors;
H A Dwrrle.c193 header.ncolors = cinfo->output_components;
H A Djquant1.c391 * Create an ordered-dither array for a component having ncolors
396 make_odither_array (j_decompress_ptr cinfo, int ncolors)
405 /* The inter-value distance for this color is MAXJSAMPLE/(ncolors-1).
407 * (f=0..N-1) should be (N-1-2*f)/(2*N) * MAXJSAMPLE/(ncolors-1).
410 den = 2 * ODITHER_CELLS * ((INT32) (ncolors - 1));
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/
H A Dxwddec.c37 uint32_t version, header_size, vclass, ncolors; local
77 ncolors = bytestream2_get_be32u(&gb);
84 "vclass %"PRIu32", ncolors %"PRIu32", bpp %"PRIu32", be %"PRIu32", lsize %"PRIu32", xoffset %"PRIu32"\n",
85 vclass, ncolors, bpp, be, lsize, xoffset);
130 if (ncolors > 256) {
144 if (bytestream2_get_bytes_left(&gb) < ncolors * XWD_CMAP_SIZE + avctx->height * lsize) {
196 bytestream2_skipu(&gb, ncolors * XWD_CMAP_SIZE);
220 for (i = 0; i < ncolors; i++) {
H A Dxwdenc.c38 uint32_t pixdepth, bpp, bpad, ncolors = 0, lsize, vclass, be = 0; local
126 ncolors = 256;
147 out_size = header_size + ncolors * XWD_CMAP_SIZE + avctx->height * lsize;
174 bytestream_put_be32(&buf, ncolors); // number of colors
175 bytestream_put_be32(&buf, ncolors); // number of entries in color map
183 for (i = 0; i < ncolors; i++) {
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/regex/
H A Drege_dfa.c280 if (nss <= FEWSTATES && cnfa->ncolors <= FEWCOLORS) {
308 d->outsarea = (struct sset **)MALLOC(nss * cnfa->ncolors *
310 d->incarea = (struct arcp *)MALLOC(nss * cnfa->ncolors *
325 d->ncolors = cnfa->ncolors;
473 if (ca->co <= cnfa->ncolors)
538 n = co - pcnfa->ncolors;
588 for (i = 0; i < d->ncolors; i++) {
649 ss->outs = &d->outsarea[i * d->ncolors];
650 ss->inchain = &d->incarea[i * d->ncolors];
[all...]
H A Dregguts.h341 int ncolors; /* number of colors */ member in struct:cnfa
H A Dregc_nfa.c1258 cnfa->ncolors = maxcolor(nfa->cm) + 1;
1277 ca->co = (color)(cnfa->ncolors + a->co);
1563 if (ca[i].co < cnfa->ncolors)
1566 fprintf(f, "\t:%ld:->%d", (long)ca[i].co-cnfa->ncolors,
H A Dregexec.c63 int ncolors; /* length of outarc and inchain vectors */ member in struct:dfa
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/common/
H A Dimagpng.cpp589 int ncolors = 0; local
591 png_get_PLTE( png_ptr, info_ptr, &palette, &ncolors);
592 unsigned char* r = new unsigned char[ncolors];
593 unsigned char* g = new unsigned char[ncolors];
594 unsigned char* b = new unsigned char[ncolors];
597 for (j = 0; j < ncolors; j++)
604 image->SetPalette(wxPalette(ncolors, r, g, b));
H A Dimagbmp.cpp453 int bpp, int ncolors, int comp,
470 cmap = new _cmap[ncolors];
515 if ( bpp < 16 && ncolors != 0 )
517 unsigned char* r = new unsigned char[ncolors];
518 unsigned char* g = new unsigned char[ncolors];
519 unsigned char* b = new unsigned char[ncolors];
520 for (int j = 0; j < ncolors; j++)
544 image->SetPalette(wxPalette(ncolors, r, g, b));
936 int ncolors = wxINT32_SWAP_ON_BE( (int)dbuf[0] ); local
937 if (ncolors
452 DoLoadDib(wxImage * image, int width, int height, int bpp, int ncolors, int comp, wxFileOffset bmpOffset, wxInputStream& stream, bool verbose, bool IsBmp, bool hasPalette) argument
[all...]
H A Dquantize.cpp793 int i, x, ncolors; local
898 ncolors = 0;
901 colorlist[ncolors++] = (JSAMPLE) i;
903 return ncolors;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/
H A Dimagbmp.h69 bool DoLoadDib(wxImage *image, int width, int height, int bpp, int ncolors,
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/jpeg/
H A Djquant2.c660 int i, x, ncolors; local
765 ncolors = 0;
768 colorlist[ncolors++] = (JSAMPLE) i;
770 return ncolors;
H A Djquant1.c391 * Create an ordered-dither array for a component having ncolors
396 make_odither_array (j_decompress_ptr cinfo, int ncolors)
405 /* The inter-value distance for this color is MAXJSAMPLE/(ncolors-1).
407 * (f=0..N-1) should be (N-1-2*f)/(2*N) * MAXJSAMPLE/(ncolors-1).
410 den = 2 * ODITHER_CELLS * ((JPEG_INT32) (ncolors - 1));

Completed in 274 milliseconds