Home
last modified time | relevance | path

Searched refs:pformat (Results 1 – 25 of 59) sorted by relevance

123

/third_party/python/Lib/test/
Dtest_pprint.py239 self.assertEqual(pprint.pformat(simple), native)
240 self.assertEqual(pprint.pformat(simple, width=1, indent=0)
242 self.assertEqual(pprint.pformat(simple, underscore_numbers=True), native)
267 self.assertEqual(pprint.pformat(cont), expected)
268 self.assertEqual(pprint.pformat(cont, width=1, indent=0), expected)
289 self.assertEqual(pprint.pformat(type(o)), exp)
294 self.assertEqual(pprint.pformat(type(o)), exp)
299 self.assertEqual(pprint.pformat(type(o)), exp)
305 self.assertEqual(pprint.pformat(type(o), indent=4), exp)
314 self.assertEqual(pprint.pformat(o, indent=4, width=42), expected)
[all …]
Dtest_sys_setprofile.py96 % (pprint.pformat(expected), pprint.pformat(events)))
Dtest_htmlparser.py97 "\nExpected:\n" + pprint.pformat(expected_events) +
98 "\nReceived:\n" + pprint.pformat(events))
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_formats.c65 enum pipe_format pformat = lvp_vk_format_to_pipe_format(format); in lvp_physical_device_get_format_properties() local
67 if (pformat == PIPE_FORMAT_NONE) { in lvp_physical_device_get_format_properties()
74 if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat, in lvp_physical_device_get_format_properties()
87 if (util_format_is_compressed(pformat)) { in lvp_physical_device_get_format_properties()
88 if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat, in lvp_physical_device_get_format_properties()
101 if (!util_format_is_srgb(pformat) && in lvp_physical_device_get_format_properties()
102 physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat, in lvp_physical_device_get_format_properties()
107 if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat, in lvp_physical_device_get_format_properties()
112 if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat, in lvp_physical_device_get_format_properties()
117 if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat, in lvp_physical_device_get_format_properties()
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_formats.c39 enum pipe_format pformat, in iris_format_for_usage() argument
42 enum isl_format format = isl_format_for_pipe_format(pformat); in iris_format_for_usage()
50 if (!util_format_is_srgb(pformat)) { in iris_format_for_usage()
51 if (util_format_is_intensity(pformat)) { in iris_format_for_usage()
53 } else if (util_format_is_luminance(pformat)) { in iris_format_for_usage()
55 } else if (util_format_is_luminance_alpha(pformat)) { in iris_format_for_usage()
57 } else if (util_format_is_alpha(pformat)) { in iris_format_for_usage()
63 if (!util_format_has_alpha(pformat) && fmtl->channels.a.type != ISL_VOID) { in iris_format_for_usage()
68 pformat == PIPE_FORMAT_A8_UNORM) { in iris_format_for_usage()
107 enum pipe_format pformat, in iris_is_format_supported() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_formats.c304 get_render_format(enum pipe_format pformat, enum isl_format def_format) in get_render_format() argument
306 switch (pformat) { in get_render_format()
335 enum pipe_format pformat, in crocus_format_for_usage() argument
338 struct crocus_format_info info = { crocus_isl_format_for_pipe_format(pformat), in crocus_format_for_usage()
344 if (pformat == PIPE_FORMAT_A8_UNORM) { in crocus_format_for_usage()
349 info.fmt = get_render_format(pformat, info.fmt); in crocus_format_for_usage()
351 if (pformat == PIPE_FORMAT_Z32_FLOAT_S8X24_UINT) in crocus_format_for_usage()
353 if (pformat == PIPE_FORMAT_X32_S8X24_UINT) in crocus_format_for_usage()
355 if (pformat == PIPE_FORMAT_X24S8_UINT) in crocus_format_for_usage()
361 if (util_format_is_snorm(pformat)) { in crocus_format_for_usage()
[all …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_format.c195 d3d12_get_format_info(enum pipe_format pformat, enum pipe_texture_target target) in d3d12_get_format_info() argument
210 if (pformat == PIPE_FORMAT_DXT1_RGB || in d3d12_get_format_info()
211 pformat == PIPE_FORMAT_DXT1_SRGB) in d3d12_get_format_info()
215 *format_desc = util_format_description(pformat); in d3d12_get_format_info()
216 if (!util_format_is_srgb(pformat)) { in d3d12_get_format_info()
217 if (target == PIPE_BUFFER && util_format_is_alpha(pformat)) { in d3d12_get_format_info()
219 } else if (pformat == PIPE_FORMAT_A8_UNORM) { in d3d12_get_format_info()
221 } else if (util_format_is_intensity(pformat)) { in d3d12_get_format_info()
223 } else if (util_format_is_luminance(pformat)) { in d3d12_get_format_info()
225 } else if (util_format_is_luminance_alpha(pformat)) { in d3d12_get_format_info()
[all …]
/third_party/NuttX/drivers/usbdev/gadget/
Df_uvc.c1089 const struct fuvc_format_info *pformat = format_info; in frames_descriptors_update() local
1091 while (pformat->frames[nframes].height != 0) in frames_descriptors_update()
1093 switch (pformat->frames[nframes].height) in frames_descriptors_update()
1096 if (pformat->fcc == V4L2_PIX_FMT_YUYV) in frames_descriptors_update()
1102 else if (pformat->fcc == V4L2_PIX_FMT_H264) in frames_descriptors_update()
1116 if (pformat->fcc == V4L2_PIX_FMT_YUYV) in frames_descriptors_update()
1122 else if (pformat->fcc == V4L2_PIX_FMT_H264) in frames_descriptors_update()
1136 if (pformat->fcc == V4L2_PIX_FMT_YUYV) in frames_descriptors_update()
1142 else if (pformat->fcc == V4L2_PIX_FMT_H264) in frames_descriptors_update()
1156 if (pformat->fcc == V4L2_PIX_FMT_YUYV) in frames_descriptors_update()
[all …]
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_image.c150 enum pipe_format pformat, in get_dimensions() argument
156 *width = iview->u.buf.size / util_format_get_blocksize(pformat); in get_dimensions()
163 if (util_format_get_stride(pformat, *width) > in get_dimensions()
179 if (util_format_get_blocksize(pformat) > in get_dimensions()
302 unsigned pformat = params->format; in sp_tgsi_store() local
314 pformat = spr->base.format; in sp_tgsi_store()
317 pformat, &width, &height, &depth)) in sp_tgsi_store()
320 stride = util_format_get_stride(pformat, width); in sp_tgsi_store()
333 offset = get_image_offset(spr, iview, pformat, r_coord); in sp_tgsi_store()
339 util_format_write_4(pformat, sdata, 0, data_ptr, stride, in sp_tgsi_store()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_gmem.c84 enum pipe_format pformat = psurf->format; in emit_mrt() local
93 pformat = rsc->b.b.format; in emit_mrt()
98 format = fd4_pipe2color(pformat); in emit_mrt()
99 swap = fd4_pipe2swap(pformat); in emit_mrt()
102 srgb = util_format_is_srgb(pformat); in emit_mrt()
104 pformat = util_format_linear(pformat); in emit_mrt()
166 enum pipe_format pformat = psurf->format; in emit_gmem2mem_surf() local
175 pformat = rsc->b.b.format; in emit_gmem2mem_surf()
191 A4XX_RB_COPY_DEST_INFO_FORMAT(fd4_pipe2color(pformat)) | in emit_gmem2mem_surf()
194 A4XX_RB_COPY_DEST_INFO_SWAP(fd4_pipe2swap(pformat))); in emit_gmem2mem_surf()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_format.c1265 enum pipe_format pformat = st_choose_matching_format_noverify(st, format, type, swapBytes); in st_choose_matching_format() local
1266 if (pformat != PIPE_FORMAT_NONE && in st_choose_matching_format()
1267 (!bind || screen->is_format_supported(screen, pformat, PIPE_TEXTURE_2D, 0, 0, bind))) in st_choose_matching_format()
1268 return pformat; in st_choose_matching_format()
1493 enum pipe_format pformat = st_choose_format(st, in st_QueryInternalFormat() local
1500 if (pformat) in st_QueryInternalFormat()
1506 enum pipe_format pformat = st_mesa_format_to_pipe_format(st, format); in st_QueryInternalFormat() local
1508 params[0] = pformat != PIPE_FORMAT_NONE && in st_QueryInternalFormat()
1509 screen->is_format_supported(screen, pformat, PIPE_TEXTURE_2D, in st_QueryInternalFormat()
/third_party/boost/boost/convert/
Dprintf.hpp32 char const* fmt = pformat(pos<in_type>()); in to_str()
63 char const* pformat(int pos) const in pformat() function
/third_party/mesa3d/src/gallium/winsys/d3d12/wgl/
Dd3d12_wgl_framebuffer.cpp51 enum pipe_format pformat; member
107 framebuffer->pformat = templ->format; in d3d12_wgl_framebuffer_resize()
198 templ.format = framebuffer->pformat; in d3d12_wgl_framebuffer_get_resource()
/third_party/mesa3d/src/gallium/frontends/vdpau/
Dsurface.c306 enum pipe_format pformat = FormatYCBCRToPipe(source_ycbcr_format); in vlVdpVideoSurfacePutBitsYCbCr() local
327 ((pformat != p_surf->video_buffer->buffer_format))) { in vlVdpVideoSurfacePutBitsYCbCr()
328 enum pipe_format nformat = pformat; in vlVdpVideoSurfacePutBitsYCbCr()
368 if (pformat != p_surf->video_buffer->buffer_format) { in vlVdpVideoSurfacePutBitsYCbCr()
369 if (pformat == PIPE_FORMAT_YV12 && in vlVdpVideoSurfacePutBitsYCbCr()
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/model_utils/
Dconfig.py21 from pprint import pprint, pformat
36 return pformat(self.__dict__)
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_blit.c237 enum pipe_format pformat; in v3d_tfu() local
257 pformat = pdst->format; in v3d_tfu()
260 case 16: pformat = PIPE_FORMAT_R32G32B32A32_FLOAT; break; in v3d_tfu()
261 case 8: pformat = PIPE_FORMAT_R16G16B16A16_FLOAT; break; in v3d_tfu()
262 case 4: pformat = PIPE_FORMAT_R32_FLOAT; break; in v3d_tfu()
263 case 2: pformat = PIPE_FORMAT_R16_FLOAT; break; in v3d_tfu()
264 case 1: pformat = PIPE_FORMAT_R8_UNORM; break; in v3d_tfu()
269 uint32_t tex_format = v3d_get_tex_format(&screen->devinfo, pformat); in v3d_tfu()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_gmem.c67 enum pipe_format pformat = 0; in emit_mrt() local
86 pformat = psurf->format; in emit_mrt()
92 pformat = rsc->b.b.format; in emit_mrt()
96 format = fd3_pipe2color(pformat); in emit_mrt()
98 srgb = util_format_is_srgb(pformat); in emit_mrt()
100 pformat = util_format_linear(pformat); in emit_mrt()
106 swap = rsc->layout.tile_mode ? WZYX : fd3_pipe2swap(pformat); in emit_mrt()
137 fd3_fs_output_format(pformat)))); in emit_mrt()
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_gmem.c71 enum pipe_format pformat = psurf->format; in emit_mrt() local
76 format = fd5_pipe2color(pformat); in emit_mrt()
77 swap = fd5_pipe2swap(pformat); in emit_mrt()
78 srgb = util_format_is_srgb(pformat); in emit_mrt()
79 sint = util_format_is_pure_sint(pformat); in emit_mrt()
80 uint = util_format_is_pure_uint(pformat); in emit_mrt()
/third_party/node/tools/inspector_protocol/jinja2/
Dutils.py177 def pformat(obj, verbose=False): function
185 from pprint import pformat
186 return pformat(obj)
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_format.h125 enum pipe_format pformat,
/third_party/jinja2/
Dutils.py168 def pformat(obj, verbose=False): function
177 from pprint import pformat
179 return pformat(obj)
/third_party/skia/third_party/externals/jinja2/
Dutils.py168 def pformat(obj, verbose=False): function
177 from pprint import pformat
179 return pformat(obj)
/third_party/skia/third_party/externals/angle2/infra/specs/
Dgenerate_test_spec_json.py140 'mixin_data': pp.pformat(found_mixins),
/third_party/boost/libs/graph/example/
Diohb.c762 char pformat[16],iformat[16],vformat[19],rformat[19]; in writeHB_mat_double() local
781 sprintf(pformat,"%%%dd",Ptrwidth); in writeHB_mat_double()
840 fprintf(out_file,pformat,entry); in writeHB_mat_double()
1345 char pformat[16],iformat[16],vformat[19],rformat[19]; in writeHB_mat_char() local
1364 sprintf(pformat,"%%%dd",Ptrwidth); in writeHB_mat_char()
1418 fprintf(out_file,pformat,entry); in writeHB_mat_char()
/third_party/python/Lib/
Dpprint.py57 def pformat(object, indent=1, width=80, depth=None, *, function
62 underscore_numbers=underscore_numbers).pformat(object)
155 def pformat(self, object): member in PrettyPrinter
647 p.pformat(object)

123