Home
last modified time | relevance | path

Searched refs:bytes_per_sample (Results 1 – 6 of 6) sorted by relevance

/aosp12/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_frame.cpp171 jint bytes_per_sample) { in Java_android_filterfw_core_NativeFrame_setNativeBitmap() argument
175 if ((size / 4) != (frame->Size() / bytes_per_sample)) { in Java_android_filterfw_core_NativeFrame_setNativeBitmap()
186 switch (bytes_per_sample) { in Java_android_filterfw_core_NativeFrame_setNativeBitmap()
208 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample); in Java_android_filterfw_core_NativeFrame_setNativeBitmap()
221 jint bytes_per_sample) { in Java_android_filterfw_core_NativeFrame_getNativeBitmap() argument
228 if ((size / 4) != (frame->Size() / bytes_per_sample)) { in Java_android_filterfw_core_NativeFrame_getNativeBitmap()
235 switch (bytes_per_sample) { in Java_android_filterfw_core_NativeFrame_getNativeBitmap()
260 ALOGE("Unsupported bytes-per-pixel %d in getBitmap!", bytes_per_sample); in Java_android_filterfw_core_NativeFrame_getNativeBitmap()
H A Djni_native_frame.h68 jint bytes_per_sample);
75 jint bytes_per_sample);
/aosp12/system/media/audio_utils/
H A DPowerLog.cpp68 const size_t bytes_per_sample = audio_bytes_per_sample(mFormat); in log() local
106 buffer = (const uint8_t *)buffer + mCurrentFrames * mChannelCount * bytes_per_sample; in log()
/aosp12/system/bt/audio_hearing_aid_hw/src/
H A Daudio_hearing_aid_hw.cc210 int bytes_per_sample; in calc_audiotime_usec() local
214 bytes_per_sample = 1; in calc_audiotime_usec()
217 bytes_per_sample = 2; in calc_audiotime_usec()
220 bytes_per_sample = 3; in calc_audiotime_usec()
223 bytes_per_sample = 4; in calc_audiotime_usec()
226 bytes_per_sample = 4; in calc_audiotime_usec()
230 bytes_per_sample = 2; in calc_audiotime_usec()
235 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()
/aosp12/system/bt/audio_a2dp_hw/src/
H A Daudio_a2dp_hw.cc204 int bytes_per_sample; in calc_audiotime_usec() local
208 bytes_per_sample = 1; in calc_audiotime_usec()
211 bytes_per_sample = 2; in calc_audiotime_usec()
214 bytes_per_sample = 3; in calc_audiotime_usec()
217 bytes_per_sample = 4; in calc_audiotime_usec()
220 bytes_per_sample = 4; in calc_audiotime_usec()
224 bytes_per_sample = 2; in calc_audiotime_usec()
229 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()
/aosp12/hardware/qcom/audio/hal/
H A Daudio_hw.c3667 size_t bytes_per_sample = audio_bytes_per_sample(out->format); in out_write() local
3668 size_t frame_size = channel_count * bytes_per_sample; in out_write()
3677 size_t haptic_frame_size = bytes_per_sample * haptic_channel_count; in out_write()
3701 audio_frame_size = haptic_frame_size = bytes_per_sample; in out_write()