/third_party/node/test/parallel/ |
H A D | test-util-format.js | 28 assert.strictEqual(util.format(), ''); 29 assert.strictEqual(util.format(''), ''); 30 assert.strictEqual(util.format([]), '[]'); 31 assert.strictEqual(util.format([0]), '[ 0 ]'); 32 assert.strictEqual(util.format({}), '{}'); 33 assert.strictEqual(util.format({ foo: 42 }), '{ foo: 42 }'); 34 assert.strictEqual(util.format(null), 'null'); 35 assert.strictEqual(util.format(true), 'true'); 36 assert.strictEqual(util.format(false), 'false'); 37 assert.strictEqual(util.format('tes [all...] |
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
H A D | test_VIDIOC_ENUM_FMT.c | 45 struct v4l2_fmtdesc format; in do_enumerate_formats() local 51 memset(&format, 0xff, sizeof(format)); in do_enumerate_formats() 52 format.index = i; in do_enumerate_formats() 53 format.type = type; in do_enumerate_formats() 55 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in do_enumerate_formats() 63 CU_ASSERT_EQUAL(format.index, i); in do_enumerate_formats() 64 //CU_ASSERT_EQUAL(format.type, ?); in do_enumerate_formats() 65 //CU_ASSERT_EQUAL(format.flags, ?); in do_enumerate_formats() 67 CU_ASSERT(0 < strlen((char *)format in do_enumerate_formats() 135 struct v4l2_fmtdesc format; test_VIDIOC_ENUM_FMT_S32_MAX() local 163 struct v4l2_fmtdesc format; test_VIDIOC_ENUM_FMT_S32_MAX_1() local 191 struct v4l2_fmtdesc format; test_VIDIOC_ENUM_FMT_U32_MAX() local 219 struct v4l2_fmtdesc format; test_VIDIOC_ENUM_FMT_invalid_type() local 353 struct v4l2_fmtdesc format; test_VIDIOC_ENUM_FMT_NULL() local [all...] |
/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
H A D | cpp_message_field.cc | 1 // Protocol Buffers - Google's data interchange format 96 Formatter format(printer, variables_); in GeneratePrivateMembers() 98 format("::$proto_ns$::MessageLite* $name$_;\n"); in GeneratePrivateMembers() 100 format("$type$* $name$_;\n"); in GeneratePrivateMembers() 106 Formatter format(printer, variables_); in GenerateAccessorDeclarations() 108 format( in GenerateAccessorDeclarations() 119 format( in GenerateAccessorDeclarations() 129 format( in GenerateAccessorDeclarations() 137 format( in GenerateAccessorDeclarations() 145 format( in GenerateAccessorDeclarations() [all...] |
H A D | cpp_message.cc | 1 // Protocol Buffers - Google's data interchange format 98 void PrintPresenceCheck(const Formatter& format, const FieldDescriptor* field, in PrintPresenceCheck() argument 105 format("cached_has_bits = _has_bits_[$1$];\n", *cached_has_word_index); in PrintPresenceCheck() 109 format("if (cached_has_bits & 0x$1$u) {\n", mask); in PrintPresenceCheck() 111 format("if (has_$1$()) {\n", FieldName(field)); in PrintPresenceCheck() 113 format.Indent(); in PrintPresenceCheck() 209 Formatter format(printer); in EmitFieldNonDefaultCondition() 210 format.Set("prefix", prefix); in EmitFieldNonDefaultCondition() 211 format.Set("name", FieldName(field)); in EmitFieldNonDefaultCondition() 216 format("i in EmitFieldNonDefaultCondition() 781 GenerateSingularFieldHasBits( const FieldDescriptor* field, Formatter format) GenerateSingularFieldHasBits() argument 862 GenerateOneofMemberHasBits(const FieldDescriptor* field, const Formatter& format) GenerateOneofMemberHasBits() argument 907 GenerateFieldClear(const FieldDescriptor* field, bool is_inline, Formatter format) GenerateFieldClear() argument [all...] |
H A D | cpp_enum_field.cc | 1 // Protocol Buffers - Google's data interchange format 71 Formatter format(printer, variables_); in GeneratePrivateMembers() 72 format("int $name$_;\n"); in GeneratePrivateMembers() 77 Formatter format(printer, variables_); in GenerateAccessorDeclarations() 78 format( in GenerateAccessorDeclarations() 90 Formatter format(printer, variables_); in GenerateInlineAccessorDefinitions() 91 format( in GenerateInlineAccessorDefinitions() 102 format(" assert($type$_IsValid(value));\n"); in GenerateInlineAccessorDefinitions() 104 format( in GenerateInlineAccessorDefinitions() 116 Formatter format(printe in GenerateClearingCode() [all...] |
H A D | cpp_string_field.cc | 1 // Protocol Buffers - Google's data interchange format 98 Formatter format(printer, variables_); in GeneratePrivateMembers() 100 format("::$proto_ns$::internal::InlinedStringField $name$_;\n"); in GeneratePrivateMembers() 114 format("::$proto_ns$::internal::ArenaStringPtr $name$_;\n"); in GeneratePrivateMembers() 119 Formatter format(printer, variables_); in GenerateStaticMembers() 123 format( in GenerateStaticMembers() 133 Formatter format(printer, variables_); in GenerateAccessorDeclarations() 155 format.Outdent(); in GenerateAccessorDeclarations() 156 format( in GenerateAccessorDeclarations() 159 format in GenerateAccessorDeclarations() [all...] |
H A D | cpp_primitive_field.cc | 1 // Protocol Buffers - Google's data interchange format 130 Formatter format(printer, variables_); in GeneratePrivateMembers() 131 format("$type$ $name$_;\n"); in GeneratePrivateMembers() 136 Formatter format(printer, variables_); in GenerateAccessorDeclarations() 137 format( in GenerateAccessorDeclarations() 149 Formatter format(printer, variables_); in GenerateInlineAccessorDefinitions() 150 format( in GenerateInlineAccessorDefinitions() 171 Formatter format(printer, variables_); in GenerateClearingCode() 172 format("$name$_ = $default$;\n"); in GenerateClearingCode() 176 Formatter format(printe in GenerateMergingCode() [all...] |
H A D | cpp_file.cc | 1 // Protocol Buffers - Google's data interchange format 153 Formatter format(printer, variables_); in GenerateMacroUndefs() 175 format( in GenerateMacroUndefs() 184 Formatter format(printer, variables_); in GenerateHeader() 188 format("#define $1$$ dllexport_decl$\n", FileDllExport(file_, options_)); in GenerateHeader() 193 format( in GenerateHeader() 205 NamespaceOpener ns(Namespace(file_, options_), format); in GenerateHeader() local 207 format("\n"); in GenerateHeader() 211 format(kThickSeparator); in GenerateHeader() 212 format("\ in GenerateHeader() 315 NamespaceOpener ns(Namespace(file_, options_), format); GeneratePBHeader() local 586 NamespaceOpener ns(Namespace(file_, options_), format); GenerateSourceForMessage() local 601 NamespaceOpener proto_ns(ProtobufNamespace(options_), format); GenerateSourceForMessage() local 624 NamespaceOpener ns(Namespace(file_, options_), format); GenerateGlobalSource() local 655 NamespaceOpener ns(Namespace(file_, options_), format); GenerateSource() local 679 NamespaceOpener ns(Namespace(file_, options_), format); GenerateSource() local 717 NamespaceOpener proto_ns(ProtobufNamespace(options_), format); GenerateSource() local 1135 Print(const Formatter& format, const Options& options) const Print() argument 1156 PrintTopLevelDecl(const Formatter& format, const Options& options) const PrintTopLevelDecl() argument 1511 NamespaceOpener proto_ns(ProtobufNamespace(options_), format); GenerateProto2NamespaceEnumSpecializations() local [all...] |
H A D | cpp_service.cc | 1 // Protocol Buffers - Google's data interchange format 48 Formatter* format) { in InitMethodVariables() 49 format->Set("name", method->name()); in InitMethodVariables() 50 format->Set("input_type", QualifiedClassName(method->input_type(), options)); in InitMethodVariables() 51 format->Set("output_type", in InitMethodVariables() 68 Formatter format(printer, vars_); in GenerateDeclarations() 70 format( in GenerateDeclarations() 79 Formatter format(printer, vars_); in GenerateInterface() 80 format( in GenerateInterface() 89 format( in GenerateInterface() 47 InitMethodVariables(const MethodDescriptor* method, const Options& options, Formatter* format) InitMethodVariables() argument [all...] |
H A D | cpp_map_field.cc | 1 // Protocol Buffers - Google's data interchange format 102 Formatter format(printer, variables_); in GeneratePrivateMembers() 103 format( in GeneratePrivateMembers() 114 Formatter format(printer, variables_); in GenerateAccessorDeclarations() 115 format( in GenerateAccessorDeclarations() 131 Formatter format(printer, variables_); in GenerateInlineAccessorDefinitions() 132 format( in GenerateInlineAccessorDefinitions() 156 Formatter format(printer, variables_); in GenerateClearingCode() 157 format("$name$_.Clear();\n"); in GenerateClearingCode() 161 Formatter format(printe in GenerateMergingCode() 176 GenerateSerializationLoop(const Formatter& format, bool string_key, bool string_value, bool is_deterministic) GenerateSerializationLoop() argument [all...] |
H A D | cpp_enum.cc | 1 // Protocol Buffers - Google's data interchange format 93 Formatter format(printer, variables_); in GenerateDefinition() 94 format("enum ${1$$classname$$}$ : int {\n", descriptor_); in GenerateDefinition() 95 format.Indent(); in GenerateDefinition() 101 auto format_value = format; in GenerateDefinition() 125 if (descriptor_->value_count() > 0) format(",\n"); in GenerateDefinition() 126 format( in GenerateDefinition() 133 format.Outdent(); in GenerateDefinition() 134 format("\n};\n"); in GenerateDefinition() 136 format( in GenerateDefinition() [all...] |
/third_party/mesa3d/src/vulkan/util/ |
H A D | vk_format.h | 29 #include "util/format/u_format.h" 40 vk_format_aspects(VkFormat format); 43 vk_format_is_color(VkFormat format) in vk_format_is_color() argument 45 return vk_format_aspects(format) == VK_IMAGE_ASPECT_COLOR_BIT; in vk_format_is_color() 49 vk_format_is_depth_or_stencil(VkFormat format) in vk_format_is_depth_or_stencil() argument 51 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_is_depth_or_stencil() 56 vk_format_has_depth(VkFormat format) in vk_format_has_depth() argument 58 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_has_depth() 63 vk_format_has_stencil(VkFormat format) in vk_format_has_stencil() argument 65 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_has_stencil() 70 vk_format_depth_only(VkFormat format) vk_format_depth_only() argument 86 vk_format_stencil_only(VkFormat format) vk_format_stencil_only() argument 96 vk_format_is_int(VkFormat format) vk_format_is_int() argument 102 vk_format_is_sint(VkFormat format) vk_format_is_sint() argument 108 vk_format_is_uint(VkFormat format) vk_format_is_uint() argument 114 vk_format_is_unorm(VkFormat format) vk_format_is_unorm() argument 120 vk_format_is_snorm(VkFormat format) vk_format_is_snorm() argument 126 vk_format_is_float(VkFormat format) vk_format_is_float() argument 132 vk_format_is_srgb(VkFormat format) vk_format_is_srgb() argument 138 vk_format_get_blocksize(VkFormat format) vk_format_get_blocksize() argument 144 vk_format_get_blockwidth(VkFormat format) vk_format_get_blockwidth() argument 150 vk_format_get_blockheight(VkFormat format) vk_format_get_blockheight() argument 156 vk_format_is_compressed(VkFormat format) vk_format_is_compressed() argument 163 vk_format_description(VkFormat format) vk_format_description() argument 169 vk_format_get_component_bits(VkFormat format, enum util_format_colorspace colorspace, unsigned component) vk_format_get_component_bits() argument 178 vk_format_get_nr_components(VkFormat format) vk_format_get_nr_components() argument 184 vk_format_has_alpha(VkFormat format) vk_format_has_alpha() argument 190 vk_format_get_blocksizebits(VkFormat format) vk_format_get_blocksizebits() argument 196 vk_format_get_plane_count(VkFormat format) vk_format_get_plane_count() argument [all...] |
/third_party/mesa3d/src/util/format/ |
H A D | u_format_table.py | 79 def has_access(format): 116 if format.short_name() in noaccess_formats: 118 if format.layout in ('astc', 'atc'): 120 if format.layout == 'etc' and format.short_name() != 'etc1_rgb8': 130 print('#include "util/format/u_format.h"', file=file) 169 comment = colorspace_channels_map[format.colorspace][i] 180 print("util_format_%sdescription%s(enum pipe_format format)" % (type, suffix)) 182 print(" assert(format < PIPE_FORMAT_COUNT);") 183 print(" return &util_format_%sdescriptions[format];" [all...] |
H A D | u_format.h | 49 * Describe how to pack/unpack pixels into/from the prescribed format. 151 enum pipe_format format; member 178 * Whether the pixel format can be described as a bitfield structure. 192 * Whether the format contains UNORM channels 197 * Whether the format contains SNORM channels 415 util_format_description(enum pipe_format format) ATTRIBUTE_CONST; 418 util_format_pack_description(enum pipe_format format) ATTRIBUTE_CONST; 422 util_format_unpack_description(enum pipe_format format) ATTRIBUTE_CONST; 426 util_format_unpack_description_generic(enum pipe_format format) ATTRIBUTE_CONST; 429 util_format_unpack_description_neon(enum pipe_format format) ATTRIBUTE_CONS 448 util_format_name(enum pipe_format format) util_format_name() argument 461 util_format_short_name(enum pipe_format format) util_format_short_name() argument 477 util_format_is_plain(enum pipe_format format) util_format_is_plain() argument 489 util_format_is_compressed(enum pipe_format format) util_format_is_compressed() argument 514 util_format_is_s3tc(enum pipe_format format) util_format_is_s3tc() argument 527 util_format_is_etc(enum pipe_format format) util_format_is_etc() argument 540 util_format_is_srgb(enum pipe_format format) util_format_is_srgb() argument 561 util_format_is_depth_or_stencil(enum pipe_format format) util_format_is_depth_or_stencil() argument 575 util_format_is_depth_and_stencil(enum pipe_format format) util_format_is_depth_and_stencil() argument 592 util_format_get_depth_only(enum pipe_format format) util_format_get_depth_only() argument 610 util_format_is_yuv(enum pipe_format format) util_format_is_yuv() argument 653 util_format_get_mask(enum pipe_format format) util_format_get_mask() argument 809 util_format_is_rgbx_or_bgrx(enum pipe_format format) util_format_is_rgbx_or_bgrx() argument 824 util_format_get_blocksizebits(enum pipe_format format) util_format_get_blocksizebits() argument 840 util_format_get_blocksize(enum pipe_format format) util_format_get_blocksize() argument 855 util_format_get_blockwidth(enum pipe_format format) util_format_get_blockwidth() argument 868 util_format_get_blockheight(enum pipe_format format) util_format_get_blockheight() argument 881 util_format_get_blockdepth(enum pipe_format format) util_format_get_blockdepth() argument 894 util_format_get_nblocksx(enum pipe_format format, unsigned x) util_format_get_nblocksx() argument 902 util_format_get_nblocksy(enum pipe_format format, unsigned y) util_format_get_nblocksy() argument 910 util_format_get_nblocksz(enum pipe_format format, unsigned z) util_format_get_nblocksz() argument 918 util_format_get_nblocks(enum pipe_format format, unsigned width, unsigned height) util_format_get_nblocks() argument 927 util_format_get_stride(enum pipe_format format, unsigned width) util_format_get_stride() argument 934 util_format_get_2d_size(enum pipe_format format, size_t stride, unsigned height) util_format_get_2d_size() argument 942 util_format_get_component_bits(enum pipe_format format, enum util_format_colorspace colorspace, uint component) util_format_get_component_bits() argument 989 util_format_srgb(enum pipe_format format) util_format_srgb() argument 1102 util_format_linear(enum pipe_format format) util_format_linear() argument 1212 util_format_stencil_only(enum pipe_format format) util_format_stencil_only() argument 1241 util_format_intensity_to_red(enum pipe_format format) util_format_intensity_to_red() argument 1279 util_format_luminance_to_red(enum pipe_format format) util_format_luminance_to_red() argument 1353 util_format_get_num_planes(enum pipe_format format) util_format_get_num_planes() argument 1366 util_format_get_plane_format(enum pipe_format format, unsigned plane) util_format_get_plane_format() argument 1395 util_format_get_plane_width(enum pipe_format format, unsigned plane, unsigned width) util_format_get_plane_width() argument 1419 util_format_get_plane_height(enum pipe_format format, unsigned plane, unsigned height) util_format_get_plane_height() argument 1443 util_format_get_nr_components(enum pipe_format format) util_format_get_nr_components() argument 1454 util_format_get_first_non_void_channel(enum pipe_format format) util_format_get_first_non_void_channel() argument 1486 util_format_unpack_z_float(enum pipe_format format, float *dst, const void *src, unsigned w) util_format_unpack_z_float() argument 1496 util_format_unpack_z_32unorm(enum pipe_format format, uint32_t *dst, const void *src, unsigned w) util_format_unpack_z_32unorm() argument 1506 util_format_unpack_s_8uint(enum pipe_format format, uint8_t *dst, const void *src, unsigned w) util_format_unpack_s_8uint() argument 1520 util_format_unpack_rgba(enum pipe_format format, void *dst, const void *src, unsigned w) util_format_unpack_rgba() argument 1530 util_format_pack_z_float(enum pipe_format format, void *dst, const float *src, unsigned w) util_format_pack_z_float() argument 1540 util_format_pack_z_32unorm(enum pipe_format format, void *dst, const uint32_t *src, unsigned w) util_format_pack_z_32unorm() argument 1550 util_format_pack_s_8uint(enum pipe_format format, void *dst, const uint8_t *src, unsigned w) util_format_pack_s_8uint() argument 1565 util_format_pack_rgba(enum pipe_format format, void *dst, const void *src, unsigned w) util_format_pack_rgba() argument [all...] |
H A D | u_format_pack.py | 32 * Pixel format packing and unpacking functions. 53 def print_channels(format, func): 54 if format.nr_channels() <= 1: 55 func(format.le_channels, format.le_swizzles) 57 if (format.le_channels == format.be_channels and 58 [c.shift for c in format.le_channels] == 59 [c.shift for c in format.be_channels] and 60 format [all...] |
/test/xts/acts/multimedia/avsource/entry/src/main/cpp/ |
H A D | audiodecoderxdlndk.cpp | 104 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData)
in OnStreamChanged() argument 107 (void)format;
in OnStreamChanged() 146 OH_AVFormat *format = nullptr;
in AudioDecoderConfigure() local 147 format = OH_AVFormat_Create();
in AudioDecoderConfigure() 148 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE);
in AudioDecoderConfigure() 149 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE);
in AudioDecoderConfigure() 150 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT);
in AudioDecoderConfigure() 151 OH_AVFormat_SetIntValue(format, OH_MD_KEY_MAX_INPUT_SIZE, DEFAULT_MAX_INPUT_SIZE);
in AudioDecoderConfigure() 152 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE);
in AudioDecoderConfigure() 154 return TestInitAVErrCode(env, OH_AudioDecoder_Configure(audioDec, format));
in AudioDecoderConfigure() 159 OH_AVFormat *format = nullptr; AudioDecoderPrepare() local 176 OH_AVFormat *format = nullptr; AudioDecoderStart() local 199 OH_AVFormat *format = nullptr; AudioDecoderStop() local 224 OH_AVFormat *format = nullptr; AudioDecoderFlush() local 250 OH_AVFormat *format = nullptr; AudioDecoderReset() local 276 OH_AVFormat *format = nullptr; AudioDecoderGetOutputDescription() local 303 OH_AVFormat *format = nullptr; AudioDecoderSetParameter() local 333 OH_AVFormat *format = nullptr; AudioDecoderIsValid() local 401 OH_AVFormat *format = nullptr; OHAudioDecoderStartAnormal() local 424 OH_AVFormat *format = nullptr; OHAudioDecoderStartBnormal() local 447 OH_AVFormat *format = nullptr; OHAudioDecoderStartCnormal() local 467 OH_AVFormat *format = nullptr; OHAudioDecoderStopAnormal() local 492 OH_AVFormat *format = nullptr; OHAudioDecoderStopBnormal() local 517 OH_AVFormat *format = nullptr; OHAudioDecoderStopCnormal() local 539 OH_AVFormat *format = nullptr; OHAudioDecoderFlushAnormal() local 565 OH_AVFormat *format = nullptr; OHAudioDecoderFlushBnormal() local 591 OH_AVFormat *format = nullptr; OHAudioDecoderFlushCnormal() local 614 OH_AVFormat *format = nullptr; OHAudioDecoderResetAnormal() local 640 OH_AVFormat *format = nullptr; OHAudioDecoderResetBnormal() local 666 OH_AVFormat *format = nullptr; OHAudioDecoderResetCnormal() local 689 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionAnormal() local 716 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionBnormal() local 743 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionCnormal() local 767 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterAnormal() local 796 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterBnormal() local 825 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterCnormal() local 852 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidAnormal() local 882 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidBnormal() local 912 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidCnormal() local [all...] |
H A D | audioDecoderAvBuffer.cpp | 104 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChanged() argument 107 (void)format; in OnStreamChanged() 145 OH_AVFormat *format = nullptr; in AudioDecoderConfigure() local 146 format = OH_AVFormat_Create(); in AudioDecoderConfigure() 147 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE); in AudioDecoderConfigure() 148 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE); in AudioDecoderConfigure() 149 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT); in AudioDecoderConfigure() 150 OH_AVFormat_SetIntValue(format, OH_MD_KEY_MAX_INPUT_SIZE, DEFAULT_MAX_INPUT_SIZE); in AudioDecoderConfigure() 151 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in AudioDecoderConfigure() 153 return TestInitAVErrCode(env, OH_AudioCodec_Configure(audioDec, format)); in AudioDecoderConfigure() 158 OH_AVFormat *format = nullptr; AudioDecoderPrepare() local 175 OH_AVFormat *format = nullptr; AudioDecoderStart() local 198 OH_AVFormat *format = nullptr; AudioDecoderStop() local 223 OH_AVFormat *format = nullptr; AudioDecoderFlush() local 249 OH_AVFormat *format = nullptr; AudioDecoderReset() local 275 OH_AVFormat *format = nullptr; AudioDecoderGetOutputDescription() local 302 OH_AVFormat *format = nullptr; AudioDecoderSetParameter() local 332 OH_AVFormat *format = nullptr; AudioDecoderIsValid() local 400 OH_AVFormat *format = nullptr; OHAudioDecoderStartAnormal() local 423 OH_AVFormat *format = nullptr; OHAudioDecoderStartBnormal() local 446 OH_AVFormat *format = nullptr; OHAudioDecoderStartCnormal() local 466 OH_AVFormat *format = nullptr; OHAudioDecoderStopAnormal() local 491 OH_AVFormat *format = nullptr; OHAudioDecoderStopBnormal() local 516 OH_AVFormat *format = nullptr; OHAudioDecoderStopCnormal() local 538 OH_AVFormat *format = nullptr; OHAudioDecoderFlushAnormal() local 564 OH_AVFormat *format = nullptr; OHAudioDecoderFlushBnormal() local 590 OH_AVFormat *format = nullptr; OHAudioDecoderFlushCnormal() local 613 OH_AVFormat *format = nullptr; OHAudioDecoderResetAnormal() local 639 OH_AVFormat *format = nullptr; OHAudioDecoderResetBnormal() local 665 OH_AVFormat *format = nullptr; OHAudioDecoderResetCnormal() local 688 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionAnormal() local 715 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionBnormal() local 742 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionCnormal() local 766 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterAnormal() local 795 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterBnormal() local 824 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterCnormal() local 851 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidAnormal() local 881 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidBnormal() local 911 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidCnormal() local 939 OH_AVFormat *format = nullptr; OHAudioDecoderPushInputBuffer() local 972 OH_AVFormat *format = nullptr; OHAudioDecoderFreeOutputBuffer() local 1056 OH_AVFormat *format = nullptr; OHAudioDecoderViVid() local [all...] |
H A D | audioEncoderAvBuffer.cpp | 111 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChanged() argument 114 (void)format; in OnStreamChanged() 159 OH_AVFormat *format = nullptr; in AudioEncoderConfigure() local 160 format = OH_AVFormat_Create(); in AudioEncoderConfigure() 161 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT); in AudioEncoderConfigure() 162 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE); in AudioEncoderConfigure() 163 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE); in AudioEncoderConfigure() 164 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, BITS_PER_CODED_SAMPLE); in AudioEncoderConfigure() 165 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, SAMPLE_FORMAT); in AudioEncoderConfigure() 166 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOU in AudioEncoderConfigure() 183 OH_AVFormat *format = nullptr; AudioEncoderPrepare() local 207 OH_AVFormat *format = nullptr; AudioEncoderStart() local 232 OH_AVFormat *format = nullptr; AudioEncoderStop() local 259 OH_AVFormat *format = nullptr; AudioEncoderFlush() local 287 OH_AVFormat *format = nullptr; AudioEncoderReset() local 314 OH_AVFormat *format = nullptr; AudioEncoderGetOutputDescription() local 342 OH_AVFormat *format = nullptr; AudioEncoderSetParameter() local 375 OH_AVFormat *format = nullptr; AudioEncoderIsValid() local [all...] |
H A D | audioencoderxdlndk.cpp | 109 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData)
in OnStreamChanged() argument 112 (void)format;
in OnStreamChanged() 161 OH_AVFormat *format = nullptr;
in AudioEncoderConfigure() local 162 format = OH_AVFormat_Create();
in AudioEncoderConfigure() 163 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT);
in AudioEncoderConfigure() 164 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE);
in AudioEncoderConfigure() 165 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE);
in AudioEncoderConfigure() 166 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, BITS_PER_CODED_SAMPLE);
in AudioEncoderConfigure() 167 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, SAMPLE_FORMAT);
in AudioEncoderConfigure() 168 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOU in AudioEncoderConfigure() 185 OH_AVFormat *format = nullptr; AudioEncoderPrepare() local 209 OH_AVFormat *format = nullptr; AudioEncoderStart() local 234 OH_AVFormat *format = nullptr; AudioEncoderStop() local 261 OH_AVFormat *format = nullptr; AudioEncoderFlush() local 289 OH_AVFormat *format = nullptr; AudioEncoderReset() local 316 OH_AVFormat *format = nullptr; AudioEncoderGetOutputDescription() local 344 OH_AVFormat *format = nullptr; AudioEncoderSetParameter() local 376 OH_AVFormat *format = nullptr; AudioEncoderIsValid() local [all...] |
/third_party/pulseaudio/src/pulse/ |
H A D | sample.c | 62 return size_table[spec->format]; in pa_sample_size() 69 return size_table[spec->format] * spec->channels; in pa_frame_size() 76 return spec->rate * size_table[spec->format] * spec->channels; in pa_bytes_per_second() 83 return (((pa_usec_t) (length / (size_table[spec->format] * spec->channels)) * PA_USEC_PER_SEC) / spec->rate); in pa_bytes_to_usec() 90 return (size_t) (((t * spec->rate) / PA_USEC_PER_SEC)) * (size_table[spec->format] * spec->channels); in pa_usec_to_bytes() 96 spec->format = PA_SAMPLE_INVALID; in pa_sample_spec_init() 103 int pa_sample_format_valid(unsigned format) { in pa_sample_format_valid() argument 104 return format < PA_SAMPLE_MAX; in pa_sample_format_valid() 123 !pa_sample_format_valid(spec->format))) in pa_sample_spec_valid() 141 (a->format in pa_sample_spec_equal() 202 pa_parse_sample_format(const char *format) pa_parse_sample_format() argument [all...] |
/third_party/skia/src/ports/ |
H A D | SkImageGeneratorWIC.cpp | 97 // Get the encoded pixel format. in MakeFromEncodedWIC() 98 WICPixelFormatGUID format; in MakeFromEncodedWIC() local 99 hr = imageSource->GetPixelFormat(&format); in MakeFromEncodedWIC() 110 if (GUID_WICPixelFormat16bppBGR555 == format || in MakeFromEncodedWIC() 111 GUID_WICPixelFormat16bppBGR565 == format || in MakeFromEncodedWIC() 112 GUID_WICPixelFormat32bppBGR101010 == format || in MakeFromEncodedWIC() 113 GUID_WICPixelFormatBlackWhite == format || in MakeFromEncodedWIC() 114 GUID_WICPixelFormat2bppGray == format || in MakeFromEncodedWIC() 115 GUID_WICPixelFormat4bppGray == format || in MakeFromEncodedWIC() 116 GUID_WICPixelFormat8bppGray == format || in MakeFromEncodedWIC() 182 GUID format = GUID_WICPixelFormat32bppPBGRA; onGetPixels() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
H A D | convert_test.cc | 86 void StrAppendV(std::string *dst, const char *format, va_list ap) { in StrAppendV() argument 96 int result = vsnprintf(space, kSpaceLength, format, backup_ap); in StrAppendV() 117 result = vsnprintf(buf, length, format, backup_ap); in StrAppendV() 127 void StrAppend(std::string *out, const char *format, ...) { in StrAppend() argument 129 va_start(ap, format); in StrAppend() 130 StrAppendV(out, format, ap); in StrAppend() 134 std::string StrPrint(const char *format, ...) { in StrPrint() argument 136 va_start(ap, format); in StrPrint() 138 StrAppendV(&result, format, ap); in StrPrint() 178 // libs will format th in VerifyNativeImplementationImpl() 508 const char* format; TEST_F() member 540 const char* format; TEST_F() member 754 const auto format = [&](const char *fmt, double d) -> std::string & { TEST_F() local 860 const auto format = [&](const char *fmt, double d) -> std::string & { TEST_F() local 971 const auto format = [&](const char *fmt, long double d) -> std::string & { TEST_F() local [all...] |
H A D | checker.h | 79 constexpr string_view ConsumeAnyOf(string_view format, const char* chars) { in ConsumeAnyOf() argument 80 return ContainsChar(chars, GetChar(format, 0)) in ConsumeAnyOf() 81 ? ConsumeAnyOf(ConsumeFront(format), chars) in ConsumeAnyOf() 82 : format; in ConsumeAnyOf() 90 string_view format; member 96 return GetChar(format, 0) == '$' ? Integer{ConsumeFront(format), value} in ConsumePositionalDollar() 97 : Integer{format, 0}; in ConsumePositionalDollar() 101 constexpr Integer ParseDigits(string_view format, int value = 0) { in ParseDigits() argument 102 return IsDigit(GetChar(format, in ParseDigits() 110 ParsePositional(string_view format) ParsePositional() argument 202 ConvParser(string_view format, ConvList args, bool error, int arg_position, bool is_positional) ConvParser() argument 211 ConvParser(string_view format, ConvList args, bool is_positional) ConvParser() argument 230 constexpr string_view format() const { return format_; } format() function in absl::str_format_internal::ConvParser 252 FoundPercent(string_view format) FoundPercent() argument 260 ConsumeNonPercentInner(string_view format, int limit = 20) ConsumeNonPercentInner() argument 274 ConsumeNonPercent(string_view format) ConsumeNonPercent() argument 280 IsPositional(string_view format) IsPositional() argument 301 FormatParser(string_view format, ConvList args) FormatParser() argument 321 ValidFormatImpl(string_view format) ValidFormatImpl() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_formats.c | 32 #include "util/format/u_format.h" 42 enum isl_format format = isl_format_for_pipe_format(pformat); in iris_format_for_usage() local 45 if (format == ISL_FORMAT_UNSUPPORTED) in iris_format_for_usage() 46 return (struct iris_format_info) { .fmt = format, .swizzle = swizzle }; in iris_format_for_usage() 48 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in iris_format_for_usage() 73 * A8_UNORM format when rendering. in iris_format_for_usage() 75 format = ISL_FORMAT_A8_UNORM; in iris_format_for_usage() 84 * layers of Mesa pick the RGBA format instead. Gallium doesn't work that in iris_format_for_usage() 85 * way, and might choose a different format, like BGRX instead of RGBX, in iris_format_for_usage() 90 if (isl_format_is_rgbx(format) in iris_format_for_usage() 128 enum isl_format format = isl_format_for_pipe_format(pformat); iris_is_format_supported() local [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | formatsgenerator.py | 15 Generates AsciiDoc includes of the table for the format chapters 32 # <format, condition as asciidoc string> 36 # {'packedSize' : ['format', 'format', ...]} 40 # <format, [{plane_info}, ...]> 50 for index, format in enumerate(info['formats']): 51 condition = self.format_conditions[format] 58 # If not single class condition for the class, next check if a single format has a condition 63 for index, format in enumerate(info['formats']): 64 if self.format_conditions[format] [all...] |