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

/external/mesa3d/src/gallium/tests/unit/
H A Du_format_test.c56 print_packed(const struct util_format_description *format_desc, argument
65 for (i = 0; i < format_desc->block.bits/8; ++i) {
75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, argument
84 for (i = 0; i < format_desc->block.height; ++i) {
85 for (j = 0; j < format_desc->block.width; ++j) {
97 print_unpacked_rgba_float(const struct util_format_description *format_desc, argument
106 for (i = 0; i < format_desc->block.height; ++i) {
107 for (j = 0; j < format_desc->block.width; ++j) {
119 print_unpacked_rgba_8unorm(const struct util_format_description *format_desc, argument
128 for (i = 0; i < format_desc
140 print_unpacked_z_float(const struct util_format_description *format_desc, const char *prefix, float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
162 print_unpacked_z_32unorm(const struct util_format_description *format_desc, const char *prefix, uint32_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
183 print_unpacked_s_8uint(const struct util_format_description *format_desc, const char *prefix, uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
204 test_format_fetch_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
233 test_format_unpack_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
265 test_format_pack_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
339 test_format_unpack_rgba_8unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
378 test_format_pack_rgba_8unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
435 test_format_unpack_z_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
465 test_format_pack_z_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
502 test_format_unpack_z_32unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
539 test_format_pack_z_32unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
577 test_format_unpack_s_8uint(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
614 test_format_pack_s_8uint(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
657 test_one_func(const struct util_format_description *format_desc, test_func_t func, const char *suffix) argument
689 const struct util_format_description *format_desc; local
[all...]
/external/autotest/client/site_tests/hardware_VideoDecodeCapable/src/
H A Dv4l2module.cc25 v4l2_fmtdesc format_desc; local
27 memset(&format_desc, 0, sizeof(format_desc));
28 format_desc.type = (v4l2_buf_type) buf_type;
29 format_desc.index = i;
30 if (-1 == do_ioctl(fd, VIDIOC_ENUM_FMT, &format_desc)) {
33 pixel_format[0] = format_desc.pixelformat & 0xFF;
34 pixel_format[1] = (format_desc.pixelformat >> 8) & 0xFF;
35 pixel_format[2] = (format_desc.pixelformat >> 16) & 0xFF;
36 pixel_format[3] = (format_desc
[all...]
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_format_soa.c45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, argument
53 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) {
61 enum util_format_swizzle swizzle = format_desc->swizzle[0];
69 enum util_format_swizzle swizzle = format_desc->swizzle[chan];
94 * \param format_desc the format of the 'packed' incoming pixel vector
101 const struct util_format_description *format_desc,
112 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN);
113 assert(format_desc->block.width == 1);
114 assert(format_desc->block.height == 1);
115 assert(format_desc
100 lp_build_unpack_rgba_soa(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef packed, LLVMValueRef rgba_out[4]) argument
309 lp_build_fetch_rgba_soa(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j, LLVMValueRef rgba_out[4]) argument
[all...]
H A Dlp_bld_format_aos_array.c43 * \param format_desc describes format of the image we're fetching from
50 const struct util_format_description *format_desc,
62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT;
63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED;
64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED;
65 src_type.norm = format_desc->channel[0].normalized;
66 src_type.width = format_desc->channel[0].size;
67 src_type.length = format_desc->nr_channels;
100 return lp_build_format_swizzle_aos(format_desc, &bld, res);
49 lp_build_fetch_rgba_aos_array(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type dst_type, LLVMValueRef base_ptr, LLVMValueRef offset) argument
H A 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,
H A Dlp_bld_format_aos.c364 * \param format_desc describes format of the image we're fetching from
372 const struct util_format_description *format_desc,
395 if (format_matches_type(format_desc, type) &&
396 format_desc->block.bits <= type.width * 4 &&
397 util_is_power_of_two(format_desc->block.bits)) {
406 format_desc->block.bits, type.width*4,
409 assert(format_desc->block.bits <= type.width * type.length);
414 return lp_build_format_swizzle_aos(format_desc, &bld, packed);
421 if (format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN &&
422 (format_desc
371 lp_build_fetch_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j) argument
[all...]
H A Dlp_bld_format_yuv.c446 const struct util_format_description *format_desc,
456 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED);
457 assert(format_desc->block.bits == 32);
458 assert(format_desc->block.width == 2);
459 assert(format_desc->block.height == 1);
465 switch (format_desc->format) {
445 lp_build_fetch_subsampled_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *format_desc, unsigned n, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j) argument
H A Dlp_bld_sample_aos.c479 if (util_format_is_rgba8_variant(bld->format_desc)) {
486 bld->format_desc->block.bits,
494 bld->format_desc,
589 bld->format_desc->block.bits/8);
593 bld->format_desc->block.width,
603 bld->format_desc->block.height,
708 bld->format_desc,
843 if (util_format_is_rgba8_variant(bld->format_desc)) {
850 bld->format_desc->block.bits,
858 bld->format_desc,
[all...]
H A Dlp_bld_sample.h199 const struct util_format_description *format_desc; member in struct:lp_build_sample_context
398 const struct util_format_description *format_desc,
H A Dlp_bld_sample_soa.c139 bld->format_desc,
156 bld->format_desc,
1266 bld.format_desc = util_format_description(static_state->format);
1338 boolean use_aos = util_format_fits_8unorm(bld.format_desc) &&
1343 !use_aos && util_format_fits_8unorm(bld.format_desc)) {
1345 __FUNCTION__, bld.format_desc->short_name);
1438 bld4.format_desc = bld.format_desc;
H A Dlp_bld_sample.c1303 const struct util_format_description *format_desc,
1317 format_desc->block.bits/8);
1320 format_desc->block.width,
1327 format_desc->block.height,
1302 lp_build_sample_offset(struct lp_build_context *bld, const struct util_format_description *format_desc, LLVMValueRef x, LLVMValueRef y, LLVMValueRef z, LLVMValueRef y_stride, LLVMValueRef z_stride, LLVMValueRef *out_offset, LLVMValueRef *out_i, LLVMValueRef *out_j) argument
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A 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,
H A Dlp_screen.c290 const struct util_format_description *format_desc; local
292 format_desc = util_format_description(format);
293 if (!format_desc)
306 if (format_desc->format == PIPE_FORMAT_R11G11B10_FLOAT ||
307 format_desc->format == PIPE_FORMAT_R9G9B9E5_FLOAT)
311 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS ||
312 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB)
315 if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)
318 if (format_desc->block.width != 1 ||
319 format_desc
[all...]
H A Dlp_bld_depth.c305 lp_depth_type(const struct util_format_description *format_desc, argument
311 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS);
312 assert(format_desc->block.width == 1);
313 assert(format_desc->block.height == 1);
315 swizzle = format_desc->swizzle[0];
319 type.width = format_desc->block.bits;
321 if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) {
324 assert(format_desc->channel[swizzle].size == format_desc->block.bits);
326 else if(format_desc
355 get_z_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *width, unsigned *mask) argument
402 get_s_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *mask) argument
535 lp_build_depth_stencil_test(struct gallivm_state *gallivm, const struct pipe_depth_state *depth, const struct pipe_stencil_state stencil[2], struct lp_type z_src_type, const struct util_format_description *format_desc, struct lp_build_mask_context *mask, LLVMValueRef stencil_refs[2], LLVMValueRef z_src, LLVMValueRef zs_dst_ptr, LLVMValueRef face, LLVMValueRef *zs_value, boolean do_branch) argument
853 lp_build_depth_write(LLVMBuilderRef builder, const struct util_format_description *format_desc, LLVMValueRef zs_dst_ptr, LLVMValueRef zs_value) argument
866 lp_build_deferred_depth_write(struct gallivm_state *gallivm, struct lp_type z_src_type, const struct util_format_description *format_desc, struct lp_build_mask_context *mask, LLVMValueRef zs_dst_ptr, LLVMValueRef zs_value) argument
[all...]
H A Dlp_test_format.c302 const struct util_format_description *format_desc)
306 if (!test_format_float(verbose, fp, format_desc)) {
310 if (!test_format_unorm8(verbose, fp, format_desc)) {
327 const struct util_format_description *format_desc; local
329 format_desc = util_format_description(format);
330 if (!format_desc) {
339 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) {
346 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC &&
351 if (!test_one(verbose, fp, format_desc)) {
301 test_one(unsigned verbose, FILE *fp, const struct util_format_description *format_desc) argument
H A Dlp_state_fs.c1601 const struct util_format_description *format_desc; local
1605 format_desc = util_format_description(format);
1606 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB ||
1607 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB);
1614 blend_rt->colormask &= util_format_colormask(format_desc);
1631 if (format_desc->swizzle[3] > UTIL_FORMAT_SWIZZLE_W ||
1632 format_desc->swizzle[3] == format_desc->swizzle[0]) {
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_draw.c61 const struct util_format_description *format_desc; local
72 format_desc = util_format_description(element->src_format);
73 assert(format_desc->block.width == 1);
74 assert(format_desc->block.height == 1);
75 assert(format_desc->block.bits % 8 == 0);
76 format_size = format_desc->block.bits/8;
H A Du_format.c255 const struct util_format_description *format_desc; local
259 format_desc = util_format_description(format);
261 assert(x % format_desc->block.width == 0);
262 assert(y % format_desc->block.height == 0);
264 src_row = (const uint8_t *)src + y*src_stride + x*(format_desc->block.bits/8);
267 format_desc->unpack_rgba_float(dst_row, dst_stride, src_row, src_stride, w, h);
277 const struct util_format_description *format_desc; local
281 format_desc = util_format_description(format);
283 assert(x % format_desc->block.width == 0);
284 assert(y % format_desc
296 const struct util_format_description *format_desc; local
315 const struct util_format_description *format_desc; local
336 const struct util_format_description *format_desc; local
357 const struct util_format_description *format_desc; local
378 const struct util_format_description *format_desc; local
399 const struct util_format_description *format_desc; local
463 util_format_fits_8unorm(const struct util_format_description *format_desc) argument
[all...]
H A Du_format.h1001 util_format_fits_8unorm(const struct util_format_description *format_desc);
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_screen.c271 const struct util_format_description *format_desc; local
282 format_desc = util_format_description(format);
283 if (!format_desc)
297 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS)
305 if (format_desc->block.width != 1 ||
306 format_desc->block.height != 1)
311 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS)
319 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) {
/external/autotest/client/site_tests/camera_V4L2/src/
H A Dmedia_v4l2_device.cc610 v4l2_fmtdesc format_desc;
611 memset(&format_desc, 0, sizeof(format_desc));
612 format_desc.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
613 format_desc.index = i;
614 if (-1 == DoIoctl(VIDIOC_ENUM_FMT, &format_desc)) {
624 i+1, format_desc.description,
625 (format_desc.pixelformat >> 0) & 0xff,
626 (format_desc.pixelformat >> 8) & 0xff,
627 (format_desc
637 v4l2_fmtdesc format_desc; local
[all...]
/external/mesa3d/src/gallium/auxiliary/translate/
H A Dtranslate_generic.c805 const struct util_format_description *format_desc = local
808 assert(format_desc);
809 assert(format_desc->fetch_rgba_float);
813 if (format_desc->channel[0].pure_integer) {
817 if (!is_legal_int_format_combo(format_desc, out_format_desc)) {
822 if (format_desc->channel[0].type == UTIL_FORMAT_TYPE_SIGNED) {
823 tg->attrib[i].fetch = (fetch_func)format_desc->fetch_rgba_sint;
825 tg->attrib[i].fetch = (fetch_func)format_desc->fetch_rgba_uint;
828 tg->attrib[i].fetch = (fetch_func)format_desc->fetch_rgba_float;
847 && format_desc
[all...]
/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_composite.c58 const struct util_format_description *format_desc; local
61 format_desc = util_format_description(format);
66 format_desc->unpack_rgba_float(color, 0, packed, 0, 1, 1);
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_llvm.c503 const struct util_format_description *format_desc = util_format_description(velem->src_format); local
537 format_desc,

Completed in 502 milliseconds