Lines Matching refs:uint8

467 typedef unsigned char uint8;  typedef
828 uint8 buffer_start[128];
831 uint8 const *img_buffer, *img_buffer_end;
845 static void start_mem(stbi *s, uint8 const *buffer, int len) in start_mem()
851 s->img_buffer = (uint8 const *) buffer; in start_mem()
852 s->img_buffer_end = (uint8 const *) buffer+len; in start_mem()
898 __forceinline static uint8 get8u(stbi *s) in get8u()
900 return (uint8) get8(s); in get8u()
975 static uint8 compute_y(int r, int g, int b) in compute_y()
977 return (uint8) (((r*77) + (g*150) + (29*b)) >> 8); in compute_y()
1067 output[i*comp + k] = (uint8) float2int(z); in hdr_to_ldr()
1073 output[i*comp + k] = (uint8) float2int(z); in hdr_to_ldr()
1113 uint8 fast[1 << FAST_BITS];
1116 uint8 values[256];
1117 uint8 size[257];
1130 uint8 dequant[4][64];
1147 uint8 *data;
1149 uint8 *linebuf;
1167 h->size[k++] = (uint8) (i+1); in build_huffman()
1195 h->fast[c+j] = (uint8) i; in build_huffman()
1301 static uint8 dezigzag[64+15] =
1352 __forceinline static uint8 clamp(int x) in clamp()
1359 return (uint8) x; in clamp()
1406 typedef uint8 stbi_dequantize_t;
1410 static void idct_block(uint8 *out, int out_stride, short data[64], stbi_dequantize_t *dequantize) in idct_block()
1414 uint8 *o; in idct_block()
1484 static uint8 get_marker(jpeg *j) in get_marker()
1486 uint8 x; in get_marker()
1621 uint8 *v; in process_marker()
1744 z->img_comp[i].data = (uint8*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); in process_frame_header()
1812 typedef uint8 *(*resample_row_func)(uint8 *out, uint8 *in0, uint8 *in1,
1815 #define div4(x) ((uint8) ((x) >> 2))
1817 static uint8 *resample_row_1(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) in resample_row_1()
1826 static uint8* resample_row_v_2(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) in resample_row_v_2()
1836 static uint8* resample_row_h_2(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) in resample_row_h_2()
1840 uint8 *input = in_near; in resample_row_h_2()
1864 #define div16(x) ((uint8) ((x) >> 4))
1866 static uint8 *resample_row_hv_2(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) in resample_row_hv_2()
1890 static uint8 *resample_row_generic(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) in resample_row_generic()
1905 static void YCbCr_to_RGB_row(uint8 *out, const uint8 *y, const uint8 *pcb, const uint8 *pcr, int co… in YCbCr_to_RGB_row()
1922 out[0] = (uint8)r; in YCbCr_to_RGB_row()
1923 out[1] = (uint8)g; in YCbCr_to_RGB_row()
1924 out[2] = (uint8)b; in YCbCr_to_RGB_row()
1959 uint8 *line0,*line1;
1966 static uint8 *load_jpeg_image(jpeg *z, int *out_x, int *out_y, int *comp, int req_comp) in load_jpeg_image()
1988 uint8 *output; in load_jpeg_image()
1989 uint8 *coutput[4]; in load_jpeg_image()
2021 uint8 *out = output + n * z->s.img_x * j; in load_jpeg_image()
2037 uint8 *y = coutput[0]; in load_jpeg_image()
2051 uint8 *y = coutput[0]; in load_jpeg_image()
2196 uint8 size[288];
2217 static int zbuild_huffman(zhuffman *z, uint8 *sizelist, int num) in zbuild_huffman()
2247 z->size[c] = (uint8)s; in zbuild_huffman()
2270 uint8 const *zbuffer, *zbuffer_end;
2374 uint8 *p; in parse_huffman_block()
2386 p = (uint8 *) (a->zout - dist); in parse_huffman_block()
2395 static uint8 length_dezigzag[19] = { 16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15 }; in compute_huffman_codes()
2397 uint8 lencodes[286+32+137];//padding for maximum single op in compute_huffman_codes()
2398 uint8 codelength_sizes[19]; in compute_huffman_codes()
2408 codelength_sizes[length_dezigzag[i]] = (uint8) s; in compute_huffman_codes()
2417 lencodes[n++] = (uint8) c; in compute_huffman_codes()
2441 uint8 header[4]; in parse_uncompressed_block()
2448 header[k++] = (uint8) (a->code_buffer & 255); // wtf this warns? in parse_uncompressed_block()
2455 header[k++] = (uint8) zget8(a); in parse_uncompressed_block()
2482 static uint8 default_length[288], default_distance[32];
2546 a->zbuffer = (uint8 const *) buffer; in stbi_zlib_decode_malloc_guesssize()
2547 a->zbuffer_end = (uint8 const *) buffer + len; in stbi_zlib_decode_malloc_guesssize()
2574 a->zbuffer = (uint8 const *) buffer; in stbi_zlib_decode_malloc_guesssize_headerflag()
2575 a->zbuffer_end = (uint8 const *) buffer + len; in stbi_zlib_decode_malloc_guesssize_headerflag()
2594 a->zbuffer = (uint8 const *) ibuffer; in stbi_zlib_decode_buffer()
2595 a->zbuffer_end = (uint8 const *) ibuffer + ilen; in stbi_zlib_decode_buffer()
2614 a->zbuffer = (uint8 const *) buffer; in stbi_zlib_decode_noheader_malloc()
2615 a->zbuffer_end = (uint8 const *) buffer+len; in stbi_zlib_decode_noheader_malloc()
2633 a->zbuffer = (uint8 const *) ibuffer; in stbi_zlib_decode_noheader_buffer()
2634 a->zbuffer_end = (uint8 const *) ibuffer + ilen; in stbi_zlib_decode_noheader_buffer()
2672 static uint8 png_sig[8] = { 137,80,78,71,13,10,26,10 }; in check_png_header()
2682 uint8 *idata, *expanded, *out;
2691 static uint8 first_row_filter[5] =
2708 static int create_png_image_raw(png *a, uint8 *raw, uint32 raw_len, int out_n, uint32 x, uint32 y) in create_png_image_raw()
2726 uint8 *cur = a->out + stride*j; in create_png_image_raw()
2727 uint8 *prior = cur - stride; in create_png_image_raw()
2739 case F_paeth : cur[k] = (uint8) (raw[k] + paeth(0,prior[k],0)); break; in create_png_image_raw()
2763 CASE(F_paeth) cur[k] = (uint8) (raw[k] + paeth(cur[k-img_n],prior[k],prior[k-img_n])); in create_png_image_raw()
2767 CASE(F_paeth_first) cur[k] = (uint8) (raw[k] + paeth(cur[k-img_n],0,0)); in create_png_image_raw()
2786 CASE(F_paeth) cur[k] = (uint8) (raw[k] + paeth(cur[k-out_n],prior[k],prior[k-out_n])); in create_png_image_raw()
2790 CASE(F_paeth_first) cur[k] = (uint8) (raw[k] + paeth(cur[k-out_n],0,0)); in create_png_image_raw()
2799 static int create_png_image(png *a, uint8 *raw, uint32 raw_len, int out_n, int interlaced) in create_png_image()
2801 uint8 *final; in create_png_image()
2840 static int compute_transparency(png *z, uint8 tc[3], int out_n) in compute_transparency()
2844 uint8 *p = z->out; in compute_transparency()
2865 static int expand_palette(png *a, uint8 *palette, int len, int pal_img_n) in expand_palette()
2868 uint8 *p, *temp_out, *orig = a->out; in expand_palette()
2918 uint8 *p = z->out; in stbi_de_iphone()
2922 uint8 t = p[0]; in stbi_de_iphone()
2932 uint8 a = p[3]; in stbi_de_iphone()
2933 uint8 t = p[0]; in stbi_de_iphone()
2947 uint8 t = p[0]; in stbi_de_iphone()
2958 uint8 palette[1024], pal_img_n=0; in parse_png_file()
2959 uint8 has_trans=0, tc[3]; in parse_png_file()
3032 tc[k] = (uint8) get16(s); // non 8-bit images will be larger in parse_png_file()
3042 uint8 *p; in parse_png_file()
3046 …p = (uint8 *) REALLOC(z->idata, idata_limit); if (p == NULL) return e("outofmem", "Out of memory"); in parse_png_file()
3059 …z->expanded = (uint8 *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, 1638… in parse_png_file()
3090 invalid_chunk[0] = (uint8) (c.type >> 24); in parse_png_file()
3091 invalid_chunk[1] = (uint8) (c.type >> 16); in parse_png_file()
3092 invalid_chunk[2] = (uint8) (c.type >> 8); in parse_png_file()
3093 invalid_chunk[3] = (uint8) (c.type >> 0); in parse_png_file()
3293 uint8 *out; in bmp_load()
3450 if (target == 4) out[z++] = (uint8) a; in bmp_load()
3456 out[z++] = (uint8) shiftsigned(v & mr, rshift, rcount); in bmp_load()
3457 out[z++] = (uint8) shiftsigned(v & mg, gshift, gcount); in bmp_load()
3458 out[z++] = (uint8) shiftsigned(v & mb, bshift, bcount); in bmp_load()
3460 if (target == 4) out[z++] = (uint8) a; in bmp_load()
3887 uint8 *out; in psd_load()
3967 uint8 *p; in psd_load()
3990 uint8 val; in psd_load()
4013 uint8 *p; in psd_load()
4185 count = (uint8) left; in pic_load2()
4317 uint8 first;
4318 uint8 suffix;
4326 uint8 pal[256][4];
4327 uint8 lpal[256][4];
4329 uint8 *color_table;
4367 static void stbi_gif_parse_colortable(stbi *s, uint8 pal[256][4], int num_entries, int transp) in stbi_gif_parse_colortable()
4380 uint8 ver; in stbi_gif_header()
4424 uint8 *p, *c; in stbi_out_gif_code()
4456 static uint8 *stbi_process_gif_raster(stbi *s, stbi_gif *g) in stbi_process_gif_raster()
4458 uint8 lzw_cs; in stbi_process_gif_raster()
4473 g->codes[code].first = (uint8) code; in stbi_process_gif_raster()
4474 g->codes[code].suffix = (uint8) code; in stbi_process_gif_raster()
4538 uint8 *c = g->pal[g->bgindex]; in stbi_fill_gif_background()
4541 uint8 *p = &g->out[i]; in stbi_fill_gif_background()
4550 static uint8 *stbi_gif_load_next(stbi *s, stbi_gif *g, int *comp, int req_comp) in stbi_gif_load_next()
4553 uint8 *old_out = 0; in stbi_gif_load_next()
4575 uint8 *o; in stbi_gif_load_next()
4604 g->color_table = (uint8 *) g->lpal; in stbi_gif_load_next()
4610 g->color_table = (uint8 *) g->pal; in stbi_gif_load_next()
4642 return (uint8 *) 1; in stbi_gif_load_next()
4653 uint8 *data; in stbi_gif_load()
4663 uint8 *u = 0; in stbi_gif_load_from_file()
4681 uint8 *u = 0; in stbi_gif_load_from_memory()
4896 uint8 rgbe[4]; in hdr_load()
4897 rgbe[0] = (uint8) c1; in hdr_load()
4898 rgbe[1] = (uint8) c2; in hdr_load()
4899 rgbe[2] = (uint8) len; in hdr_load()
4900 rgbe[3] = (uint8) get8u(s); in hdr_load()