Home
last modified time | relevance | path

Searched refs:audio_format_t (Results 1 – 25 of 27) sorted by relevance

12

/system/media/audio_utils/fuzz/format_fuzzer/
Dformat_fuzzer.cpp26 static bool is_common_src_format(audio_format_t format) { in is_common_src_format()
30 static bool is_common_dst_format(audio_format_t format) { in is_common_dst_format()
36 const static audio_format_t formats[] = {AUDIO_FORMAT_PCM_16_BIT, AUDIO_FORMAT_PCM_FLOAT,
63 size_t formats_len = sizeof(formats)/sizeof(audio_format_t); in LLVMFuzzerTestOneInput()
68 const audio_format_t src_encoding = formats[src]; in LLVMFuzzerTestOneInput()
69 const audio_format_t dst_encoding = formats[dst]; in LLVMFuzzerTestOneInput()
77 constexpr audio_format_t orig_encoding = AUDIO_FORMAT_PCM_16_BIT; in LLVMFuzzerTestOneInput()
/system/media/audio_utils/tests/
Dformat_tests.cpp27 static bool is_common_src_format(audio_format_t format) { in is_common_src_format()
31 static bool is_common_dst_format(audio_format_t format) { in is_common_dst_format()
60 class FormatTest : public testing::TestWithParam<std::tuple<audio_format_t, audio_format_t>>
68 const audio_format_t src_encoding = std::get<0>(param); in TEST_P()
69 const audio_format_t dst_encoding = std::get<1>(param); in TEST_P()
78 constexpr audio_format_t orig_encoding = AUDIO_FORMAT_PCM_16_BIT; in TEST_P()
/system/media/audio_utils/fuzz/dtsframescanner_fuzzer/
Ddtsframescanner_fuzzer.cpp27 explicit MySPDIFEncoder(audio_format_t format) in MySPDIFEncoder()
39 const static audio_format_t dts_formats[] = {AUDIO_FORMAT_DTS, AUDIO_FORMAT_DTS_HD};
40 const size_t formats_len = sizeof(dts_formats)/sizeof(audio_format_t);
46 audio_format_t encoding = dts_formats[size % formats_len]; in LLVMFuzzerTestOneInput()
/system/media/audio_utils/fuzz/ac3framescanner_fuzzer/
Dac3framescanner_fuzzer.cpp27 explicit MySPDIFEncoder(audio_format_t format) in MySPDIFEncoder()
39 const static audio_format_t acs_formats[] = {AUDIO_FORMAT_AC3, AUDIO_FORMAT_E_AC3,
41 const size_t formats_len = sizeof(acs_formats)/sizeof(audio_format_t);
47 audio_format_t encoding = acs_formats[size % formats_len]; in LLVMFuzzerTestOneInput()
/system/media/audio_utils/
Dpower.cpp34 constexpr inline bool isFormatSupported(audio_format_t format) { in isFormatSupported()
54 template <audio_format_t FORMAT>
87 template <audio_format_t FORMAT>
114 template <audio_format_t FORMAT>
121 template <audio_format_t FORMAT>
132 template <audio_format_t FORMAT>
242 float audio_utils_compute_energy_mono(const void *buffer, audio_format_t format, size_t samples) in audio_utils_compute_energy_mono()
268 float audio_utils_compute_power_mono(const void *buffer, audio_format_t format, size_t samples) in audio_utils_compute_power_mono()
274 bool audio_utils_is_compute_power_format_supported(audio_format_t format) in audio_utils_is_compute_power_format_supported()
Dformat.c21 void memcpy_by_audio_format(void *dst, audio_format_t dst_format, in memcpy_by_audio_format()
22 const void *src, audio_format_t src_format, size_t count) in memcpy_by_audio_format()
Dmono_blend.cpp26 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { in mono_blend()
DPowerLog.cpp45 audio_format_t format, in PowerLog()
250 uint32_t channel_count, audio_format_t format, size_t entries, size_t frames_per_entry) in power_log_create()
Decho_reference.c42 audio_format_t rd_format; // read sample format
46 audio_format_t wr_format; // write sample format
486 int create_echo_reference(audio_format_t rdFormat, in create_echo_reference()
489 audio_format_t wrFormat, in create_echo_reference()
/system/media/audio_utils/include/audio_utils/
Dpower.h45 float audio_utils_compute_power_mono(const void *buffer, audio_format_t format, size_t samples);
63 float audio_utils_compute_energy_mono(const void *buffer, audio_format_t format, size_t samples);
71 bool audio_utils_is_compute_power_format_supported(audio_format_t format);
Dformat.h64 void memcpy_by_audio_format(void *dst, audio_format_t dst_format,
65 const void *src, audio_format_t src_format, size_t count);
DPowerLog.h56 audio_format_t format,
99 const audio_format_t mFormat; // audio data format
129 uint32_t channel_count, audio_format_t format, size_t entries, size_t frames_per_entry);
Decho_reference.h55 int create_echo_reference(audio_format_t rdFormat,
58 audio_format_t wrFormat,
Dmono_blend.h43 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames,
/system/media/audio_utils/fuzz/monoblend_fuzzer/
Dmonoblend_fuzzer.cpp10 audio_format_t decideFormat(uint32_t num) { in decideFormat()
18 return (audio_format_t) num; // default switch case in mono_blend() in decideFormat()
43 audio_format_t format = decideFormat(fuzzed_data.ConsumeIntegral<uint32_t>()); in LLVMFuzzerTestOneInput()
/system/media/audio_utils/spdif/
DAC3FrameScanner.h38 explicit AC3FrameScanner(audio_format_t format);
62 audio_format_t mFormat;
DSPDIFEncoder.cpp36 SPDIFEncoder::SPDIFEncoder(audio_format_t format) in SPDIFEncoder()
87 bool SPDIFEncoder::isFormatSupported(audio_format_t format) in isFormatSupported()
DAC3FrameScanner.cpp95 AC3FrameScanner::AC3FrameScanner(audio_format_t format) in AC3FrameScanner()
/system/media/audio/include/system/
Daudio.h296 audio_format_t format; // audio format
337 audio_format_t format;
368 audio_format_t format;
491 audio_format_t format; /* format if applicable */
543 audio_format_t formats[AUDIO_PORT_MAX_FORMATS];
1066 static inline bool audio_is_valid_format(audio_format_t format) in audio_is_valid_format()
1197 static inline bool audio_is_iec61937_compatible(audio_format_t format) in audio_is_iec61937_compatible()
1217 static inline audio_format_t audio_get_main_format(audio_format_t format) in audio_get_main_format()
1219 return (audio_format_t)(format & AUDIO_FORMAT_MAIN_MASK); in audio_get_main_format()
1225 static inline bool audio_is_linear_pcm(audio_format_t format) in audio_is_linear_pcm()
[all …]
Daudio-base.h191 } audio_format_t; typedef
/system/media/audio_utils/include/audio_utils/spdif/
DSPDIFEncoder.h37 explicit SPDIFEncoder(audio_format_t format);
76 static bool isFormatSupported(audio_format_t format);
/system/bt/audio_bluetooth_hw/
Dstream_apis.h26 constexpr audio_format_t kBluetoothDefaultAudioFormatBitsPerSample =
55 audio_format_t format_;
/system/tools/hidl/c2hal/test/
Dtest.h331 audio_format_t format = s->common.get_format(&s->common); in audio_stream_out_frame_size()
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc1087 static audio_format_t out_get_format(const struct audio_stream* stream) { in out_get_format()
1090 return (audio_format_t)out->common.cfg.format; in out_get_format()
1094 UNUSED_ATTR audio_format_t format) { in out_set_format()
1391 static audio_format_t in_get_format( in in_get_format()
1398 UNUSED_ATTR audio_format_t format) { in in_set_format()
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc1126 static audio_format_t out_get_format(const struct audio_stream* stream) { in out_get_format()
1129 return (audio_format_t)out->common.cfg.format; in out_get_format()
1133 UNUSED_ATTR audio_format_t format) { in out_set_format()
1449 static audio_format_t in_get_format( in in_get_format()
1456 UNUSED_ATTR audio_format_t format) { in in_set_format()

12