Home
last modified time | relevance | path

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

12

/third_party/ffmpeg/libavcodec/
Dpcx.c79 unsigned int w, h, bits_per_pixel, bytes_per_line, nplanes, stride, y, x, in pcx_decode_frame() local
96 bits_per_pixel = bytestream2_get_byteu(&gb); in pcx_decode_frame()
117 if (bytes_per_scanline < (w * bits_per_pixel * nplanes + 7) / 8 || in pcx_decode_frame()
123 switch ((nplanes << 8) + bits_per_pixel) { in pcx_decode_frame()
158 if (nplanes == 3 && bits_per_pixel == 8) { in pcx_decode_frame()
172 } else if (nplanes == 1 && bits_per_pixel == 8) { in pcx_decode_frame()
210 ptr[x] = get_bits(&s, bits_per_pixel); in pcx_decode_frame()
234 if (nplanes == 1 && bits_per_pixel == 8) { in pcx_decode_frame()
237 } else if (bits_per_pixel * nplanes == 1) { in pcx_decode_frame()
240 } else if (bits_per_pixel < 8) { in pcx_decode_frame()
Dgifdec.c44 int bits_per_pixel; member
132 int left, top, width, height, bits_per_pixel, code_size, flags, pw; in gif_read_image() local
149 bits_per_pixel = (flags & 0x07) + 1; in gif_read_image()
154 pal_size = 1 << bits_per_pixel; in gif_read_image()
399 s->bits_per_pixel = (v & 0x07) + 1; in gif_read_header1()
408 s->screen_width, s->screen_height, s->bits_per_pixel, in gif_read_header1()
413 n = 1 << s->bits_per_pixel; in gif_read_header1()
Dpngenc.c66 int bits_per_pixel; member
83 int bits_per_pixel, int pass, in png_get_interlaced_row() argument
92 switch (bits_per_pixel) { in png_get_interlaced_row()
106 bpp = bits_per_pixel >> 3; in png_get_interlaced_row()
442 row_size = (pict->width * s->bits_per_pixel + 7) >> 3; in encode_frame()
469 pass_row_size = ff_png_pass_row_size(pass, s->bits_per_pixel, pict->width); in encode_frame()
477 s->bits_per_pixel, pass, in encode_frame()
480 top, pass_row_size, s->bits_per_pixel >> 3); in encode_frame()
491 row_size, s->bits_per_pixel >> 3); in encode_frame()
532 enc_row_size = deflateBound(&s->zstream, (avctx->width * s->bits_per_pixel + 7) >> 3); in encode_png()
[all …]
Dpng.c62 int ff_png_pass_row_size(int pass, int bits_per_pixel, int width) in ff_png_pass_row_size() argument
71 return (pass_width * bits_per_pixel + 7) >> 3; in ff_png_pass_row_size()
Dpngdec.c87 int bits_per_pixel; member
129 int bits_per_pixel, int pass, in png_put_interlaced_row() argument
139 switch (bits_per_pixel) { in png_put_interlaced_row()
182 bpp = bits_per_pixel >> 3; in png_put_interlaced_row()
398 png_put_interlaced_row(ptr, s->cur_w, s->bits_per_pixel, s->pass, in png_handle_row()
412 s->bits_per_pixel, in png_handle_row()
657 s->bits_per_pixel = s->bit_depth * s->channels; in decode_idat_chunk()
658 s->bpp = (s->bits_per_pixel + 7) >> 3; in decode_idat_chunk()
659 s->row_size = (s->cur_w * s->bits_per_pixel + 7) >> 3; in decode_idat_chunk()
679 …} else if ((s->bits_per_pixel == 1 || s->bits_per_pixel == 2 || s->bits_per_pixel == 4 || s->bits_… in decode_idat_chunk()
[all …]
Dpng.h62 int ff_png_pass_row_size(int pass, int bits_per_pixel, int width);
/third_party/skia/third_party/externals/libjpeg-turbo/
Dwrbmp.c232 int bits_per_pixel, cmap_entries; in write_bmp_header() local
238 bits_per_pixel = 8; in write_bmp_header()
242 bits_per_pixel = 24; in write_bmp_header()
247 bits_per_pixel = 24; in write_bmp_header()
251 bits_per_pixel = 8; in write_bmp_header()
274 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header()
301 int bits_per_pixel, cmap_entries; in write_os2_header() local
307 bits_per_pixel = 8; in write_os2_header()
311 bits_per_pixel = 24; in write_os2_header()
316 bits_per_pixel = 24; in write_os2_header()
[all …]
Drdbmp.c64 int bits_per_pixel; /* remembers 8-, 24-, or 32-bit format */ member
387 switch (source->bits_per_pixel) { in preload_image()
464 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 10); in start_input_bmp()
466 switch (source->bits_per_pixel) { in start_input_bmp()
474 source->bits_per_pixel); in start_input_bmp()
488 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 14); in start_input_bmp()
495 switch (source->bits_per_pixel) { in start_input_bmp()
502 TRACEMS3(cinfo, 1, JTRC_BMP, biWidth, biHeight, source->bits_per_pixel); in start_input_bmp()
560 switch (source->bits_per_pixel) { in start_input_bmp()
619 switch (source->bits_per_pixel) { in start_input_bmp()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Dwrbmp.c234 int bits_per_pixel, cmap_entries; in write_bmp_header() local
240 bits_per_pixel = 8; in write_bmp_header()
244 bits_per_pixel = 24; in write_bmp_header()
249 bits_per_pixel = 24; in write_bmp_header()
253 bits_per_pixel = 8; in write_bmp_header()
276 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header()
303 int bits_per_pixel, cmap_entries; in write_os2_header() local
311 bits_per_pixel = 8; in write_os2_header()
315 bits_per_pixel = 24; in write_os2_header()
320 bits_per_pixel = 24; in write_os2_header()
[all …]
Drdbmp.c74 int bits_per_pixel; /* remembers 8- or 24-bit format */ member
399 switch (source->bits_per_pixel) { in preload_image()
476 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 10); in start_input_bmp()
478 switch (source->bits_per_pixel) { in start_input_bmp()
498 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 14); in start_input_bmp()
505 switch (source->bits_per_pixel) { in start_input_bmp()
567 switch (source->bits_per_pixel) { in start_input_bmp()
622 switch (source->bits_per_pixel) { in start_input_bmp()
/third_party/libjpeg-turbo/
Dwrbmp.c232 int bits_per_pixel, cmap_entries; in write_bmp_header() local
238 bits_per_pixel = 8; in write_bmp_header()
242 bits_per_pixel = 24; in write_bmp_header()
247 bits_per_pixel = 24; in write_bmp_header()
251 bits_per_pixel = 8; in write_bmp_header()
274 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header()
301 int bits_per_pixel, cmap_entries; in write_os2_header() local
307 bits_per_pixel = 8; in write_os2_header()
311 bits_per_pixel = 24; in write_os2_header()
316 bits_per_pixel = 24; in write_os2_header()
[all …]
Drdbmp.c64 int bits_per_pixel; /* remembers 8-, 24-, or 32-bit format */ member
388 switch (source->bits_per_pixel) { in preload_image()
465 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 10); in start_input_bmp()
467 switch (source->bits_per_pixel) { in start_input_bmp()
475 source->bits_per_pixel); in start_input_bmp()
489 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 14); in start_input_bmp()
496 switch (source->bits_per_pixel) { in start_input_bmp()
503 TRACEMS3(cinfo, 1, JTRC_BMP, biWidth, biHeight, source->bits_per_pixel); in start_input_bmp()
561 switch (source->bits_per_pixel) { in start_input_bmp()
620 switch (source->bits_per_pixel) { in start_input_bmp()
/third_party/flutter/skia/third_party/externals/wuffs/internal/cgen/base/
Dimage-public.h454 uint32_t bits_per_pixel = in wuffs_base__pixel_config__pixbuf_len() local
456 if ((bits_per_pixel == 0) || ((bits_per_pixel % 8) != 0)) { in wuffs_base__pixel_config__pixbuf_len()
460 uint64_t bytes_per_pixel = bits_per_pixel / 8; in wuffs_base__pixel_config__pixbuf_len()
946 uint32_t bits_per_pixel = in wuffs_base__pixel_buffer__set_from_slice() local
948 if ((bits_per_pixel == 0) || ((bits_per_pixel % 8) != 0)) { in wuffs_base__pixel_buffer__set_from_slice()
952 uint64_t bytes_per_pixel = bits_per_pixel / 8; in wuffs_base__pixel_buffer__set_from_slice()
1008 uint32_t bits_per_pixel = in wuffs_base__pixel_buffer__set_from_table() local
1010 if ((bits_per_pixel == 0) || ((bits_per_pixel % 8) != 0)) { in wuffs_base__pixel_buffer__set_from_table()
1014 uint64_t bytes_per_pixel = bits_per_pixel / 8; in wuffs_base__pixel_buffer__set_from_table()
/third_party/ffmpeg/libavdevice/
Dfbdev_common.c32 int bits_per_pixel; member
54 if (entry->bits_per_pixel == varinfo->bits_per_pixel && in ff_get_pixfmt_from_fb_varinfo()
Dxcbgrab.c531 if (fmt->bits_per_pixel == 32) in pixfmt_from_pixmap_format()
536 if (fmt->bits_per_pixel == 32) in pixfmt_from_pixmap_format()
539 else if (fmt->bits_per_pixel == 24) in pixfmt_from_pixmap_format()
544 if (fmt->bits_per_pixel == 16) in pixfmt_from_pixmap_format()
549 if (fmt->bits_per_pixel == 16) in pixfmt_from_pixmap_format()
554 if (fmt->bits_per_pixel == 8) in pixfmt_from_pixmap_format()
561 *bpp = fmt->bits_per_pixel; in pixfmt_from_pixmap_format()
Dfbdev_dec.c118 fbdev->bytes_per_pixel = (fbdev->varinfo.bits_per_pixel + 7) >> 3; in fbdev_read_header()
140 fbdev->width, fbdev->height, fbdev->varinfo.bits_per_pixel, in fbdev_read_header()
/third_party/flutter/skia/third_party/externals/wuffs/test/c/testlib/
Dtestlib.c420 uint32_t bits_per_pixel = wuffs_base__pixel_format__bits_per_pixel(pixfmt); in copy_to_io_buffer_from_pixel_buffer() local
421 if (bits_per_pixel == 0) { in copy_to_io_buffer_from_pixel_buffer()
423 } else if ((bits_per_pixel % 8) != 0) { in copy_to_io_buffer_from_pixel_buffer()
426 size_t bytes_per_pixel = bits_per_pixel / 8; in copy_to_io_buffer_from_pixel_buffer()
/third_party/mesa3d/src/glx/
Ddrisw_glx.c115 if (pdp->ximage->bits_per_pixel == 24) in XCreateDrawable()
116 pdp->ximage->bits_per_pixel = 32; in XCreateDrawable()
199 ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastXPutImage()
202 ximage->width = ximage->bytes_per_line / ((ximage->bits_per_pixel + 7)/ 8); in swrastXPutImage()
293 ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastGetImage2()
332 ximage->bytes_per_line = bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastGetImageShm2()
/third_party/skia/third_party/externals/libwebp/src/dsp/
Dlossless.c345 const int bits_per_pixel = 8 >> transform->bits_; \
348 if (bits_per_pixel < 8) { \
351 const uint32_t bit_mask = (1 << bits_per_pixel) - 1; \
362 packed_pixels >>= bits_per_pixel; \
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
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; \
/third_party/gstreamer/gstplugins_bad/sys/fbdev/
Dgstfbdevsink.c139 bpp = fbdevsink->varinfo.bits_per_pixel; in gst_fbdevsink_getcaps()
153 switch (fbdevsink->varinfo.bits_per_pixel) { in gst_fbdevsink_getcaps()
/third_party/flutter/skia/tools/sk_app/unix/
DRasterWindowContext_unix.cpp81 image.bits_per_pixel = bitsPerPixel; in swapBuffers()
/third_party/gstreamer/gstplugins_good/ext/vpx/
Dgstvpxenc.h108 gfloat bits_per_pixel; member
/third_party/skia/tools/sk_app/unix/
DRasterWindowContext_unix.cpp81 image.bits_per_pixel = bitsPerPixel; in swapBuffers()
/third_party/mesa3d/src/gallium/frontends/glx/xlib/
Dxm_api.c300 bits_per_pixel( XMesaVisual xmv ) in bits_per_pixel() function
316 bitsPerPixel = img->bits_per_pixel; in bits_per_pixel()
651 v->BitsPerPixel = bits_per_pixel(v); in initialize_visual_and_buffer()
1521 byte_width = w * ((img->bits_per_pixel + 7) / 8); in XMesaBindTexImage()

12