Home
last modified time | relevance | path

Searched refs:format_desc (Results 1 – 24 of 24) sorted by relevance

/external/mesa3d/src/gallium/tests/unit/
Du_format_test.c56 print_packed(const struct util_format_description *format_desc, in print_packed() argument
65 for (i = 0; i < format_desc->block.bits/8; ++i) { in print_packed()
75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, in print_unpacked_rgba_doubl() argument
84 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_doubl()
85 for (j = 0; j < format_desc->block.width; ++j) { in print_unpacked_rgba_doubl()
97 print_unpacked_rgba_float(const struct util_format_description *format_desc, in print_unpacked_rgba_float() argument
106 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_float()
107 for (j = 0; j < format_desc->block.width; ++j) { in print_unpacked_rgba_float()
119 print_unpacked_rgba_8unorm(const struct util_format_description *format_desc, in print_unpacked_rgba_8unorm() argument
128 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_8unorm()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_soa.c45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, in lp_build_format_swizzle_soa() argument
53 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { in lp_build_format_swizzle_soa()
61 enum util_format_swizzle swizzle = format_desc->swizzle[0]; in lp_build_format_swizzle_soa()
69 enum util_format_swizzle swizzle = format_desc->swizzle[chan]; in lp_build_format_swizzle_soa()
101 const struct util_format_description *format_desc, in lp_build_unpack_rgba_soa() argument
112 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN); in lp_build_unpack_rgba_soa()
113 assert(format_desc->block.width == 1); in lp_build_unpack_rgba_soa()
114 assert(format_desc->block.height == 1); in lp_build_unpack_rgba_soa()
115 assert(format_desc->block.bits <= type.width); in lp_build_unpack_rgba_soa()
124 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in lp_build_unpack_rgba_soa()
[all …]
Dlp_bld_format_aos.c372 const struct util_format_description *format_desc, in lp_build_fetch_rgba_aos() argument
395 if (format_matches_type(format_desc, type) && in lp_build_fetch_rgba_aos()
396 format_desc->block.bits <= type.width * 4 && in lp_build_fetch_rgba_aos()
397 util_is_power_of_two(format_desc->block.bits)) { in lp_build_fetch_rgba_aos()
406 format_desc->block.bits, type.width*4, in lp_build_fetch_rgba_aos()
409 assert(format_desc->block.bits <= type.width * type.length); in lp_build_fetch_rgba_aos()
414 return lp_build_format_swizzle_aos(format_desc, &bld, packed); in lp_build_fetch_rgba_aos()
421 if (format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN && in lp_build_fetch_rgba_aos()
422 (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in lp_build_fetch_rgba_aos()
423 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) && in lp_build_fetch_rgba_aos()
[all …]
Dlp_bld_format_aos_array.c50 const struct util_format_description *format_desc, in lp_build_fetch_rgba_aos_array() argument
62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT; in lp_build_fetch_rgba_aos_array()
63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED; in lp_build_fetch_rgba_aos_array()
64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED; in lp_build_fetch_rgba_aos_array()
65 src_type.norm = format_desc->channel[0].normalized; in lp_build_fetch_rgba_aos_array()
66 src_type.width = format_desc->channel[0].size; in lp_build_fetch_rgba_aos_array()
67 src_type.length = format_desc->nr_channels; in lp_build_fetch_rgba_aos_array()
100 return lp_build_format_swizzle_aos(format_desc, &bld, res); in lp_build_fetch_rgba_aos_array()
Dlp_bld_format.h63 const struct util_format_description *format_desc,
72 const struct util_format_description *format_desc,
83 lp_build_format_swizzle_soa(const struct util_format_description *format_desc,
90 const struct util_format_description *format_desc,
103 const struct util_format_description *format_desc,
118 const struct util_format_description *format_desc,
Dlp_bld_sample_aos.c479 if (util_format_is_rgba8_variant(bld->format_desc)) { in lp_build_sample_fetch_image_nearest()
486 bld->format_desc->block.bits, in lp_build_sample_fetch_image_nearest()
494 bld->format_desc, in lp_build_sample_fetch_image_nearest()
589 bld->format_desc->block.bits/8); in lp_build_sample_image_nearest()
593 bld->format_desc->block.width, in lp_build_sample_image_nearest()
603 bld->format_desc->block.height, in lp_build_sample_image_nearest()
708 bld->format_desc, in lp_build_sample_image_nearest_afloat()
843 if (util_format_is_rgba8_variant(bld->format_desc)) { in lp_build_sample_fetch_image_linear()
850 bld->format_desc->block.bits, in lp_build_sample_fetch_image_linear()
858 bld->format_desc, in lp_build_sample_fetch_image_linear()
[all …]
Dlp_bld_format_yuv.c446 const struct util_format_description *format_desc, in lp_build_fetch_subsampled_rgba_aos() argument
456 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED); in lp_build_fetch_subsampled_rgba_aos()
457 assert(format_desc->block.bits == 32); in lp_build_fetch_subsampled_rgba_aos()
458 assert(format_desc->block.width == 2); in lp_build_fetch_subsampled_rgba_aos()
459 assert(format_desc->block.height == 1); in lp_build_fetch_subsampled_rgba_aos()
465 switch (format_desc->format) { in lp_build_fetch_subsampled_rgba_aos()
Dlp_bld_sample.h199 const struct util_format_description *format_desc; member
398 const struct util_format_description *format_desc,
Dlp_bld_sample_soa.c139 bld->format_desc, in lp_build_sample_texel_soa()
156 bld->format_desc, in lp_build_sample_texel_soa()
1266 bld.format_desc = util_format_description(static_state->format); in lp_build_sample_soa()
1338 boolean use_aos = util_format_fits_8unorm(bld.format_desc) && in lp_build_sample_soa()
1343 !use_aos && util_format_fits_8unorm(bld.format_desc)) { in lp_build_sample_soa()
1345 __FUNCTION__, bld.format_desc->short_name); in lp_build_sample_soa()
1438 bld4.format_desc = bld.format_desc; in lp_build_sample_soa()
Dlp_bld_sample.c1303 const struct util_format_description *format_desc, in lp_build_sample_offset() argument
1317 format_desc->block.bits/8); in lp_build_sample_offset()
1320 format_desc->block.width, in lp_build_sample_offset()
1327 format_desc->block.height, in lp_build_sample_offset()
/external/mesa3d/src/gallium/auxiliary/util/
Du_format.c255 const struct util_format_description *format_desc; in util_format_read_4f() local
259 format_desc = util_format_description(format); in util_format_read_4f()
261 assert(x % format_desc->block.width == 0); in util_format_read_4f()
262 assert(y % format_desc->block.height == 0); in util_format_read_4f()
264 src_row = (const uint8_t *)src + y*src_stride + x*(format_desc->block.bits/8); in util_format_read_4f()
267 format_desc->unpack_rgba_float(dst_row, dst_stride, src_row, src_stride, w, h); in util_format_read_4f()
277 const struct util_format_description *format_desc; in util_format_write_4f() local
281 format_desc = util_format_description(format); in util_format_write_4f()
283 assert(x % format_desc->block.width == 0); in util_format_write_4f()
284 assert(y % format_desc->block.height == 0); in util_format_write_4f()
[all …]
Du_draw.c61 const struct util_format_description *format_desc; in util_draw_max_index() local
72 format_desc = util_format_description(element->src_format); in util_draw_max_index()
73 assert(format_desc->block.width == 1); in util_draw_max_index()
74 assert(format_desc->block.height == 1); in util_draw_max_index()
75 assert(format_desc->block.bits % 8 == 0); in util_draw_max_index()
76 format_size = format_desc->block.bits/8; in util_draw_max_index()
Du_format.h1001 util_format_fits_8unorm(const struct util_format_description *format_desc);
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_depth.c305 lp_depth_type(const struct util_format_description *format_desc, in lp_depth_type() argument
311 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS); in lp_depth_type()
312 assert(format_desc->block.width == 1); in lp_depth_type()
313 assert(format_desc->block.height == 1); in lp_depth_type()
315 swizzle = format_desc->swizzle[0]; in lp_depth_type()
319 type.width = format_desc->block.bits; in lp_depth_type()
321 if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) { in lp_depth_type()
324 assert(format_desc->channel[swizzle].size == format_desc->block.bits); in lp_depth_type()
326 else if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_UNSIGNED) { in lp_depth_type()
327 assert(format_desc->block.bits <= 32); in lp_depth_type()
[all …]
Dlp_screen.c290 const struct util_format_description *format_desc; in llvmpipe_is_format_supported() local
292 format_desc = util_format_description(format); in llvmpipe_is_format_supported()
293 if (!format_desc) in llvmpipe_is_format_supported()
306 if (format_desc->format == PIPE_FORMAT_R11G11B10_FLOAT || in llvmpipe_is_format_supported()
307 format_desc->format == PIPE_FORMAT_R9G9B9E5_FLOAT) in llvmpipe_is_format_supported()
311 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS || in llvmpipe_is_format_supported()
312 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) in llvmpipe_is_format_supported()
315 if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) in llvmpipe_is_format_supported()
318 if (format_desc->block.width != 1 || in llvmpipe_is_format_supported()
319 format_desc->block.height != 1) in llvmpipe_is_format_supported()
[all …]
Dlp_bld_depth.h53 lp_depth_type(const struct util_format_description *format_desc,
62 const struct util_format_description *format_desc,
73 const struct util_format_description *format_desc,
80 const struct util_format_description *format_desc,
Dlp_test_format.c302 const struct util_format_description *format_desc) in test_one() argument
306 if (!test_format_float(verbose, fp, format_desc)) { in test_one()
310 if (!test_format_unorm8(verbose, fp, format_desc)) { in test_one()
327 const struct util_format_description *format_desc; in test_all() local
329 format_desc = util_format_description(format); in test_all()
330 if (!format_desc) { in test_all()
339 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { in test_all()
346 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && in test_all()
351 if (!test_one(verbose, fp, format_desc)) { in test_all()
Dlp_state_fs.c1601 const struct util_format_description *format_desc; in make_variant_key() local
1605 format_desc = util_format_description(format); in make_variant_key()
1606 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in make_variant_key()
1607 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB); in make_variant_key()
1614 blend_rt->colormask &= util_format_colormask(format_desc); in make_variant_key()
1631 if (format_desc->swizzle[3] > UTIL_FORMAT_SWIZZLE_W || in make_variant_key()
1632 format_desc->swizzle[3] == format_desc->swizzle[0]) { in make_variant_key()
/external/autotest/client/site_tests/hardware_VideoDecodeCapable/src/
Dv4l2module.cc25 v4l2_fmtdesc format_desc; in v4l2_enum_formats() local
27 memset(&format_desc, 0, sizeof(format_desc)); in v4l2_enum_formats()
28 format_desc.type = (v4l2_buf_type) buf_type; in v4l2_enum_formats()
29 format_desc.index = i; in v4l2_enum_formats()
30 if (-1 == do_ioctl(fd, VIDIOC_ENUM_FMT, &format_desc)) { in v4l2_enum_formats()
33 pixel_format[0] = format_desc.pixelformat & 0xFF; in v4l2_enum_formats()
34 pixel_format[1] = (format_desc.pixelformat >> 8) & 0xFF; in v4l2_enum_formats()
35 pixel_format[2] = (format_desc.pixelformat >> 16) & 0xFF; in v4l2_enum_formats()
36 pixel_format[3] = (format_desc.pixelformat >> 24) & 0xFF; in v4l2_enum_formats()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_screen.c271 const struct util_format_description *format_desc; in softpipe_is_format_supported() local
282 format_desc = util_format_description(format); in softpipe_is_format_supported()
283 if (!format_desc) in softpipe_is_format_supported()
297 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) in softpipe_is_format_supported()
305 if (format_desc->block.width != 1 || in softpipe_is_format_supported()
306 format_desc->block.height != 1) in softpipe_is_format_supported()
311 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS) in softpipe_is_format_supported()
319 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) { in softpipe_is_format_supported()
/external/autotest/client/site_tests/camera_V4L2/src/
Dmedia_v4l2_device.cc610 v4l2_fmtdesc format_desc; in EnumFormat() local
611 memset(&format_desc, 0, sizeof(format_desc)); in EnumFormat()
612 format_desc.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in EnumFormat()
613 format_desc.index = i; in EnumFormat()
614 if (-1 == DoIoctl(VIDIOC_ENUM_FMT, &format_desc)) { in EnumFormat()
624 i+1, format_desc.description, in EnumFormat()
625 (format_desc.pixelformat >> 0) & 0xff, in EnumFormat()
626 (format_desc.pixelformat >> 8) & 0xff, in EnumFormat()
627 (format_desc.pixelformat >> 16) & 0xff, in EnumFormat()
628 (format_desc.pixelformat >> 24) & 0xff); in EnumFormat()
[all …]
/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_generic.c805 const struct util_format_description *format_desc = in translate_generic_create() local
808 assert(format_desc); in translate_generic_create()
809 assert(format_desc->fetch_rgba_float); in translate_generic_create()
813 if (format_desc->channel[0].pure_integer) { in translate_generic_create()
817 if (!is_legal_int_format_combo(format_desc, out_format_desc)) { in translate_generic_create()
822 if (format_desc->channel[0].type == UTIL_FORMAT_TYPE_SIGNED) { in translate_generic_create()
823 tg->attrib[i].fetch = (fetch_func)format_desc->fetch_rgba_sint; in translate_generic_create()
825 tg->attrib[i].fetch = (fetch_func)format_desc->fetch_rgba_uint; in translate_generic_create()
828 tg->attrib[i].fetch = (fetch_func)format_desc->fetch_rgba_float; in translate_generic_create()
847 && format_desc->block.width == 1 in translate_generic_create()
[all …]
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_composite.c58 const struct util_format_description *format_desc; in pixel_to_float4() local
61 format_desc = util_format_description(format); in pixel_to_float4()
66 format_desc->unpack_rgba_float(color, 0, packed, 0, 1, 1); in pixel_to_float4()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c503 const struct util_format_description *format_desc = util_format_description(velem->src_format); in generate_fetch() local
537 format_desc, in generate_fetch()