Home
last modified time | relevance | path

Searched refs:format (Results 1 - 25 of 11729) sorted by relevance

12345678910>>...470

/third_party/node/test/parallel/
H A Dtest-util-format.js28 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...]
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderconfigure_fuzzer/
H A DaudiodecoderConfigure_fuzzer.cpp35 OH_AVFormat *format = OH_AVFormat_Create(); in AudioAACConfigureFuzzTest() local
36 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, intData); in AudioAACConfigureFuzzTest()
37 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, intData); in AudioAACConfigureFuzzTest()
38 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, longData); in AudioAACConfigureFuzzTest()
39 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, intData); in AudioAACConfigureFuzzTest()
40 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, intData); in AudioAACConfigureFuzzTest()
41 OH_AVFormat_SetIntValue(format, OH_MD_KEY_COMPLIANCE_LEVEL, intData); in AudioAACConfigureFuzzTest()
42 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); //aactest in AudioAACConfigureFuzzTest()
44 OH_AudioCodec_Configure(source, format); in AudioAACConfigureFuzzTest()
48 if (format ! in AudioAACConfigureFuzzTest()
88 OH_AVFormat *format = OH_AVFormat_Create(); AudioFlacConfigureFuzzTest() local
140 OH_AVFormat *format = OH_AVFormat_Create(); AudioMP3ConfigureFuzzTest() local
170 OH_AVFormat *format = OH_AVFormat_Create(); AudioVorbisConfigureFuzzTest() local
200 OH_AVFormat *format = OH_AVFormat_Create(); AudioLBVCConfigureFuzzTest() local
252 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRNBConfigureFuzzTest() local
304 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRWBConfigureFuzzTest() local
356 OH_AVFormat *format = OH_AVFormat_Create(); AudioAPEConfigureFuzzTest() local
408 OH_AVFormat *format = OH_AVFormat_Create(); AudioOPUSConfigureFuzzTest() local
460 OH_AVFormat *format = OH_AVFormat_Create(); AudioG711ConfigureFuzzTest() local
512 OH_AVFormat *format = OH_AVFormat_Create(); AudioVividConfigureFuzzTest() local
[all...]
/foundation/multimedia/av_codec/test/fuzztest/audiodecodersetparameter_fuzzer/
H A DaudiodecoderSetParameter_fuzzer.cpp32 OH_AVFormat *format = OH_AVFormat_Create(); in AudioAACSetParameterFuzzTest() local
35 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, intData); in AudioAACSetParameterFuzzTest()
36 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, intData); in AudioAACSetParameterFuzzTest()
37 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, longData); in AudioAACSetParameterFuzzTest()
38 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, intData); in AudioAACSetParameterFuzzTest()
39 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, intData); in AudioAACSetParameterFuzzTest()
40 OH_AVFormat_SetIntValue(format, OH_MD_KEY_COMPLIANCE_LEVEL, intData); in AudioAACSetParameterFuzzTest()
41 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); //aactest in AudioAACSetParameterFuzzTest()
43 OH_AudioCodec_SetParameter(source, format); in AudioAACSetParameterFuzzTest()
47 if (format ! in AudioAACSetParameterFuzzTest()
87 OH_AVFormat *format = OH_AVFormat_Create(); AudioFlacSetParameterFuzzTest() local
139 OH_AVFormat *format = OH_AVFormat_Create(); AudioMP3SetParameterFuzzTest() local
169 OH_AVFormat *format = OH_AVFormat_Create(); AudioVorbisSetParameterFuzzTest() local
199 OH_AVFormat *format = OH_AVFormat_Create(); AudioLBVCSetParameterFuzzTest() local
251 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRNBSetParameterFuzzTest() local
303 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRWBSetParameterFuzzTest() local
355 OH_AVFormat *format = OH_AVFormat_Create(); AudioAPESetParameterFuzzTest() local
407 OH_AVFormat *format = OH_AVFormat_Create(); AudioOPUSSetParameterFuzzTest() local
459 OH_AVFormat *format = OH_AVFormat_Create(); AudioG711SetParameterFuzzTest() local
511 OH_AVFormat *format = OH_AVFormat_Create(); AudioVividSetParameterFuzzTest() local
[all...]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_message_field.cc1 // 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 Dcpp_enum_field.cc1 // 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 Dcpp_message.cc1 // 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 Dcpp_string_field.cc1 // 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 Dcpp_primitive_field.cc1 // 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 Dcpp_file.cc1 // 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 Dcpp_service.cc1 // 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...]
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/
H A Dtest_VIDIOC_ENUM_FMT.c45 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/mesa3d/src/vulkan/util/
H A Dvk_format.h29 #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 Du_format_table.py79 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 Du_format.h49 * 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...]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/
H A DInnerFunctionTest.cpp60 Format format; in runEncode() local
61 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); in runEncode()
62 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE_16000); in runEncode()
63 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, SAMPLE_RATE_128000); in runEncode()
64 format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, AudioSampleFormat::SAMPLE_F32LE); in runEncode()
65 format.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, AudioSampleFormat::SAMPLE_F32LE); in runEncode()
66 format.PutLongValue(MediaDescriptionKey::MD_KEY_CHANNEL_LAYOUT, MONO); in runEncode()
67 format.PutIntValue(MediaDescriptionKey::MD_KEY_AAC_IS_ADTS, 1); in runEncode()
68 encoderDemo->InnerRunCase(inputFile, outputFile, encoderName.c_str(), format); in runEncode()
70 Format format; in runEncode() local
102 Format format; HWTEST_F() local
138 Format format; HWTEST_F() local
188 Format format; HWTEST_F() local
224 Format format; HWTEST_F() local
260 Format format; HWTEST_F() local
301 Format format; HWTEST_F() local
352 Format format; HWTEST_F() local
383 Format format; HWTEST_F() local
415 Format format; HWTEST_F() local
446 Format format; HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/
H A DNativeFunctionTest.cpp107 OH_AVFormat* format = OH_AVFormat_Create(); in getAVFormatByEncoder() local
109 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_AAC); in getAVFormatByEncoder()
110 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE_AAC); in getAVFormatByEncoder()
111 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in getAVFormatByEncoder()
112 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in getAVFormatByEncoder()
113 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in getAVFormatByEncoder()
114 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in getAVFormatByEncoder()
115 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, BITS_RATE_AAC); in getAVFormatByEncoder()
117 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_FLAC); in getAVFormatByEncoder()
118 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RAT in getAVFormatByEncoder()
131 OH_AVFormat* format = getAVFormatByEncoder(encoderName); runEncode() local
143 OH_AVFormat* format = OH_AVFormat_Create(); getAVFormatAAC() local
173 OH_AVFormat* format = OH_AVFormat_Create(); getAVFormatFlac() local
244 OH_AVFormat* format = getAVFormatAAC(channelCount, sampleRate, BITS_RATE_AAC); HWTEST_F() local
286 OH_AVFormat* format = getAVFormatAAC(channelCount, sampleRate, BITS_RATE_AAC); HWTEST_F() local
326 OH_AVFormat* format = getAVFormatAAC(channelCount, sampleRate, bitrateList[i]); HWTEST_F() local
368 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, OH_BitsPerSample::SAMPLE_S16LE, BITS_RATE_FLAC); HWTEST_F() local
419 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate); HWTEST_F() local
470 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate); HWTEST_F() local
497 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
529 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
563 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
595 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
629 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
733 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
764 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
794 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
824 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
854 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
H A DNativeParamCheckTest.cpp91 * @tc.name : OH_AudioEncoder_Configure - format(MD_KEY_BITRATE) check
100 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
101 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); in HWTEST_F()
102 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); in HWTEST_F()
103 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
104 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
105 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in HWTEST_F()
106 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); in HWTEST_F()
107 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); in HWTEST_F()
109 OH_AVErrCode ret = encoderDemo->NativeConfigure(handle, format); in HWTEST_F()
159 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
218 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
277 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
338 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
399 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
460 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
511 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
564 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
617 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
670 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
712 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
771 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
829 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
H A DNativeNullCheckTest.cpp154 OH_AVFormat* format = OH_AVFormat_Create(); in HWTEST_F() local
155 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); in HWTEST_F()
156 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); in HWTEST_F()
157 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
158 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
159 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in HWTEST_F()
160 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); in HWTEST_F()
161 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); in HWTEST_F()
163 OH_AVErrCode ret = encoderDemo->NativeConfigure(nullptr, format); in HWTEST_F()
166 OH_AVFormat_Destroy(format); in HWTEST_F()
202 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
239 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
279 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
322 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
384 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
427 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
470 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
513 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
562 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
606 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
650 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/test/xts/acts/multimedia/avsource/entry/src/main/cpp/
H A Daudiodecoderxdlndk.cpp104 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...]
/foundation/multimedia/media_foundation/src/capi/
H A Dnative_avformat.cpp44 FALSE_RETURN_V_MSG_E(audioFormat != nullptr, nullptr, "new format is nullptr!"); in OH_AVFormat_CreateAudioFormat()
55 FALSE_RETURN_V_MSG_E(videoFormat != nullptr, nullptr, "new format is nullptr!"); in OH_AVFormat_CreateVideoFormat()
62 void OH_AVFormat_Destroy(struct OH_AVFormat *format) in OH_AVFormat_Destroy() argument
64 delete format; in OH_AVFormat_Destroy()
69 FALSE_RETURN_V_MSG_E(to != nullptr, false, "to format is nullptr!"); in OH_AVFormat_Copy()
71 FALSE_RETURN_V_MSG_E(from != nullptr, false, "from format is nullptr!"); in OH_AVFormat_Copy()
78 bool OH_AVFormat_SetIntValue(struct OH_AVFormat *format, const char *key, int32_t value) in OH_AVFormat_SetIntValue() argument
80 FALSE_RETURN_V_MSG_E(format != nullptr, false, "input format is nullptr!"); in OH_AVFormat_SetIntValue()
81 FALSE_RETURN_V_MSG_E(format in OH_AVFormat_SetIntValue()
87 OH_AVFormat_SetLongValue(struct OH_AVFormat *format, const char *key, int64_t value) OH_AVFormat_SetLongValue() argument
96 OH_AVFormat_SetFloatValue(struct OH_AVFormat *format, const char *key, float value) OH_AVFormat_SetFloatValue() argument
105 OH_AVFormat_SetDoubleValue(struct OH_AVFormat *format, const char *key, double value) OH_AVFormat_SetDoubleValue() argument
114 OH_AVFormat_SetStringValue(struct OH_AVFormat *format, const char *key, const char *value) OH_AVFormat_SetStringValue() argument
124 OH_AVFormat_SetBuffer(struct OH_AVFormat *format, const char *key, const uint8_t *addr, size_t size) OH_AVFormat_SetBuffer() argument
135 OH_AVFormat_GetIntValue(struct OH_AVFormat *format, const char *key, int32_t *out) OH_AVFormat_GetIntValue() argument
145 OH_AVFormat_GetLongValue(struct OH_AVFormat *format, const char *key, int64_t *out) OH_AVFormat_GetLongValue() argument
155 OH_AVFormat_GetFloatValue(struct OH_AVFormat *format, const char *key, float *out) OH_AVFormat_GetFloatValue() argument
165 OH_AVFormat_GetDoubleValue(struct OH_AVFormat *format, const char *key, double *out) OH_AVFormat_GetDoubleValue() argument
175 OH_AVFormat_GetStringValue(struct OH_AVFormat *format, const char *key, const char **out) OH_AVFormat_GetStringValue() argument
208 OH_AVFormat_GetBuffer(struct OH_AVFormat *format, const char *key, uint8_t **addr, size_t *size) OH_AVFormat_GetBuffer() argument
219 OH_AVFormat_DumpInfo(struct OH_AVFormat *format) OH_AVFormat_DumpInfo() argument
[all...]
/foundation/multimedia/av_codec/test/unittest/audio_test/
H A Daudio_encoder_avbuffer_capi_unit_test.cpp127 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument
130 (void)format; in OnOutputFormatChanged()
188 OH_AVFormat *format = nullptr; member in OHOS::MediaAVCodec::AudioEncoderBufferCapiUnitTest
543 format = OH_AVFormat_Create(); in HWTEST_F()
544 EXPECT_NE(nullptr, format); in HWTEST_F()
545 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), SAMPLE_RATE); in HWTEST_F()
546 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in HWTEST_F()
549 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_MAX_INPUT_SIZE.data(), 0); in HWTEST_F()
550 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), CHANNEL_COUNT); in HWTEST_F()
551 EXPECT_EQ(OH_AVErrCode::AV_ERR_OK, OH_AudioCodec_Configure(audioEnc_, format)); // norma in HWTEST_F()
[all...]
H A Daudio_encoder_capi_unit_test.cpp111 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument
114 (void)format; in OnOutputFormatChanged()
170 OH_AVFormat *format; member in OHOS::MediaAVCodec::AudioCodeCapiEncoderUnitTest
293 format = OH_AVFormat_Create(); in ProceFunc()
340 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), OPUS_CHANNEL_COUNT); in HWTEST_F()
341 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), OPUS_SAMPLE_RATE); in HWTEST_F()
342 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), OPUS_BITS_RATE); in HWTEST_F()
343 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in HWTEST_F()
345 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_COMPLIANCE_LEVEL.data(), OPUS_COMPLIANCE_LEVEL); in HWTEST_F()
347 EXPECT_EQ(OH_AVErrCode::AV_ERR_OK, OH_AudioEncoder_Configure(audioEnc_, format)); in HWTEST_F()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_fourcc.c4 * DRM core format related functions
43 * Computes a drm fourcc pixel format code for the given @bpp/@depth values.
106 * Computes a drm fourcc pixel format code for the given @bpp/@depth values.
139 * drm_get_format_name - fill a string with a drm fourcc format's name
140 * @format: format to compute name of
143 const char *drm_get_format_name(uint32_t format, struct drm_format_name_buf *buf) in drm_get_format_name() argument
146 ret = snprintf(buf->str, sizeof(buf->str), "%c%c%c%c %s-endian (0x%08x)", printable_char(format & 0xff), in drm_get_format_name()
147 printable_char((format >> 0x8) & 0xff), printable_char((format >> in drm_get_format_name()
158 __drm_format_info(u32 format) __drm_format_info() argument
762 drm_format_info(u32 format) drm_format_info() argument
[all...]
/third_party/skia/src/ports/
H A DSkImageGeneratorWIC.cpp97 // 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/pulseaudio/src/pulse/
H A Dsample.c62 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...]

Completed in 20 milliseconds

12345678910>>...470