/third_party/lame/frontend/ |
H A D | get_audio.c | 942 error_printf("Error: format changed in %s - not supported\n", in read_samples_mp3() 1035 write_32_bits_low_high(fp, 2 + 2 + 4 + 4 + 2 + 2); /* length of PCM format declaration area */ in WriteWaveHeader() 1086 gs_wfInfo.format = SF_FORMAT_RAW; in open_snd_file() 1089 gs_wfInfo.format |= SF_ENDIAN_LITTLE; in open_snd_file() 1092 gs_wfInfo.format |= SF_ENDIAN_BIG; in open_snd_file() 1096 gs_wfInfo.format |= in open_snd_file() 1100 gs_wfInfo.format |= SF_FORMAT_PCM_16; in open_snd_file() 1103 gs_wfInfo.format |= SF_FORMAT_PCM_24; in open_snd_file() 1106 gs_wfInfo.format |= SF_FORMAT_PCM_32; in open_snd_file() 1131 if ((gs_wfInfo.format in open_snd_file() [all...] |
/third_party/mesa3d/src/imgui/ |
H A D | imgui_internal.h | 185 IMGUI_API const char* ImParseFormatFindStart(const char* format); 186 IMGUI_API const char* ImParseFormatFindEnd(const char* format); 187 IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); 188 IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); 567 int CurLenA, CurLenW; // we need to maintain our buffer length in both UTF-8 and wchar format. 1472 IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* v, float v_speed, const void* v_min, const void* v_max, const char* format, float power, ImGuiDragFlags flags); 1473 IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* v, const void* v_min, const void* v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb); 1481 // e.g. " extern template IMGUI_API float RoundScalarWithFormatT<float, float>(const char* format, ImGuiDataType data_type, float v); " 1482 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, const T v_min, const T v_max, const char* format, float power, ImGuiDragFlags flags); 1483 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, const T v_min, const T v_max, const char* format, floa [all...] |
/third_party/rust/crates/clap/src/builder/ |
H A D | command.rs | 469 Error::raw(kind, message).format(self) in error() 1480 /// **NOTE:** Only `Command::about` (short format) is used in completion 1503 /// **NOTE:** Only [`Command::about`] (short format) is used in completion 1737 /// Sets the help template to be used, overriding the default format. 1951 /// `--save-*` above also had a `--format=TYPE` option. Let's say it 1953 /// only `--format=json` is allowed, or valid. We could change the example 1965 /// .arg(Arg::new("format") 1966 /// .long("format") 1969 /// .replace("--save-all", &["--save-context", "--save-runtime", "--format=json"]) 1974 /// assert_eq!(m.get_one::<String>("format") [all...] |
/third_party/python/Lib/ |
H A D | subprocess.py | 488 args = ['args={!r}'.format(self.args), 489 'returncode={!r}'.format(self.returncode)] 491 args.append('stdout={!r}'.format(self.stdout)) 493 args.append('stderr={!r}'.format(self.stderr)) 494 return "{}({})".format(type(self).__name__, ', '.join(args)) 723 # reject unknown format 916 .format(type(group))) 946 .format(type(extra_group))) 1529 args = '{} /c "{}"'.format (comspec, args) 1663 raise ValueError("Unsupported signal: {}".format(si [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/ |
H A D | vktRasterizationOrderAttachmentAccessTests.cpp | 832 const auto format = getColorFormat(); in checkSupport() local 839 const auto result = vki.getPhysicalDeviceImageFormatProperties(physicalDevice, format, imageType, imageTiling, imageUsage, 0u, &formatProperties); in checkSupport() 843 TCU_THROW(NotSupportedError, "format " + de::toString(format) + " does not support the required features"); in checkSupport() 863 // Check depth/stencil format support if needed. in checkSupport() 866 const auto format = checkAndGetDSFormat(context); in checkSupport() local 867 if (format == VK_FORMAT_UNDEFINED) in checkSupport() 959 attFormat, // VkFormat format; in createAttachments() 981 colorImageCreateInfo.format = attFormat; in createAttachments() 994 attFormat, // VkFormat format; in createAttachments() 1251 VkFormat format = attFormat; createRenderPass() local [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_image.cpp | 87 SpvImageFormat format = SpvImageFormatMax; member 117 info->format = static_cast<SpvImageFormat>(inst->word(8)); in GetImageTypeInfo() 868 if (info.format != SpvImageFormatUnknown) { in ValidateTypeImage() 870 << "Dim SubpassData requires format Unknown"; in ValidateTypeImage() 1147 if ((info.format != SpvImageFormatR64i) && in ValidateImageTexelPointer() 1148 (info.format != SpvImageFormatR64ui) && in ValidateImageTexelPointer() 1149 (info.format != SpvImageFormatR32f) && in ValidateImageTexelPointer() 1150 (info.format != SpvImageFormatR32i) && in ValidateImageTexelPointer() 1151 (info.format != SpvImageFormatR32ui)) { in ValidateImageTexelPointer() 1603 if (info.format in ValidateImageRead() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | validationESEXT.cpp | 29 GLenum format, in ValidateGetImageFormatAndType() 33 if (!ValidES3Format(format) && (format != implFormat || format == GL_NONE)) in ValidateGetImageFormatAndType() 241 GLenum format, in ValidateGetTexImageANGLE() 273 if (!ValidateGetImageFormatAndType(context, entryPoint, texture, format, type)) in ValidateGetTexImageANGLE() 280 if (!ValidatePixelPack(context, entryPoint, format, type, 0, 0, width, height, -1, nullptr, in ValidateGetTexImageANGLE() 314 GLenum format, in ValidateGetRenderbufferImageANGLE() 332 if (!ValidateGetImageFormatAndType(context, entryPoint, renderbuffer, format, type)) in ValidateGetRenderbufferImageANGLE() 339 if (!ValidatePixelPack(context, entryPoint, format, typ in ValidateGetRenderbufferImageANGLE() 26 ValidateGetImageFormatAndType(const Context *context, angle::EntryPoint entryPoint, ObjectT *obj, GLenum format, GLenum type) ValidateGetImageFormatAndType() argument 237 ValidateGetTexImageANGLE(const Context *context, angle::EntryPoint entryPoint, TextureTarget target, GLint level, GLenum format, GLenum type, const void *pixels) ValidateGetTexImageANGLE() argument 311 ValidateGetRenderbufferImageANGLE(const Context *context, angle::EntryPoint entryPoint, GLenum target, GLenum format, GLenum type, const void *pixels) ValidateGetRenderbufferImageANGLE() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_image.cpp | 87 SpvImageFormat format = SpvImageFormatMax; member 117 info->format = static_cast<SpvImageFormat>(inst->word(8)); in GetImageTypeInfo() 868 if (info.format != SpvImageFormatUnknown) { in ValidateTypeImage() 870 << "Dim SubpassData requires format Unknown"; in ValidateTypeImage() 1147 if ((info.format != SpvImageFormatR64i) && in ValidateImageTexelPointer() 1148 (info.format != SpvImageFormatR64ui) && in ValidateImageTexelPointer() 1149 (info.format != SpvImageFormatR32f) && in ValidateImageTexelPointer() 1150 (info.format != SpvImageFormatR32i) && in ValidateImageTexelPointer() 1151 (info.format != SpvImageFormatR32ui)) { in ValidateImageTexelPointer() 1603 if (info.format in ValidateImageRead() [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | CopyTests.cpp | 32 wgpu::TextureFormat format = kDefaultFormat; member 86 wgpu::TextureFormat format = kDefaultFormat) { in GetExpectedTextureData() 89 format); in GetExpectedTextureData() 95 wgpu::TextureFormat format = kDefaultFormat) { in GetExpectedTextureData() 96 uint32_t bytesPerRow = utils::GetMinimumBytesPerRow(format, copyExtent.width); in GetExpectedTextureData() 106 utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, copyExtent, format); in GetExpectedTextureData() 138 ASSERT_EQ(kDefaultFormat, textureSpec.format); in GetExpectedTextureData() 140 const uint32_t bytesPerTexel = utils::GetTexelBlockSizeInBytes(textureSpec.format); in GetExpectedTextureData() 146 descriptor.format = textureSpec.format; in GetExpectedTextureData() 359 const wgpu::TextureFormat format = srcSpec.format; GetExpectedTextureData() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_fstring.py | 48 self.assertEqual(f'{y}', format(y)) 50 self.assertEqual(format(x), format(y)) 625 # This looks like a nested format spec. 634 [# Can't nest format specifiers. 1041 # Not a conversion, but show that ! is allowed in a format spec. 1083 # Can't have { or } in a format spec. 1167 self.assertEqual('{d[a]}'.format(d=d), 'string') 1168 self.assertEqual('{d[0]}'.format(d=d), 'integer') 1176 self.assertAllRaise(ValueError, 'Unknown format cod [all...] |
H A D | test_nntplib.py | 508 raise ValueError("line doesn't end with \\r\\n: {!r}".format(line)) 519 raise ValueError("command failed: {!r}".format(line)) from e 556 self.push_lit("411 No such group {}".format(group)) 642 # Date was passed in RFC 3977 format (NNTP "v2") 650 # Date was passed in RFC 977 format (NNTP "v1") 728 Content-Type: text/plain; charset=UTF-8; format=flowed 791 raise Exception('Unknown cred type {}'.format(cred_type)) 810 self.push_lit(fmt.format('\n AUTHINFO USER')) 812 self.push_lit(fmt.format('')) 849 self.push_lit(fmt.format('')) [all...] |
/third_party/python/Parser/ |
H A D | asdl_c.py | 93 fields = "({})".format(fields) 94 return "{}{}".format(name, fields) 99 sep = "\n{}| ".format(" " * (len(name) + 1)) 103 return "{} = {}".format(name, types) 517 format = "PyErr_Format(PyExc_TypeError, \"%s\", obj);" 518 self.emit(format % error, 1, reflow=False) 639 format = "PyErr_SetString(PyExc_TypeError, \"%s\");" 640 self.emit(format % message, depth+1, reflow=False) 1360 "PyList_SET_ITEM(value, i, ast2obj_{0}(state, ({0}_ty)asdl_seq_GET({1}, i)));".format( 1657 auto_gen_msg = AUTOGEN_MESSAGE.format("/" [all...] |
/third_party/rust/crates/serde/serde_derive_internals/src/ |
H A D | attr.rs | 44 let msg = format!("duplicate serde attribute `{}`", self.name); in set() 119 let msg = format!("duplicate serde attribute `{}`", self.name); in at_most_one() 1104 format!("field `{}` does not have lifetime {}", ident, lifetime); in from_ast() 1205 let msg = format!( in from_ast() 1491 format!("unexpected suffix `{}` on string literal", suffix), in get_lit_str2() 1498 format!( in get_lit_str2() 1522 format!("failed to parse path: {:?}", string.value()), in parse_lit_into_path() 1544 format!("failed to parse path: {:?}", string.value()), in parse_lit_into_expr_path() 1588 format!("failed to parse type: {} = {:?}", attr_name, string.value()), in parse_lit_into_ty() 1613 format!("duplicat in parse_lit_into_lifetimes() [all...] |
/third_party/rust/crates/serde/serde_derive/src/internals/ |
H A D | attr.rs | 44 let msg = format!("duplicate serde attribute `{}`", self.name); in set() 119 let msg = format!("duplicate serde attribute `{}`", self.name); in at_most_one() 1104 format!("field `{}` does not have lifetime {}", ident, lifetime); in from_ast() 1205 let msg = format!( in from_ast() 1491 format!("unexpected suffix `{}` on string literal", suffix), in get_lit_str2() 1498 format!( in get_lit_str2() 1522 format!("failed to parse path: {:?}", string.value()), in parse_lit_into_path() 1544 format!("failed to parse path: {:?}", string.value()), in parse_lit_into_expr_path() 1588 format!("failed to parse type: {} = {:?}", attr_name, string.value()), in parse_lit_into_ty() 1613 format!("duplicat in parse_lit_into_lifetimes() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/rasterization/ |
H A D | vktRasterizationOrderAttachmentAccessTests.cpp | 832 const auto format = getColorFormat(); in checkSupport() local 839 const auto result = vki.getPhysicalDeviceImageFormatProperties(physicalDevice, format, imageType, imageTiling, imageUsage, 0u, &formatProperties); in checkSupport() 843 TCU_THROW(NotSupportedError, "Error: format " + de::toString(format) + " does not support the required features"); in checkSupport() 863 // Check depth/stencil format support if needed. in checkSupport() 866 const auto format = checkAndGetDSFormat(context); in checkSupport() local 867 if (format == VK_FORMAT_UNDEFINED) in checkSupport() 959 attFormat, // VkFormat format; in createAttachments() 981 colorImageCreateInfo.format = attFormat; in createAttachments() 994 attFormat, // VkFormat format; in createAttachments() 1251 VkFormat format = attFormat; createRenderPass() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/util/ |
H A D | vktExternalMemoryUtil.cpp | 1372 vk::VkFormat format, in createExternalImage() 1396 format, in createExternalImage() 1536 virtual vk::pt::AndroidHardwareBufferPtr allocate(deUint32 width, deUint32 height, deUint32 layers, deUint32 format, deUint64 usage); 1543 deUint32* format, 1564 deUint32 format, in allocate() 1571 format, in allocate() 1598 deUint32* format, in describe() 1607 if (format) *format = desc.format; in describe() 1368 createExternalImage(const vk::DeviceInterface& vkd, vk::VkDevice device, deUint32 queueFamilyIndex, vk::VkExternalMemoryHandleTypeFlagBits externalType, vk::VkFormat format, deUint32 width, deUint32 height, vk::VkImageTiling tiling, vk::VkImageCreateFlags createFlags, vk::VkImageUsageFlags usageFlags, deUint32 mipLevels, deUint32 arrayLayers) createExternalImage() argument 1561 allocate( deUint32 width, deUint32 height, deUint32 layers, deUint32 format, deUint64 usage) allocate() argument 1594 describe( const vk::pt::AndroidHardwareBufferPtr buffer, deUint32* width, deUint32* height, deUint32* layers, deUint32* format, deUint64* usage, deUint32* stride) describe() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | BlitGL.cpp | 280 GLenum format = gl::GetUnsizedFormat(internalFormat); in copyImageToLUMAWorkaroundTexture() local 290 sourceArea.width, sourceArea.height, 0, format, readType, nullptr)); in copyImageToLUMAWorkaroundTexture() 723 sourceInternalFormatInfo.format, sourceInternalFormatInfo.type); in copySubTextureCPUReadback() 730 sourceArea.width, sourceArea.height, 0, texImageFormat.format, in copySubTextureCPUReadback() 802 destInternalFormatInfo.format, destInternalFormatInfo.componentType, readPixelsArea.width, in copySubTextureCPUReadback() 817 texSubImageFormat.format, texSubImageFormat.type, destMemory)); in copySubTextureCPUReadback() 1061 mSRGBMipmapGenerationFormat.format, mSRGBMipmapGenerationFormat.type, in generateSRGBMipmap() 1171 // Pass the 'format' instead of 'internalFormat' to make sure we use unsized formats in initializeResources() 1174 nativegl::GetTexImageFormat(mFunctions, mFeatures, internalFormatInfo.format, in initializeResources() 1175 internalFormatInfo.format, internalFormatInf in initializeResources() [all...] |
/build/hb/services/ |
H A D | menu.py | 83 result = self._list_promt(arg.arg_name, 'select {} value'.format( 103 product_path_dict['{}@{}'.format(product, 220 '{} question: {}'.format(name, error)) 328 # helper to convert from question format to internal format
|
/build/indep_configs/scripts/ |
H A D | generate_components.py | 166 innerapi_label = "{}:{}".format(os.path.join("//binarys", path), innerapi_name) 170 innerapi_label = "{}:{}".format(os.path.join("//binarys", path, "innerapis", innerapi_name), innerapi_name) 175 innerapi_label = "{}:{}".format(os.path.join("//binarys", path, "innerapis",
|
/build/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_json_check.py | 71 print('There are {} issues in total'.format(count)) 85 cmd = "find {} -name {}".format(path, "bundle.json") 87 cmd += " ! -path {}".format(i) 472 # exclusive output format 474 ex_format.add_argument("--xlsx", help="output format: xls(default).", 476 ex_format.add_argument("--json", help="output format: json.",
|
/drivers/peripheral/audio/test/benchmarktest/adapter/ |
H A D | audio_adapter_benchmarktest.cpp | 87 attrs.format = AUDIO_FORMAT_TYPE_PCM_16_BIT;
in InitAttrs() 181 attrs.format = AUDIO_FORMAT_TYPE_PCM_32_BIT;
in BENCHMARK_F() 208 attrs.format = AUDIO_FORMAT_TYPE_PCM_32_BIT;
in BENCHMARK_F()
|
/drivers/peripheral/camera/test/ut/v4l2/ |
H A D | usb_camera_test_mult.cpp | 412 uint32_t format = 0; in TEST_F() local 414 format = entry.data.i32[entry.count - 6]; // 6:The sixth digit from the bottom is the format of video in TEST_F() 416 videoFormat_ = ConvertPixfmtHal2V4l2(format); in TEST_F()
|
/drivers/peripheral/camera/vdi_base/common/utils/exif/ |
H A D | exif_utils.cpp | 36 static ExifEntry *CreateTag(ExifData *exif, ExifIfd ifd, ExifTag tag, size_t len, ExifFormat format) in CreateTag() argument 54 entry->format = format; in CreateTag()
|
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/ |
H A D | audio_render_interface_impl.cpp | 42 devAttrs_.frameSize = CalculateFrameSize(attrs.sampleRate, attrs.channelCount, attrs.format, in AudioRenderInterfaceImpl() 99 DHLOGD("Render frame[sampleRate: %{public}u, channelCount: %{public}u, format: %{public}d, frameSize: %{public}u].", in RenderFrame() 100 devAttrs_.sampleRate, devAttrs_.channelCount, devAttrs_.format, devAttrs_.frameSize); in RenderFrame() 109 AudioParameter param = { devAttrs_.format, devAttrs_.channelCount, devAttrs_.sampleRate, 0, in RenderFrame()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_dfx.cpp | 83 static std::string GetCurrentTime(const int32_t format) in GetCurrentTime() argument 98 if (format == TIME_FORMAT_1) { in GetCurrentTime() 103 } else if (format == TIME_FORMAT_2) { in GetCurrentTime() 109 THERMAL_HILOGW(COMP_HDI, "invalid format value"); in GetCurrentTime()
|