Home
last modified time | relevance | path

Searched refs:bits_per_pixel (Results 1 – 15 of 15) sorted by relevance

/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/dbs/
A Dtiff-grayscale.c43 int bits_per_pixel = 8, cmsize, i, j, k, in main() local
56 bits_per_pixel = atoi(argv[2]); in main()
60 switch (bits_per_pixel) { in main()
85 refblackwhite[1] = (float)((1L<<bits_per_pixel) - 1); in main()
95 TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel); in main()
105 scan_line = (unsigned char *) malloc(WIDTH / (8 / bits_per_pixel)); in main()
111 switch (bits_per_pixel) { in main()
A Dtiff-palette.c42 int bits_per_pixel = 8, cmsize, i, j, k, in main() local
54 bits_per_pixel = atoi(argv[2]); in main()
58 switch (bits_per_pixel) { in main()
79 if (bits_per_pixel != 1) { in main()
88 switch (bits_per_pixel) { in main()
228 TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel); in main()
237 scan_line = (unsigned char *) malloc(WIDTH / (8 / bits_per_pixel)); in main()
243 switch (bits_per_pixel) { in main()
/AliOS-Things-master/components/udisplay/src/
A Dudisplay.c47 line_length = w * ctx->var.bits_per_pixel / 8; in display_draw_rect()
57 if (ctx->var.bits_per_pixel == 32 || ctx->var.bits_per_pixel == 24) { in display_draw_rect()
70 else if (ctx->var.bits_per_pixel == 16) { in display_draw_rect()
82 else if (ctx->var.bits_per_pixel == 8) { in display_draw_rect()
94 else if (ctx->var.bits_per_pixel == 1) { in display_draw_rect()
125 const int32_t bytesPerPixel = ctx->var.bits_per_pixel / 8; in udisplay_draw_rgb32()
144 const int32_t bytesPerPixel = ctx->var.bits_per_pixel / 8; in udisplay_draw_rgb16()
207 * fb_var.bits_per_pixel / 8; in udisplay_init()
308 ctx->var.bits_per_pixel / 8); in udisplay_show_rect()
373 var->bits_per_pixel / 8); in udisplay_pattern_rgb32()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Dwrbmp.c171 int bits_per_pixel, cmap_entries; in write_bmp_header() local
177 bits_per_pixel = 8; in write_bmp_header()
181 bits_per_pixel = 24; in write_bmp_header()
186 bits_per_pixel = 8; in write_bmp_header()
209 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header()
236 int bits_per_pixel, cmap_entries; in write_os2_header() local
242 bits_per_pixel = 8; in write_os2_header()
246 bits_per_pixel = 24; in write_os2_header()
251 bits_per_pixel = 8; in write_os2_header()
274 PUT_2B(bmpcoreheader, 10, bits_per_pixel); /* bcBitCount */ in write_os2_header()
A Drdbmp.c64 int bits_per_pixel; /* remembers 8- or 24-bit format */ member
251 switch (source->bits_per_pixel) { in preload_image()
324 source->bits_per_pixel = (int) GET_2B(bmpinfoheader,10); in start_input_bmp()
326 switch (source->bits_per_pixel) { in start_input_bmp()
346 source->bits_per_pixel = (int) GET_2B(bmpinfoheader,14); in start_input_bmp()
353 switch (source->bits_per_pixel) { in start_input_bmp()
415 if (source->bits_per_pixel == 24) in start_input_bmp()
417 else if (source->bits_per_pixel == 32) in start_input_bmp()
/AliOS-Things-master/components/drivers/external_device/ili9341/src/
A Dili9341_fb.c164 info->var.bits_per_pixel = 4 * 8; in ili9341_fb_init()
167 info->var.bits_per_pixel = 2 * 8; in ili9341_fb_init()
169 info->screen_size = info->var.xres * info->var.yres * info->var.bits_per_pixel / 8; in ili9341_fb_init()
176 info->fix.line_length = info->var.xres * info->var.bits_per_pixel / 8; in ili9341_fb_init()
/AliOS-Things-master/components/drivers/core/fbdev/include/
A Dfb_define.h83 uint32_t bits_per_pixel; member
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Dlossless.c340 const int bits_per_pixel = 8 >> transform->bits_; \
343 if (bits_per_pixel < 8) { \
346 const uint32_t bit_mask = (1 << bits_per_pixel) - 1; \
357 packed_pixels >>= bits_per_pixel; \
/AliOS-Things-master/components/udisplay/example/
A Dudisplay_example.c106 ctx->var.bits_per_pixel, \ in udisplay_comp_example()
/AliOS-Things-master/components/SDL2/src/image/
A DIMG_ImageIO.m203 //size_t bits_per_pixel = CGImageGetBitsPerPixel(image_ref);
287 size_t bits_per_pixel = CGImageGetBitsPerPixel(image_ref);
303 if (bits_per_pixel != 8) {
304 SDL_SetError("Unknown bits_per_pixel %lu", bits_per_pixel);
309 surface = SDL_CreateRGBSurface(SDL_SWSURFACE, (int)w, (int)h, bits_per_pixel, 0, 0, 0, 0);
A DIMG_UIImage.m30 //size_t bits_per_pixel = CGImageGetBitsPerPixel(image_ref);
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/gregbook/
A Drpng2-x.c1308 int bpp = ximage->bits_per_pixel; in rpng2_x_load_bg_image()
1433 int bpp = ximage->bits_per_pixel; in rpng2_x_display_row()
1639 Trace((stderr, " (bpp = %d)\n", ximage->bits_per_pixel)) in rpng2_x_redisplay_image()
1653 int bpp = ximage->bits_per_pixel; in rpng2_x_redisplay_image()
A Drpng-x.c708 Trace((stderr, " (bpp = %d)\n", ximage->bits_per_pixel)) in rpng_x_display_image()
/AliOS-Things-master/components/SDL2/src/video/haiku/
A DSDL_BWin.h202 _bytes_per_px = info->bits_per_pixel / 8; in DirectConnected()
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11modes.c116 bpp = p[i].bits_per_pixel; in X11_GetPixelFormatFromVisualInfo()

Completed in 43 milliseconds