Home
last modified time | relevance | path

Searched refs:format1 (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DPolicyAudioPort.cpp173 int PolicyAudioPort::compareFormats(audio_format_t format1, audio_format_t format2) in compareFormats() argument
177 if (!audio_is_linear_pcm(format1)) { in compareFormats()
191 if (sPcmFormatCompareTable[i] == format1) { in compareFormats()
203 uint32_t PolicyAudioPort::formatDistance(audio_format_t format1, audio_format_t format2) in formatDistance() argument
205 if (format1 == format2) { in formatDistance()
208 if (format1 == AUDIO_FORMAT_INVALID || format2 == AUDIO_FORMAT_INVALID) { in formatDistance()
211 int diffBytes = (int)audio_bytes_per_sample(format1) - in formatDistance()
/frameworks/av/services/audiopolicy/common/include/
Dpolicy.h171 static inline bool audio_formats_match(audio_format_t format1, in audio_formats_match() argument
174 if (audio_is_linear_pcm(format1) && in audio_formats_match()
175 (audio_bytes_per_sample(format1) > 2) && in audio_formats_match()
180 return format1 == format2; in audio_formats_match()
/frameworks/av/media/libnbaio/
DNBAIO.cpp164 bool Format_isEqual(const NBAIO_Format& format1, const NBAIO_Format& format2) in Format_isEqual() argument
166 return format1.mSampleRate == format2.mSampleRate && in Format_isEqual()
167 format1.mChannelCount == format2.mChannelCount && format1.mFormat == format2.mFormat && in Format_isEqual()
168 format1.mFrameSize == format2.mFrameSize; in Format_isEqual()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h87 static int compareFormats(audio_format_t format1, audio_format_t format2);
94 static uint32_t formatDistance(audio_format_t format1,
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h91 bool Format_isEqual(const NBAIO_Format& format1, const NBAIO_Format& format2);