Home
last modified time | relevance | path

Searched refs:num_colors (Results 1 – 6 of 6) sorted by relevance

/reactos/dll/3rdparty/libjpeg/
H A Dwrtarga.c55 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) in write_header() argument
63 if (num_colors > 0) { in write_header()
65 targaheader[5] = (char) (num_colors & 0xFF); in write_header()
66 targaheader[6] = (char) (num_colors >> 8); in write_header()
80 if (num_colors > 0) { in write_header()
170 int num_colors, i; in start_output_tga() local
186 num_colors = cinfo->actual_number_of_colors; in start_output_tga()
187 if (num_colors > 256) in start_output_tga()
188 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); in start_output_tga()
189 write_header(cinfo, dinfo, num_colors); in start_output_tga()
[all …]
H A Dwrgif.c252 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) in emit_header() argument
260 if (num_colors > 256) in emit_header()
261 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors); in emit_header()
264 while (num_colors > (1 << BitsPerPixel)) in emit_header()
294 if (i < num_colors) { in emit_header()
307 put_3bytes(dinfo, (i * 255 + (num_colors - 1) / 2) / (num_colors - 1)); in emit_header()
H A Dwrbmp.c291 int num_colors = cinfo->actual_number_of_colors; in write_colormap() local
298 for (i = 0; i < num_colors; i++) { in write_colormap()
307 for (i = 0; i < num_colors; i++) { in write_colormap()
/reactos/dll/win32/gdiplus/
H A Dbrush.c1797 INT i, num_colors; in GdipSetPathGradientSurroundColorsWithCount() local
1805 num_colors = *count; in GdipSetPathGradientSurroundColorsWithCount()
1810 for (i=1; i < num_colors; i++) in GdipSetPathGradientSurroundColorsWithCount()
1814 if (i == num_colors) in GdipSetPathGradientSurroundColorsWithCount()
1815 num_colors = 1; in GdipSetPathGradientSurroundColorsWithCount()
1818 new_surroundcolors = heap_alloc_zero(num_colors * sizeof(ARGB)); in GdipSetPathGradientSurroundColorsWithCount()
1822 memcpy(new_surroundcolors, argb, num_colors * sizeof(ARGB)); in GdipSetPathGradientSurroundColorsWithCount()
1827 grad->surroundcolorcount = num_colors; in GdipSetPathGradientSurroundColorsWithCount()
/reactos/dll/win32/msvfw32/
H A Dmsvideo_main.c1511 int num_colors; in copy_bitmapinfo() local
1516 num_colors = min(src->bmiHeader.biClrUsed, 256); in copy_bitmapinfo()
1518 num_colors = src->bmiHeader.biBitCount > 8 ? 0 : 1 << src->bmiHeader.biBitCount; in copy_bitmapinfo()
1520 size = FIELD_OFFSET(BITMAPINFO, bmiColors[num_colors]); in copy_bitmapinfo()
/reactos/dll/directx/wine/d3dx9_36/
H A Dmesh.c2941 DWORD num_colors; in parse_vertex_colors() local
2966 num_colors = *(DWORD*)data; in parse_vertex_colors()
2968 if (data_size < sizeof(DWORD) + num_colors * (sizeof(DWORD) + sizeof(D3DCOLORVALUE))) { in parse_vertex_colors()
2981 for (i = 0; i < num_colors; i++) in parse_vertex_colors()