/external/tensorflow/tensorflow/lite/delegates/gpu/metal/ |
D | common.mm | 137 const int pixel_size = PixelFormatToSizeInBytes(texture.pixelFormat); 139 length:pixel_size * texture.width * texture.height 148 sourceBytesPerRow:pixel_size * texture.width 149 sourceBytesPerImage:pixel_size * texture.width * texture.height 162 const int pixel_size = PixelFormatToSizeInBytes(texture.pixelFormat); 163 const int buffer_size = pixel_size * texture.width * texture.height; 178 destinationBytesPerRow:pixel_size * texture.width 179 destinationBytesPerImage:pixel_size * texture.width * texture.height]; 188 const int pixel_size = PixelFormatToSizeInBytes(texture.pixelFormat); 191 length:pixel_size * texture.width * texture.height * texture.depth [all …]
|
D | texture2d.h | 85 const int pixel_size = PixelFormatToSizeInBytes(pixel_format_); in WriteData() local 86 if (width_ * height_ * pixel_size != data.size() * sizeof(T)) { in WriteData() 99 const int pixel_size = PixelFormatToSizeInBytes(pixel_format_); in ReadData() local 100 if (pixel_size % sizeof(T) != 0) { in ReadData() 103 result->resize(width_ * height_ * (pixel_size / sizeof(T))); in ReadData()
|
/external/igt-gpu-tools/lib/ |
D | igt_draw.c | 201 int pixel_size = bpp / 8; in linear_x_y_to_xtiled_pos() local 203 x *= pixel_size; in linear_x_y_to_xtiled_pos() 206 return pos / pixel_size; in linear_x_y_to_xtiled_pos() 214 int pixel_size = bpp / 8; in linear_x_y_to_ytiled_pos() local 219 x *= pixel_size; in linear_x_y_to_ytiled_pos() 224 return pos / pixel_size; in linear_x_y_to_ytiled_pos() 230 int pixel_size = bpp / 8; in xtiled_pos_to_x_y_linear() local 235 *x /= pixel_size; in xtiled_pos_to_x_y_linear() 243 int pixel_size = bpp / 8; in ytiled_pos_to_x_y_linear() local 251 *x /= pixel_size; in ytiled_pos_to_x_y_linear() [all …]
|
D | gem.h | 68 uint32_t pixel_size; member
|
D | gem.c | 106 .pitches = { fb_config->width * fb_config->pixel_size, 0, 0, 0 }, in drm_fb_for_gem_handle()
|
/external/deqp/external/openglcts/modules/glesext/geometry_shader/ |
D | esextcGeometryShaderOutput.cpp | 503 unsigned int height, unsigned int pixel_size) const in verifyResult() 510 if (false == comparePixel(result_image, x, y, width, height, pixel_size)) in verifyResult() 551 unsigned int height, unsigned int pixel_size) const in verifyResult() 560 …if ((true == comparePixel(result_image, left, bottom, width, height, pixel_size, 255, 255, 255, 25… in verifyResult() 561 (true == comparePixel(result_image, left, top, width, height, pixel_size, 255, 255, 255, 255)) && in verifyResult() 562 (true == comparePixel(result_image, right, top, width, height, pixel_size, 255, 255, 255, 255)) && in verifyResult() 563 (true == comparePixel(result_image, right, bottom, width, height, pixel_size, 0, 0, 0, 0))) in verifyResult() 618 unsigned int pixel_size) const in verifyResult() 627 …if ((true == comparePixel(result_image, left, bottom, width, height, pixel_size, 255, 255, 255, 25… in verifyResult() 628 (true == comparePixel(result_image, left, top, width, height, pixel_size, 0, 0, 0, 0)) && in verifyResult() [all …]
|
D | esextcGeometryShaderOutput.hpp | 124 unsigned int pixel_size) const = 0; 191 unsigned int pixel_size) const; 224 unsigned int pixel_size) const; 263 unsigned int pixel_size) const;
|
D | esextcGeometryShaderLayeredFramebuffer.cpp | 327 const unsigned int pixel_size = N_TEXTURE_COMPONENTS; in iterate() local 328 const unsigned char* ref_row = ref_buffer + y * pixel_size; in iterate() 329 const unsigned char* row = buffer + y * pixel_size; in iterate() 335 const unsigned char* data = row + x * pixel_size; in iterate() 336 const unsigned char* ref_data = ref_row + x * pixel_size; in iterate() 580 int pixel_size = 0; in iterate() local 596 pixel_size = N_TEXTURE_COMPONENTS; in iterate() 612 pixel_size = N_TEXTURE_COMPONENTS * sizeof(int); in iterate() 628 pixel_size = N_TEXTURE_COMPONENTS * sizeof(unsigned int); in iterate() 719 const int row_size = TEXTURE_WIDTH * pixel_size; in iterate() [all …]
|
D | esextcGeometryShaderRendering.cpp | 5732 const int pixel_size = 4 /* components */; in verify() local 5733 const int row_width = single_rt_width * pixel_size; in verify() 5735 data + row_width * ref_sample_xy_int[1] + ref_sample_xy_int[0] * pixel_size; in verify() 5802 const int pixel_size = 4 /* components */; in verify() local 5803 const int row_width = single_rt_width * pixel_size; in verify() 5804 const unsigned char* rendered_data = data + row_width * position[1] + position[0] * pixel_size; in verify() 6169 const unsigned int pixel_size = 4 /* components */; in verify() local 6170 const unsigned int row_width = single_rt_width * pixel_size; in verify() 6172 data + row_width * sample_location_int[1] + sample_location_int[0] * pixel_size; in verify()
|
/external/libjpeg-turbo/ |
D | rdtarga.c | 59 int pixel_size; /* Bytes per Targa pixel (1 to 4) */ member 123 for (i = 0; i < sinfo->pixel_size; i++) { in read_non_rle_pixel() 153 for (i = 0; i < sinfo->pixel_size; i++) { in read_rle_pixel() 354 source->pixel_size = UCH(targaheader[16]) >> 3; in start_input_tga() 361 source->pixel_size < 1 || source->pixel_size > 4 || in start_input_tga() 388 if (source->pixel_size == 1 && cmaptype == 1) in start_input_tga() 395 switch (source->pixel_size) { in start_input_tga() 414 if (source->pixel_size == 1) in start_input_tga()
|
/external/libgav1/libgav1/src/ |
D | tile_scratch_buffer.h | 38 const int pixel_size = (bitdepth == 8) ? 1 : 2; in Init() local 42 const int pixel_size = 1; in Init() 49 unaligned_convolve_buffer_stride * pixel_size, kMaxAlignment); in Init()
|
/external/autotest/client/site_tests/graphics_Gbm/src/ |
D | gbmtest.c | 729 uint32_t *pixel, pixel_size; in test_gem_map() local 751 pixel_size = sizeof(*pixel); in test_gem_map() 753 pixel[(height / 2) * (stride / pixel_size) + width / 2] = 0xABBAABBA; in test_gem_map() 768 CHECK(pixel[(height / 2) * (stride / pixel_size) + width / 2] == 0xABBAABBA); in test_gem_map() 786 uint32_t pixel_size, stride, stride_pixels, length; in test_dmabuf_map() local 803 pixel_size = sizeof(*pixel); in test_dmabuf_map() 804 stride_pixels = stride / pixel_size; in test_dmabuf_map() 874 uint32_t *pixel, pixel_size; in test_gem_map_tiling() local 897 pixel_size = sizeof(*pixel); in test_gem_map_tiling() 898 stride_pixels = stride / pixel_size; in test_gem_map_tiling() [all …]
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cStencilTexturingTests.cpp | 818 GLuint pixel_size = 0; in prepareDestinationTexture() local 829 pixel_size = 1; in prepareDestinationTexture() 836 pixel_size = 4; in prepareDestinationTexture() 841 texture_size = pixel_size * n_pixels; in prepareDestinationTexture() 1013 GLuint pixel_size = 0; in prepareSourceTextureData() local 1021 pixel_size = 4; in prepareSourceTextureData() 1024 pixel_size = 8; in prepareSourceTextureData() 1031 line_size = pixel_size * m_width; in prepareSourceTextureData() 1032 texture_size = pixel_size * n_pixels; in prepareSourceTextureData() 1049 const GLuint pixel_offset = pixel_size * x; in prepareSourceTextureData() [all …]
|
D | gl4cCopyImageTests.cpp | 495 …const GLuint pixel_size = (left_pixel_size >= right_pixel_size) ? left_pixel_size : right_pixel_si… in comparePixels() local 497 return 0 == memcmp(left_pixel_data, right_pixel_data, pixel_size); in comparePixels() 1096 const GLuint pixel_size = Utils::getPixelSizeForFormat(internal_format); in getPixelString() local 1101 for (GLint i = pixel_size - 1; i >= 0; --i) in getPixelString() 3090 const GLuint pixel_size = Utils::getPixelSizeForFormat(desc.m_internal_format); in prepareDstPxls() local 3109 const GLuint req_memory_per_layer = pixel_size * widths[i] * heights[i]; in prepareDstPxls() 3131 GLubyte* pixel_data = ptr + j * pixel_size; in prepareDstPxls() 3150 const GLuint pixel_size = Utils::getPixelSizeForFormat(desc.m_internal_format); in prepareSrcPxls() local 3169 const GLuint req_memory_per_layer = pixel_size * widths[i] * heights[i]; in prepareSrcPxls() 3185 const GLuint line_size = pixel_size * widths[lvl]; in prepareSrcPxls() [all …]
|
/external/OpenCL-CTS/test_conformance/images/clFillImage/ |
D | test_fill_generic.cpp | 482 size_t pixel_size = get_pixel_size( imageInfo->format ); in test_fill_image_generic() local 485 … if ( memcmp( sourcePtr + pixel_size * where, destPtr + pixel_size * where, pixel_size) ) in test_fill_image_generic() 489 where, sourcePtr + pixel_size * where, in test_fill_image_generic() 490 destPtr + pixel_size * where, imageInfo, y, thirdDim); in test_fill_image_generic()
|
/external/pdfium/third_party/libtiff/ |
D | tif_luv.c | 162 int pixel_size; /* bytes per pixel */ member 199 npixels = occ / sp->pixel_size; in LogL16Decode() 272 npixels = occ / sp->pixel_size; in LogLuvDecode24() 333 npixels = occ / sp->pixel_size; in LogLuvDecode32() 452 npixels = cc / sp->pixel_size; in LogL16Encode() 546 npixels = cc / sp->pixel_size; in LogLuvEncode24() 604 npixels = cc / sp->pixel_size; in LogLuvEncode32() 1301 sp->pixel_size = sizeof (float); in LogL16InitState() 1304 sp->pixel_size = sizeof (int16); in LogL16InitState() 1307 sp->pixel_size = sizeof (uint8); in LogL16InitState() [all …]
|
/external/OpenCL-CTS/test_conformance/images/clCopyImage/ |
D | test_copy_generic.cpp | 551 size_t pixel_size = get_pixel_size( dstImageInfo->format ); in test_copy_image_generic() local 554 … if( memcmp( sourcePtr + pixel_size * where, destPtr + pixel_size * where, pixel_size) ) in test_copy_image_generic() 558 where, sourcePtr + pixel_size * where, in test_copy_image_generic() 559 destPtr + pixel_size * where, dstImageInfo, y, in test_copy_image_generic()
|
/external/libgav1/libgav1/examples/ |
D | file_writer.cc | 133 const size_t pixel_size = in WriteFrame() local 143 if (fwrite(row_pointer, pixel_size, width, file_) != in WriteFrame()
|
/external/minigbm/ |
D | rockchip.c | 36 const uint32_t pixel_size = 4; in afbc_bo_from_format() local 51 const uint32_t body_block_size = block_width * block_height * pixel_size; in afbc_bo_from_format() 66 bo->meta.strides[0] = width_in_blocks * block_width * pixel_size; in afbc_bo_from_format()
|
/external/igt-gpu-tools/tests/ |
D | ion_fb.c | 10 return config->width * config->height * config->pixel_size; in size_for_fb() 206 .pixel_size = 4
|
/external/mesa3d/src/gallium/drivers/svga/include/ |
D | svga3d_surfacedefs.h | 967 const SVGA3dSize *pixel_size, in svga3dsurface_get_size_in_blocks() argument 970 block_size->width = DIV_ROUND_UP(pixel_size->width, in svga3dsurface_get_size_in_blocks() 972 block_size->height = DIV_ROUND_UP(pixel_size->height, in svga3dsurface_get_size_in_blocks() 974 block_size->depth = DIV_ROUND_UP(pixel_size->depth, in svga3dsurface_get_size_in_blocks()
|
/external/deqp/external/openglcts/modules/common/ |
D | glcRobustnessTests.cpp | 574 static const GLuint pixel_size = 4 * sizeof(GLuint); in verifyResults() local 579 const GLint bufSizeValid = width * height * pixel_size; in verifyResults() 588 const size_t offset = i * pixel_size; in verifyResults() 600 const GLint bufSizeInvalid = width * height * pixel_size - 1; in verifyResults()
|
/external/deqp/external/openglcts/modules/glesext/ |
D | esextcTestCaseBase.cpp | 697 unsigned int height, unsigned int pixel_size, unsigned char expected_red, in comparePixel() argument 701 const unsigned int line_size = width * pixel_size; in comparePixel() 703 const unsigned int texel_offset = y * line_size + x * pixel_size; in comparePixel() 718 switch (pixel_size) in comparePixel()
|
/external/mesa3d/src/gallium/frontends/clover/api/ |
D | transfer.cpp | 593 auto dst_pitch = pitch(region, {{ img.pixel_size(), in clEnqueueReadImage() 596 auto src_pitch = pitch(region, {{ img.pixel_size(), in clEnqueueReadImage() 631 auto dst_pitch = pitch(region, {{ img.pixel_size(), in clEnqueueWriteImage() 633 auto src_pitch = pitch(region, {{ img.pixel_size(), in clEnqueueWriteImage() 734 auto dst_pitch = pitch(region, {{ src_img.pixel_size() }}); in clEnqueueCopyImageToBuffer() 736 auto src_pitch = pitch(region, {{ src_img.pixel_size(), in clEnqueueCopyImageToBuffer() 770 auto dst_pitch = pitch(region, {{ dst_img.pixel_size(), in clEnqueueCopyBufferToImage() 774 auto src_pitch = pitch(region, {{ dst_img.pixel_size() }}); in clEnqueueCopyBufferToImage()
|
/external/deqp/external/openglcts/modules/glesext/tessellation_shader/ |
D | esextcTessellationShaderPoints.cpp | 557 const unsigned int pixel_size = 4; /* components, GL_UNSIGNED_BYTE */ in iterate() local 566 const unsigned int row_size = pixel_size * m_rt_width; in iterate() 579 const unsigned char* rendered_color_ubyte_ptr = buffer + row_size * y + x * pixel_size; in iterate()
|