Home
last modified time | relevance | path

Searched refs:audio_format_t (Results 1 – 25 of 30) 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()
Dspdif_tests.cpp32 explicit MySPDIFEncoder(audio_format_t format) in MySPDIFEncoder()
/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/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,
104 const audio_format_t mFormat; // audio data format
134 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,
Dsndfile.h87 static inline audio_format_t SF_format_to_audio_format (int format) { in SF_format_to_audio_format()
/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.cpp23 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()
254 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
511 int create_echo_reference(audio_format_t rdFormat, in create_echo_reference()
514 audio_format_t wrFormat, in create_echo_reference()
/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/bt/audio_bluetooth_hw/
Dstream_apis.h26 constexpr audio_format_t kBluetoothDefaultAudioFormatBitsPerSample =
58 audio_format_t format_;
88 audio_format_t format_;
/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_utils/include/audio_utils/spdif/
DSPDIFEncoder.h37 explicit SPDIFEncoder(audio_format_t format);
76 static bool isFormatSupported(audio_format_t format);
/system/media/audio/include/system/
Daudio.h356 audio_format_t format; // audio format
403 audio_format_t format;
437 audio_format_t format;
589 audio_format_t format; /* format if applicable */
656 audio_format_t formats[AUDIO_PORT_MAX_FORMATS];
685 audio_format_t format;
979 template <typename T, std::enable_if_t<std::is_same<T, audio_format_t>::value
990 std::map<audio_format_t,
1667 static inline bool audio_is_valid_format(audio_format_t format) in audio_is_valid_format()
1814 static inline bool audio_is_iec61937_compatible(audio_format_t format) in audio_is_iec61937_compatible()
[all …]
/system/tools/hidl/c2hal/test/
Dtest.h331 audio_format_t format = s->common.get_format(&s->common); in audio_stream_out_frame_size()
/system/media/tests/
Dsystemaudio_tests.cpp319 size_t fillFakeFormats(audio_format_t formats[], size_t numFormats);
525 size_t SystemAudioPortTest::fillFakeFormats(audio_format_t formats[], size_t numFormats) { in fillFakeFormats()
530 if (audio_is_valid_format(static_cast<audio_format_t>(format << 24))) { in fillFakeFormats()
538 formats[j++] = static_cast<audio_format_t>((format++) << 24); in fillFakeFormats()
563 audio_format_t formats[AUDIO_PORT_MAX_FORMATS]; in fillFakeAudioPortV7Info()

12