/third_party/python/Lib/test/ |
H A D | test_peepholer.py | 550 def format(fmt, *values): function 558 self.assertEqual(format('string'), 'string') 559 self.assertEqual(format('x = %s!', 1234), 'x = 1234!') 560 self.assertEqual(format('x = %d!', 1234), 'x = 1234!') 561 self.assertEqual(format('x = %x!', 1234), 'x = 4d2!') 562 self.assertEqual(format('x = %f!', 1234), 'x = 1234.000000!') 563 self.assertEqual(format('x = %s!', 1234.5678901), 'x = 1234.5678901!') 564 self.assertEqual(format('x = %f!', 1234.5678901), 'x = 1234.567890!') 565 self.assertEqual(format('x = %d!', 1234.5678901), 'x = 1234!') 566 self.assertEqual(format(' [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fNegativeShaderImageLoadStoreTests.cpp | 85 std::string getShaderImageLayoutQualifier (const tcu::TextureFormat& format) in getShaderImageLayoutQualifier() argument 89 switch (format.order) in getShaderImageLayoutQualifier() 98 switch (format.type) in getShaderImageLayoutQualifier() 118 std::string getShaderImageTypeDeclaration (const tcu::TextureFormat& format, glu::TextureTestUtil::TextureType imageType) in getShaderImageTypeDeclaration() argument 122 switch (format.type) in getShaderImageTypeDeclaration() 211 std::string getOtherFunctionArguments (const tcu::TextureFormat& format, ImageOperation function) in getOtherFunctionArguments() argument 218 switch(format.type) in getOtherFunctionArguments() 342 std::string generateShaderSource (ImageOperation function, MemoryQualifier memory, glu::TextureTestUtil::TextureType imageType, const tcu::TextureFormat& format, glu::ShaderType shaderType) in generateShaderSource() argument 360 params["LAYOUT_FORMAT"] = getShaderImageLayoutQualifier(format); in generateShaderSource() 362 params["IMAGE_TYPE"] = getShaderImageTypeDeclaration(format, imageTyp in generateShaderSource() 370 testShader(NegativeTestContext& ctx, ImageOperation function, MemoryQualifier memory, glu::TextureTestUtil::TextureType imageType, const tcu::TextureFormat& format) testShader() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktTextureSwizzleTests.cpp | 117 , m_format (isCompressedFormat(m_testParameters.format) in Swizzle2DTestInstance() 119 : mapVkFormat(testParameters.format)) in Swizzle2DTestInstance() 120 , m_compressedFormat (isCompressedFormat(m_testParameters.format) in Swizzle2DTestInstance() 121 ? mapVkCompressedFormat(testParameters.format) in Swizzle2DTestInstance() 123 , m_texture (TestTexture2DSp(isCompressedFormat(m_testParameters.format) in Swizzle2DTestInstance() 145 sampleParams.samplerType = isCompressedFormat(m_testParameters.format) ? SAMPLERTYPE_FLOAT : getSamplerType(m_format); in iterate() 223 const tcu::IVec4 bitDepth = getTextureFormatBitDepth(isCompressedFormat(m_testParameters.format) in iterate() 294 const VkFormat format; in populateTextureSwizzleTests() member 477 const string formatStr = de::toString(getFormatStr(formats2D[formatNdx].format)); in populateTextureSwizzleTests() 485 testParameters.format in populateTextureSwizzleTests() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | DateTimeGeneratorTest.java | 11 package ohos.global.icu.dev.test.format; 159 SimpleDateFormat format = new SimpleDateFormat(gen.getBestPattern("MMMddHmm"), locale); in TestSimple() 160 format.setTimeZone(zone); in TestSimple() 161 assertEquals("simple format: MMMddHmm", "14. Okt., 08:58", format.format(sampleDate)); in TestSimple() 168 format.applyPattern(gen.getBestPattern("MMMMdHmm")); in TestSimple() 169 assertEquals("modified format: MMMdHmm", "14. von Oktober, 08:58", format.format(sampleDat in TestSimple() [all...] |
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_resolve.c | 31 * render-to-texture, format reinterpretation issues, and other situations. 108 crocus_resource_prepare_texture(ice, isv->res, isv->view.format, in resolve_sampler_views() 117 (isv->base.format == PIPE_FORMAT_X24S8_UINT || in resolve_sampler_views() 118 isv->base.format == PIPE_FORMAT_X32_S8X24_UINT || in resolve_sampler_views() 119 isv->base.format == PIPE_FORMAT_S8_UINT)) { in resolve_sampler_views() 177 info.src.format = surf->base.texture->format; in crocus_update_align_res() 182 info.dst.format = surf->base.texture->format; in crocus_update_align_res() 183 info.mask = util_format_is_depth_or_stencil(surf->base.texture->format) in crocus_update_align_res() 446 format_aux_tuple(enum isl_format format, enum isl_aux_usage aux_usage) format_aux_tuple() argument 452 crocus_cache_flush_for_render(struct crocus_batch *batch, struct crocus_bo *bo, enum isl_format format, enum isl_aux_usage aux_usage) crocus_cache_flush_for_render() argument 490 crocus_render_cache_add_bo(struct crocus_batch *batch, struct crocus_bo *bo, enum isl_format format, enum isl_aux_usage aux_usage) crocus_render_cache_add_bo() argument [all...] |
H A D | crocus_blit.c | 28 #include "util/format/u_format.h" 319 * different format associate with it. It will not properly cache in tex_cache_flush_hack() 358 pipe_format_for_aspect(enum pipe_format format, unsigned pipe_mask) in pipe_format_for_aspect() argument 361 return util_format_stencil_only(format); in pipe_format_for_aspect() 363 return util_format_get_depth_only(format); in pipe_format_for_aspect() 365 return format; in pipe_format_for_aspect() 374 if (!util_format_has_alpha(dinfo.dst.resource->format)) in crocus_u_blitter() 384 * also perform format conversion, scaling, flipping, and so on. 406 if (!util_format_is_depth_or_stencil(info->src.resource->format) && in crocus_blit() 411 if (util_format_is_depth_or_stencil(info->src.resource->format)) { in crocus_blit() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | TextureStorage11.h | 184 DXGI_FORMAT format, 189 DXGI_FORMAT format, 194 DXGI_FORMAT format, 256 ImageKey(int level, bool layered, int layer, GLenum access, GLenum format); 262 GLenum format; member 341 DXGI_FORMAT format, 346 DXGI_FORMAT format, 351 DXGI_FORMAT format, 426 DXGI_FORMAT format, 431 DXGI_FORMAT format, [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A D | RenderPassDescriptorValidationTests.cpp | 47 wgpu::TextureFormat format, in CreateTexture() 60 descriptor.format = format; in CreateTexture() 70 wgpu::TextureFormat format) { in Create2DAttachment() 72 CreateTexture(device, wgpu::TextureDimension::e2D, format, width, height, 1, 1); in Create2DAttachment() 148 texDesc.format = wgpu::TextureFormat::RGBA8Unorm; in TEST_F() 286 descriptor.format = kColorFormat; in TEST_F() 297 descriptor.format = kDepthStencilFormat; in TEST_F() 308 descriptor.format = kColorFormat; in TEST_F() 320 descriptor.format in TEST_F() 45 CreateTexture(wgpu::Device& device, wgpu::TextureDimension dimension, wgpu::TextureFormat format, uint32_t width, uint32_t height, uint32_t arrayLayerCount, uint32_t mipLevelCount, uint32_t sampleCount = 1, wgpu::TextureUsage usage = wgpu::TextureUsage::RenderAttachment) CreateTexture() argument 67 Create2DAttachment(wgpu::Device& device, uint32_t width, uint32_t height, wgpu::TextureFormat format) Create2DAttachment() argument [all...] |
/third_party/mesa3d/src/intel/blorp/ |
H A D | blorp_blit.c | 1016 unreachable("Unsupported format conversion"); in convert_color() 1435 * rendertarget surface format is performed." in brw_blorp_build_nir_shader() 1441 * negative number the destination format could represent. But the in brw_blorp_build_nir_shader() 1792 get_red_format_for_rgb_format(enum isl_format format) in get_red_format_for_rgb_format() argument 1794 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in get_red_format_for_rgb_format() 1852 get_red_format_for_rgb_format(info->view.format); in surf_fake_rgb_with_red() 1855 isl_format_get_layout(info->view.format)->channels.r.type); in surf_fake_rgb_with_red() 1857 isl_format_get_layout(info->view.format)->channels.r.bits); in surf_fake_rgb_with_red() 1859 info->surf.format = info->view.format in surf_fake_rgb_with_red() 3076 enum isl_format format = isl_format_for_size(block_size); do_buffer_copy() local [all...] |
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | max9286.c | 712 struct v4l2_subdev_format *format) in max9286_set_fmt() 717 if (format->pad == MAX9286_SRC_PAD) in max9286_set_fmt() 721 switch (format->format.code) { in max9286_set_fmt() 728 format->format.code = MEDIA_BUS_FMT_UYVY8_1X16; in max9286_set_fmt() 732 cfg_fmt = max9286_get_pad_format(priv, cfg, format->pad, format->which); in max9286_set_fmt() 737 *cfg_fmt = format->format; in max9286_set_fmt() 710 max9286_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) max9286_set_fmt() argument 743 max9286_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) max9286_get_fmt() argument 800 struct v4l2_mbus_framefmt *format; max9286_open() local [all...] |
H A D | imx214.c | 57 * Serialize control access, get/set format, get selection 553 struct v4l2_subdev_format *format) in imx214_get_format() 558 format->format = *__imx214_get_pad_format(imx214, cfg, format->pad, in imx214_get_format() 559 format->which); in imx214_get_format() 581 struct v4l2_subdev_format *format) in imx214_set_format() 590 __crop = __imx214_get_pad_crop(imx214, cfg, format->pad, format->which); in imx214_set_format() 594 format in imx214_set_format() 551 imx214_get_format(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) imx214_get_format() argument 579 imx214_set_format(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) imx214_set_format() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/imx/ |
H A D | imx-media-capture.c | 115 * pixel format. This should come from the driver using in capture_enum_framesizes() 146 * Find the pixel format, default to the first supported format if not in __capture_try_fmt() 217 /* The compose rectangle is fixed to the source format. */ in capture_g_selection() 223 * size. If the source format width is not burst size aligned, in capture_g_selection() 364 dev_err(priv->dev, "failed to get src_sd format\n"); in capture_legacy_enum_fmt_vid_cap() 368 cc_src = imx_media_find_ipu_format(fmt_src.format.code, in capture_legacy_enum_fmt_vid_cap() 380 cc_src = imx_media_find_mbus_format(fmt_src.format.code, in capture_legacy_enum_fmt_vid_cap() 402 cc = capture_find_format(fmt_src->format.code, pixfmt->pixelformat); in __capture_legacy_try_fmt() 408 switch (fmt_src->format in __capture_legacy_try_fmt() [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | ds90ub913.c | 408 struct v4l2_subdev_format *format) in ub913_set_fmt() 414 if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE && in ub913_set_fmt() 418 /* Source format is fully defined by the sink format, so not settable */ in ub913_set_fmt() 419 if (format->pad == UB913_PAD_SOURCE) in ub913_set_fmt() 420 return v4l2_subdev_get_fmt(sd, state, format); in ub913_set_fmt() 422 finfo = ub913_find_format(format->format.code); in ub913_set_fmt() 425 format->format in ub913_set_fmt() 406 ub913_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, struct v4l2_subdev_format *format) ub913_set_fmt() argument [all...] |
H A D | imx214.c | 57 * Serialize control access, get/set format, get selection 553 struct v4l2_subdev_format *format) in imx214_get_format() 558 format->format = *__imx214_get_pad_format(imx214, sd_state, in imx214_get_format() 559 format->pad, in imx214_get_format() 560 format->which); in imx214_get_format() 583 struct v4l2_subdev_format *format) in imx214_set_format() 592 __crop = __imx214_get_pad_crop(imx214, sd_state, format->pad, in imx214_set_format() 593 format->which); in imx214_set_format() 597 format in imx214_set_format() 551 imx214_get_format(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) imx214_get_format() argument 581 imx214_set_format(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) imx214_set_format() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-resizer.c | 317 * so return if it is bayer format. in rkisp1_rsz_config() 336 * streams should be set according to the media bus format in the src pad. in rkisp1_rsz_config() 447 struct v4l2_mbus_framefmt *format, in rkisp1_rsz_set_src_fmt() 461 rkisp1_rsz_get_yuv_mbus_info(format->code)) in rkisp1_rsz_set_src_fmt() 462 src_fmt->code = format->code; in rkisp1_rsz_set_src_fmt() 464 src_fmt->width = clamp_t(u32, format->width, in rkisp1_rsz_set_src_fmt() 467 src_fmt->height = clamp_t(u32, format->height, in rkisp1_rsz_set_src_fmt() 471 *format = *src_fmt; in rkisp1_rsz_set_src_fmt() 514 struct v4l2_mbus_framefmt *format, in rkisp1_rsz_set_sink_fmt() 532 sink_fmt->code = format in rkisp1_rsz_set_sink_fmt() 445 rkisp1_rsz_set_src_fmt(struct rkisp1_resizer *rsz, struct v4l2_subdev_state *sd_state, struct v4l2_mbus_framefmt *format, unsigned int which) rkisp1_rsz_set_src_fmt() argument 512 rkisp1_rsz_set_sink_fmt(struct rkisp1_resizer *rsz, struct v4l2_subdev_state *sd_state, struct v4l2_mbus_framefmt *format, unsigned int which) rkisp1_rsz_set_sink_fmt() argument [all...] |
/kernel/linux/linux-5.10/tools/lib/api/ |
H A D | debug.c | 7 static int __base_pr(const char *format, ...) in __base_pr() argument 12 va_start(args, format); in __base_pr() 13 err = vfprintf(stderr, format, args); in __base_pr()
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/frame/interface/ |
H A D | ia_css_frame.h | 41 /* @brief Sets the given format to the frame info 45 * @param[in] format The format to be set to info 49 enum ia_css_frame_format format); 57 * @param[in] format The format to be set to info 64 enum ia_css_frame_format format, 141 unsigned int ia_css_frame_pad_width(unsigned int width, enum ia_css_frame_format format);
|
/kernel/liteos_m/testsuites/unittest/xts/io/ |
H A D | xts_io_stdio_test.c | 45 int FormatVsnptf(char *format, ...) in FormatVsnptf() argument 48 va_start(vArgList, format); in FormatVsnptf() 50 int ret = vsnprintf_s(str, sizeof(str), sizeof(str), format, vArgList); in FormatVsnptf()
|
/kernel/linux/linux-6.6/tools/lib/api/ |
H A D | debug.c | 7 static int __base_pr(const char *format, ...) in __base_pr() argument 12 va_start(args, format); in __base_pr() 13 err = vfprintf(stderr, format, args); in __base_pr()
|
/kernel/liteos_a/testsuites/unittest/libc/io/smoke/ |
H A D | IO_test_010.cpp | 34 static VOID GetWideMatches(const wchar_t *str, const wchar_t *format, ...) in GetWideMatches() argument 38 va_start(args, format); in GetWideMatches() 39 vswscanf(str, format, args); in GetWideMatches()
|
/kernel/liteos_a/testsuites/unittest/libc/misc/smoke/ |
H A D | misc_test_005.cpp | 36 static VOID Verrxfuc(INT32 fpid, const char *format, ...) in Verrxfuc() argument 40 va_start(arglist, format); in Verrxfuc() 41 verrx(fpid, format, arglist); in Verrxfuc()
|
H A D | misc_test_004.cpp | 36 static VOID Verrfuc(INT32 fpid, const char *format, ...) in Verrfuc() argument 40 va_start(arglist, format); in Verrfuc() 41 verr(fpid, format, arglist); in Verrfuc()
|
/test/xts/acts/security_lite/huks/common/ |
H A D | hks_test_log.c | 27 void HksTestLog(uint32_t logLevel, const char *funcName, int32_t lineNo, const char *format, ...)
in HksTestLog() argument 32 va_start(ap, format);
in HksTestLog() 33 int32_t ret = vsnprintf_s(buf, MAX_LOG_BUFF_LEN, MAX_LOG_BUFF_LEN - 1, format, ap);
in HksTestLog()
|
/third_party/eudev/hm_src/ |
H A D | log.c | 28 int log_meta(int level, const char*file, int line, const char *func, const char *format, ...) in log_meta() argument 33 int log_metav(int level, const char*file, int line, const char *func, const char *format, va_list ap) in log_metav() argument 44 const char *format, ...) in log_internal() 38 log_internal( int level, int error, const char *file, int line, const char *func, const char *format, ...) log_internal() argument
|
/third_party/PyYAML/packaging/build/ |
H A D | smoketest.py | 10 print('embedded libyaml version is {0}'.format(yaml._yaml.get_version_string())) 17 raise Exception('roundtrip failed with {0}/{1}'.format(loader, dumper)) 18 print('smoke test passed for {0}'.format(sys.executable))
|