Home
last modified time | relevance | path

Searched refs:pixel_size (Results 1 – 25 of 43) sorted by relevance

12

/external/OpenCL-CTS/test_conformance/images/clFillImage/
Dtest_fill_generic.cpp494 size_t pixel_size = get_pixel_size( imageInfo->format ); in test_fill_image_generic() local
497 … if ( memcmp( sourcePtr + pixel_size * where, destPtr + pixel_size * where, pixel_size) ) in test_fill_image_generic()
500 switch ( pixel_size ) in test_fill_image_generic()
503 …%2.2x vs. 0x%2.2x\n", ((cl_uchar*)(sourcePtr + pixel_size * where))[0], ((cl_uchar*)(destPtr + pix… in test_fill_image_generic()
506 …4.4x vs. 0x%4.4x\n", ((cl_ushort*)(sourcePtr + pixel_size * where))[0], ((cl_ushort*)(destPtr + pi… in test_fill_image_generic()
510 …_uchar*)(sourcePtr + pixel_size * where))[0], ((cl_uchar*)(sourcePtr + pixel_size * where))[1], ((… in test_fill_image_generic()
511 …((cl_uchar*)(destPtr + pixel_size * where))[0], ((cl_uchar*)(destPtr + pixel_size * where))[1], ((… in test_fill_image_generic()
515 …0x%8.8x vs. 0x%8.8x\n", ((cl_uint*)(sourcePtr + pixel_size * where))[0], ((cl_uint*)(destPtr + pix… in test_fill_image_generic()
519 …short*)(sourcePtr + pixel_size * where))[0], ((cl_ushort*)(sourcePtr + pixel_size * where))[1], ((… in test_fill_image_generic()
520 …cl_ushort*)(destPtr + pixel_size * where))[0], ((cl_ushort*)(destPtr + pixel_size * where))[1], ((… in test_fill_image_generic()
[all …]
/external/OpenCL-CTS/test_conformance/images/clCopyImage/
Dtest_copy_generic.cpp574 size_t pixel_size = get_pixel_size( dstImageInfo->format ); in test_copy_image_generic() local
577 … if( memcmp( sourcePtr + pixel_size * where, destPtr + pixel_size * where, pixel_size) ) in test_copy_image_generic()
580 switch( pixel_size ) in test_copy_image_generic()
583 …%2.2x vs. 0x%2.2x\n", ((cl_uchar*)(sourcePtr + pixel_size * where))[0], ((cl_uchar*)(destPtr + pix… in test_copy_image_generic()
586 …4.4x vs. 0x%4.4x\n", ((cl_ushort*)(sourcePtr + pixel_size * where))[0], ((cl_ushort*)(destPtr + pi… in test_copy_image_generic()
590 …_uchar*)(sourcePtr + pixel_size * where))[0], ((cl_uchar*)(sourcePtr + pixel_size * where))[1], ((… in test_copy_image_generic()
591 …((cl_uchar*)(destPtr + pixel_size * where))[0], ((cl_uchar*)(destPtr + pixel_size * where))[1], ((… in test_copy_image_generic()
595 …0x%8.8x vs. 0x%8.8x\n", ((cl_uint*)(sourcePtr + pixel_size * where))[0], ((cl_uint*)(destPtr + pix… in test_copy_image_generic()
599 …short*)(sourcePtr + pixel_size * where))[0], ((cl_ushort*)(sourcePtr + pixel_size * where))[1], ((… in test_copy_image_generic()
600 …cl_ushort*)(destPtr + pixel_size * where))[0], ((cl_ushort*)(destPtr + pixel_size * where))[1], ((… in test_copy_image_generic()
[all …]
/external/igt-gpu-tools/lib/
Digt_draw.c201 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 …]
Dgem.h68 uint32_t pixel_size; member
Dgem.c106 .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/
DesextcGeometryShaderOutput.cpp503 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 …]
DesextcGeometryShaderOutput.hpp124 unsigned int pixel_size) const = 0;
191 unsigned int pixel_size) const;
224 unsigned int pixel_size) const;
263 unsigned int pixel_size) const;
DesextcGeometryShaderLayeredFramebuffer.cpp327 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()
581 int pixel_size = 0; in iterate() local
597 pixel_size = N_TEXTURE_COMPONENTS; in iterate()
613 pixel_size = N_TEXTURE_COMPONENTS * sizeof(int); in iterate()
629 pixel_size = N_TEXTURE_COMPONENTS * sizeof(unsigned int); in iterate()
720 const int row_size = TEXTURE_WIDTH * pixel_size; in iterate()
[all …]
/external/libjpeg-turbo/
Drdtarga.c69 int pixel_size; /* Bytes per Targa pixel (1 to 4) */ member
133 for (i = 0; i < sinfo->pixel_size; i++) { in read_non_rle_pixel()
163 for (i = 0; i < sinfo->pixel_size; i++) { in read_rle_pixel()
363 source->pixel_size = UCH(targaheader[16]) >> 3; in start_input_tga()
370 source->pixel_size < 1 || source->pixel_size > 4 || in start_input_tga()
392 if (source->pixel_size == 1 && cmaptype == 1) in start_input_tga()
399 switch (source->pixel_size) { in start_input_tga()
418 if (source->pixel_size == 1) in start_input_tga()
/external/libgav1/libgav1/src/
Dtile_scratch_buffer.h38 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/
Dgbmtest.c729 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/
Dgl4cStencilTexturingTests.cpp818 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 …]
Dgl4cCopyImageTests.cpp495 …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/pdfium/third_party/libtiff/
Dtif_luv.c162 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/libgav1/libgav1/examples/
Dfile_writer.cc133 const size_t pixel_size = in WriteFrame() local
143 if (fwrite(row_pointer, pixel_size, width, file_) != in WriteFrame()
/external/minigbm/
Drockchip.c36 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/u-boot/include/
Dvideo_easylogo.h22 int pixel_size; member
/external/igt-gpu-tools/tests/
Dion_fb.c10 return config->width * config->height * config->pixel_size; in size_for_fb()
206 .pixel_size = 4
/external/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_surfacedefs.h967 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/
DglcRobustnessTests.cpp574 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/mesa3d/src/gallium/frontends/clover/api/
Dtransfer.cpp593 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/
DesextcTestCaseBase.cpp697 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/OpenCL-CTS/test_conformance/clcpp/images/
Dtest_read.hpp137 const size_t pixel_size = get_pixel_size(&image_format); in run() local
161 image_desc.image_row_pitch = image_desc.image_width * pixel_size; in run()
Dtest_write.hpp138 const size_t pixel_size = get_pixel_size(&image_format); in run() local
162 image_desc.image_row_pitch = image_desc.image_width * pixel_size; in run()
Dtest_sample.hpp180 const size_t pixel_size = get_pixel_size(&image_format); in run() local
204 image_desc.image_row_pitch = image_desc.image_width * pixel_size; in run()

12