Home
last modified time | relevance | path

Searched refs:bytes_per_pixel (Results 1 – 25 of 38) sorted by relevance

12

/external/ImageMagick/coders/
Dsgi.c78 bytes_per_pixel; member
167 static MagickBooleanType SGIDecode(const size_t bytes_per_pixel, in SGIDecode() argument
183 if (bytes_per_pixel == 2) in SGIDecode()
285 bytes_per_pixel, in ReadSGIImage() local
333 iris_info.bytes_per_pixel=(unsigned char) ReadBlobByte(image); in ReadSGIImage()
334 if ((iris_info.bytes_per_pixel == 0) || (iris_info.bytes_per_pixel > 2)) in ReadSGIImage()
366 image->depth=(size_t) MagickMin((size_t) 8*iris_info.bytes_per_pixel, in ReadSGIImage()
371 image->colors=(size_t) (iris_info.bytes_per_pixel > 1 ? 65535 : 256); in ReadSGIImage()
386 bytes_per_pixel=(size_t) iris_info.bytes_per_pixel; in ReadSGIImage()
388 if ((4*bytes_per_pixel*number_pixels) != ((MagickSizeType) (size_t) in ReadSGIImage()
[all …]
Dviff.c239 bytes_per_pixel, in ReadVIFFImage() local
410 case VFF_MAPTYP_1_BYTE: bytes_per_pixel=1; break; in ReadVIFFImage()
411 case VFF_MAPTYP_2_BYTE: bytes_per_pixel=2; break; in ReadVIFFImage()
412 case VFF_MAPTYP_4_BYTE: bytes_per_pixel=4; break; in ReadVIFFImage()
413 case VFF_MAPTYP_FLOAT: bytes_per_pixel=4; break; in ReadVIFFImage()
414 case VFF_MAPTYP_DOUBLE: bytes_per_pixel=8; break; in ReadVIFFImage()
415 default: bytes_per_pixel=1; break; in ReadVIFFImage()
425 (viff_info.map_rows*bytes_per_pixel*sizeof(*viff_colormap))) in ReadVIFFImage()
428 viff_info.map_rows*bytes_per_pixel*sizeof(*viff_colormap)); in ReadVIFFImage()
434 count=ReadBlob(image,bytes_per_pixel*image->colors*viff_info.map_rows, in ReadVIFFImage()
[all …]
Dsun.c573 bytes_per_pixel; in ReadSUNImage() local
575 bytes_per_pixel=3; in ReadSUNImage()
577 bytes_per_pixel++; in ReadSUNImage()
579 bytes_per_line=bytes_per_pixel*image->columns; in ReadSUNImage()
612 if (((bytes_per_pixel*image->columns) % 2) != 0) in ReadSUNImage()
899 bytes_per_pixel, in WriteSUNImage() local
908 bytes_per_pixel=3; in WriteSUNImage()
910 bytes_per_pixel++; in WriteSUNImage()
933 if (((bytes_per_pixel*image->columns) & 0x01) != 0) in WriteSUNImage()
Ddcm.c2705 bytes_per_pixel, member
2871 if (info->bytes_per_pixel == 1) in ReadDCMPixels()
2946 if (info->bytes_per_pixel == 1) in ReadDCMPixels()
3128 info.bytes_per_pixel=1; in ReadDCMImage()
3489 info.bytes_per_pixel=1; in ReadDCMImage()
3491 info.bytes_per_pixel=2; in ReadDCMImage()
3505 info.bytes_per_pixel=1; in ReadDCMImage()
3507 info.bytes_per_pixel=2; in ReadDCMImage()
3576 colors=(size_t) (length/info.bytes_per_pixel); in ReadDCMImage()
3587 if (info.bytes_per_pixel == 1) in ReadDCMImage()
[all …]
Dxcf.c120 bytes_per_pixel; member
523 bytes_per_pixel, in load_tile_rle() local
534 bytes_per_pixel=(ssize_t) inDocInfo->bytes_per_pixel; in load_tile_rle()
543 for (i=0; i < bytes_per_pixel; i++) in load_tile_rle()
834 inDocInfo->bytes_per_pixel=ReadBlobMSBLong(image); in load_hierarchy()
Dpict.c415 bytes_per_pixel, in DecodeImage() local
437 bytes_per_pixel=1; in DecodeImage()
440 bytes_per_pixel=2; in DecodeImage()
522 number_pixels=length*bytes_per_pixel; in DecodeImage()
528 j+=(ssize_t) (length*bytes_per_pixel+1); in DecodeImage()
533 number_pixels=bytes_per_pixel; in DecodeImage()
542 j+=(ssize_t) bytes_per_pixel+1; in DecodeImage()
/external/crosvm/gpu_buffer/src/
Dlib.rs170 pub fn bytes_per_pixel(&self, plane: usize) -> Option<usize> { in bytes_per_pixel() method
497 let bytes_per_pixel = self in map() localVariable
499 .bytes_per_pixel(plane) in map()
538 let x_offset_bytes = checked_arithmetic!(x * bytes_per_pixel)?; in map()
573 let bytes_per_pixel = match self.format().bytes_per_pixel(plane) { in read_to_volatile() localVariable
577 let line_copy_size = checked_arithmetic!(width * bytes_per_pixel)?; in read_to_volatile()
647 let bytes_per_pixel = self.format().bytes_per_pixel(plane).unwrap_or(0) as u64; in write_from_sg() localVariable
648 let line_copy_size = checked_arithmetic!(width * bytes_per_pixel)?; in write_from_sg()
752 assert_eq!(f.bytes_per_pixel(0), Some(4)); in format_bytes_per_pixel()
753 assert_eq!(f.bytes_per_pixel(1), None); in format_bytes_per_pixel()
[all …]
/external/minigbm/
Dtegra.c105 uint32_t bytes_per_pixel, uint32_t gob_top, uint32_t gob_left, in transfer_tile() argument
123 tiled += bytes_per_pixel; in transfer_tile()
127 tmp = untiled + y * bo->meta.strides[0] + x * bytes_per_pixel; in transfer_tile()
130 memcpy(tmp, tiled, bytes_per_pixel); in transfer_tile()
132 memcpy(tiled, tmp, bytes_per_pixel); in transfer_tile()
135 tiled += bytes_per_pixel; in transfer_tile()
146 uint32_t bytes_per_pixel = drv_stride_from_format(bo->meta.format, 1, 0); in transfer_tiled_memory() local
152 gob_width = DIV_ROUND_UP(NV_BLOCKLINEAR_GOB_WIDTH, bytes_per_pixel); in transfer_tiled_memory()
173 transfer_tile(bo, tmp, untiled, type, bytes_per_pixel, gob_top, gob_left, in transfer_tiled_memory()
Dhelpers.c25 int bytes_per_pixel[DRV_MAX_PLANES]; member
34 .bytes_per_pixel = { 1 }
41 .bytes_per_pixel = { 2 }
48 .bytes_per_pixel = { 3 }
55 .bytes_per_pixel = { 4 }
62 .bytes_per_pixel = { 8 }
69 .bytes_per_pixel = { 1, 2 }
76 .bytes_per_pixel = { 1, 1, 1 }
83 .bytes_per_pixel = { 2, 4 }
222 return layout->bytes_per_pixel[plane]; in drv_bytes_per_pixel_from_format()
[all …]
Damdgpu.c206 uint32_t bytes_per_pixel = drv_bytes_per_pixel_from_format(format, 0); in amdgpu_create_bo() local
207 width = ALIGN(width, 256 / bytes_per_pixel); in amdgpu_create_bo()
/external/webrtc/webrtc/modules/desktop_capture/
Ddiffer.h31 Differ(int width, int height, int bytes_per_pixel, int stride);
36 int bytes_per_pixel() { return bytes_per_pixel_; } in bytes_per_pixel() function
/external/mesa3d/src/mesa/state_tracker/
Dst_pbo.c71 … unsigned ofs = (buf_offset * addr->bytes_per_pixel) % st->ctx->Const.TextureBufferOffsetAlignment; in st_pbo_addresses_setup()
73 if (ofs % addr->bytes_per_pixel != 0) in st_pbo_addresses_setup()
76 skip_pixels = ofs / addr->bytes_per_pixel; in st_pbo_addresses_setup()
94 assert((addr->last_element + 1) * addr->bytes_per_pixel <= buf->width0); in st_pbo_addresses_setup()
121 if (buf_offset % addr->bytes_per_pixel) in st_pbo_addresses_pixelstore()
125 buf_offset = buf_offset / addr->bytes_per_pixel; in st_pbo_addresses_pixelstore()
138 unsigned bytes_per_row = pixels_per_row * addr->bytes_per_pixel; in st_pbo_addresses_pixelstore()
145 if (bytes_per_row % addr->bytes_per_pixel) in st_pbo_addresses_pixelstore()
148 addr->pixels_per_row = bytes_per_row / addr->bytes_per_pixel; in st_pbo_addresses_pixelstore()
Dst_pbo.h38 unsigned bytes_per_pixel; member
Dst_cb_readpixels.c124 addr.bytes_per_pixel = desc->block.bits / 8; in try_pbo_readpixels()
205 image.u.buf.offset = addr.first_element * addr.bytes_per_pixel; in try_pbo_readpixels()
207 addr.bytes_per_pixel; in try_pbo_readpixels()
Dst_cb_texture.c1306 templ.u.buf.offset = addr->first_element * addr->bytes_per_pixel; in try_pbo_upload_common()
1308 addr->bytes_per_pixel; in try_pbo_upload_common()
1442 addr.bytes_per_pixel = desc->block.bits / 8; in try_pbo_upload()
1824 addr.bytes_per_pixel = util_format_get_blocksize(dst->format); in st_CompressedTexSubImage()
1828 switch (addr.bytes_per_pixel) { in st_CompressedTexSubImage()
1853 assert(store.CopyBytesPerRow % addr.bytes_per_pixel == 0); in st_CompressedTexSubImage()
1854 assert(store.SkipBytes % addr.bytes_per_pixel == 0); in st_CompressedTexSubImage()
1859 if (buf_offset % addr.bytes_per_pixel) { in st_CompressedTexSubImage()
1863 buf_offset = buf_offset / addr.bytes_per_pixel; in st_CompressedTexSubImage()
1867 addr.width = store.CopyBytesPerRow / addr.bytes_per_pixel; in st_CompressedTexSubImage()
[all …]
/external/autotest/client/site_tests/graphics_Gbm/src/
Dgbmtest.c604 const int bytes_per_pixel = 4; in test_import_vgem() local
605 const int size = width * height * bytes_per_pixel; in test_import_vgem()
617 fd_data.stride = width * bytes_per_pixel; in test_import_vgem()
938 uint32_t x, y, p, w, h, b, planes, bytes_per_pixel, pixel_data_mask, idx; in test_gem_map_format() local
965 bytes_per_pixel = format_info_list[format_index].planes[p].bits_per_pixel / 8; in test_gem_map_format()
968 idx = y * stride + x * bytes_per_pixel; in test_gem_map_format()
969 for (b = 0; b < bytes_per_pixel; ++b) in test_gem_map_format()
990 bytes_per_pixel = format_info_list[format_index].planes[p].bits_per_pixel / 8; in test_gem_map_format()
994 idx = y * stride + x * bytes_per_pixel; in test_gem_map_format()
995 for (b = 0; b < bytes_per_pixel; ++b) { in test_gem_map_format()
/external/mesa3d/src/panfrost/lib/
Dpan_texture.c85 unsigned bytes_per_pixel) in panfrost_needs_explicit_stride() argument
89 unsigned expected = u_minify(width, l) * bytes_per_pixel; in panfrost_needs_explicit_stride()
386 unsigned bytes_per_pixel = util_format_get_blocksize(format); in panfrost_new_texture() local
390 first_level, last_level, bytes_per_pixel); in panfrost_new_texture()
/external/igt-gpu-tools/tools/
Dskl_ddb_allocation.c117 uint8_t bytes_per_pixel; member
211 return p->horiz_pixels * p->vert_pixels * p->bytes_per_pixel; in skl_plane_relative_data_rate()
416 in->params[pipe].plane[plane].bytes_per_pixel = bpp; in wm_enable_plane()
/external/libpng/
Dexample.c962 if (height > PNG_SIZE_MAX / (width * bytes_per_pixel))
965 png_byte image[height * width * bytes_per_pixel];
973 row_pointers[k] = image + k * width * bytes_per_pixel;
Dpngwrite.c640 int bytes_per_pixel; in png_do_write_intrapixel() local
648 bytes_per_pixel = 3; in png_do_write_intrapixel()
651 bytes_per_pixel = 4; in png_do_write_intrapixel()
656 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) in png_do_write_intrapixel()
670 bytes_per_pixel = 6; in png_do_write_intrapixel()
673 bytes_per_pixel = 8; in png_do_write_intrapixel()
678 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) in png_do_write_intrapixel()
/external/minigbm/cros_gralloc/
Dcros_gralloc_driver.cc125 uint32_t bytes_per_pixel; in allocate() local
217 bytes_per_pixel = drv_bytes_per_pixel_from_format(hnd->format, 0); in allocate()
218 hnd->pixel_stride = DIV_ROUND_UP(hnd->strides[0], bytes_per_pixel); in allocate()
/external/mesa3d/src/mesa/main/
Dimage.c173 GLintptr bytes_per_pixel, bytes_per_row, remainder, bytes_per_image; in _mesa_image_offset() local
176 bytes_per_pixel = _mesa_bytes_per_pixel( format, type ); in _mesa_image_offset()
179 assert(bytes_per_pixel > 0); in _mesa_image_offset()
181 bytes_per_row = pixels_per_row * bytes_per_pixel; in _mesa_image_offset()
203 + (skippixels + column) * bytes_per_pixel; in _mesa_image_offset()
/external/pdfium/third_party/libpng16/
Dpngwrite.c640 int bytes_per_pixel; in png_do_write_intrapixel() local
648 bytes_per_pixel = 3; in png_do_write_intrapixel()
651 bytes_per_pixel = 4; in png_do_write_intrapixel()
656 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) in png_do_write_intrapixel()
670 bytes_per_pixel = 6; in png_do_write_intrapixel()
673 bytes_per_pixel = 8; in png_do_write_intrapixel()
678 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) in png_do_write_intrapixel()
/external/mesa3d/src/gallium/drivers/panfrost/
Dpan_resource.c289 unsigned bytes_per_pixel = util_format_get_blocksize(pres->internal_format); in panfrost_setup_slices() local
348 unsigned stride = bytes_per_pixel * effective_width; in panfrost_setup_slices()
796 int bytes_per_pixel = util_format_get_blocksize(rsrc->internal_format); in panfrost_ptr_map() local
919 transfer->base.stride = box->width * bytes_per_pixel; in panfrost_ptr_map()
964 + transfer->base.box.x * bytes_per_pixel; in panfrost_ptr_map()
/external/mesa3d/src/egl/drivers/dri2/
Dplatform_x11.c82 dri2_surf->bytes_per_pixel = 4; in swrastCreateDrawable()
85 dri2_surf->bytes_per_pixel = 2; in swrastCreateDrawable()
88 dri2_surf->bytes_per_pixel = 1; in swrastCreateDrawable()
91 dri2_surf->bytes_per_pixel = 0; in swrastCreateDrawable()
171 w*h*dri2_surf->bytes_per_pixel, (const uint8_t *)data); in swrastPutImage()

12