Home
last modified time | relevance | path

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

12

/frameworks/wilhelm/tests/sandbox/
Dconfigbq.c30 SLuint8 bitsPerSample; member
101 format->milliHz / 1000, format->bitsPerSample); in main()
111 format_pcm.bitsPerSample = format->bitsPerSample; in main()
112 format_pcm.containerSize = format->bitsPerSample; in main()
150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / in main()
155 if (8 == format->bitsPerSample) { in main()
159 assert(16 == format->bitsPerSample); in main()
169 if (8 == format->bitsPerSample) { in main()
172 assert(16 == format->bitsPerSample); in main()
Dplaybq.cpp307 SLuint32 bitsPerSample; in main() local
310 bitsPerSample = 32; in main()
314 bitsPerSample = 32; in main()
318 bitsPerSample = 24; in main()
322 bitsPerSample = 16; in main()
326 bitsPerSample = 8; in main()
379 format_pcm.bitsPerSample = bitsPerSample; in main()
380 format_pcm.containerSize = format_pcm.bitsPerSample; in main()
Dsrcsink.c46 format_pcm.bitsPerSample = 16; in main()
135 format_pcm.bitsPerSample = 17; in main()
140 format_pcm.bitsPerSample = 24; in main()
145 format_pcm.bitsPerSample = 16; in main()
Dintbufq.c115 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in main()
/frameworks/av/media/libstagefright/flac/dec/
DFLACDecoder.cpp130 unsigned bitsPerSample) { in copyTo16Signed() argument
131 const int leftShift = 16 - (int)bitsPerSample; // cast to int to prevent unsigned overflow. in copyTo16Signed()
153 unsigned bitsPerSample) { in copyToFloat() argument
154 const unsigned leftShift = 32 - bitsPerSample; in copyToFloat()
400 const unsigned bitsPerSample = getBitsPerSample(); in decodeOneFrame() local
406 bitsPerSample); in decodeOneFrame()
412 bitsPerSample); in decodeOneFrame()
/frameworks/av/media/extractors/flac/
DFLACExtractor.cpp48 static inline bool shouldExtractorOutputFloat(int bitsPerSample) in shouldExtractorOutputFloat() argument
50 return bitsPerSample > 16 && AIBinder_getCallingUid() == AID_MEDIA; in shouldExtractorOutputFloat()
410 unsigned bitsPerSample) { in copyTo16Signed() argument
411 const int leftShift = 16 - (int)bitsPerSample; // cast to int to prevent unsigned overflow. in copyTo16Signed()
433 unsigned bitsPerSample) { in copyToFloat() argument
434 const unsigned leftShift = 32 - bitsPerSample; in copyToFloat()
624 const unsigned bitsPerSample = getBitsPerSample(); in readBuffer() local
630 bitsPerSample); in readBuffer()
636 bitsPerSample); in readBuffer()
/frameworks/base/core/java/android/bluetooth/
DBluetoothCodecConfig.java102 int sampleRate, int bitsPerSample, in BluetoothCodecConfig() argument
109 mBitsPerSample = bitsPerSample; in BluetoothCodecConfig()
256 final int bitsPerSample = in.readInt();
263 sampleRate, bitsPerSample,
/frameworks/av/media/img_utils/src/
DTiffIfd.cpp198 uint16_t bitsPerSample = *(bitsEntry->getData<uint16_t>()); in validateAndSetStripTags() local
201 if ((bitsPerSample % 8) != 0) { in validateAndSetStripTags()
203 bitsPerSample, mIfdId); in validateAndSetStripTags()
207 uint32_t bytesPerSample = bitsPerSample / 8; in validateAndSetStripTags()
/frameworks/wilhelm/src/android/
Dandroid_sles_conversions.h30 if (df_pcm->containerSize != df_pcm->bitsPerSample) { in sles_to_android_sampleFormat()
DAudioRecorder_to_android.cpp265 if (df_pcm->containerSize != df_pcm->bitsPerSample) { in android_audioRecorder_checkSourceSink()
268 df_pcm->containerSize, (SLuint32)df_pcm->bitsPerSample); in android_audioRecorder_checkSourceSink()
670 df_pcm->bitsPerSample, in android_audioRecorder_realize()
DAudioPlayer_to_android.cpp1094 if (df_pcm->containerSize != df_pcm->bitsPerSample) { in android_audioPlayer_checkSourceSink()
1097 df_pcm->containerSize, (SLuint32)df_pcm->bitsPerSample); in android_audioPlayer_checkSourceSink()
/frameworks/wilhelm/tests/examples/
DslesTestRecBuffQueue.cpp274 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestRecToBuffQueue()
278 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_32; in TestRecToBuffQueue()
282 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_8; in TestRecToBuffQueue()
287 pcm.bitsPerSample = 32; in TestRecToBuffQueue()
DslesTestSawtoothBufferQueue.cpp169 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestPlaySawtoothBufferQueue()
DslesTestDecodeToBuffQueue.cpp350 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestDecToBuffQueue()
DslesTestFeedback.cpp428 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in main()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp127 int32_t bitsPerSample = 0; in audioTrack() local
128 if (!md->findInt32(kKeyBitsPerSample, &bitsPerSample)) { in audioTrack()
173 codecPrivateBuf, bitsPerSample); in audioTrack()
212 codecPrivateBuf, bitsPerSample); in audioTrack()
/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java289 short bitsPerSample = (short) (sampleSizeInBytes * 8); in makeWavHeader() local
305 header.putShort(bitsPerSample); in makeWavHeader()
/frameworks/av/media/libstagefright/
DStagefrightMetadataRetriever.cpp564 int32_t bitsPerSample = -1; in parseMetaData() local
566 trackMeta->findInt32(kKeyBitsPerSample, &bitsPerSample); in parseMetaData()
568 if (bitsPerSample >= 0) { in parseMetaData()
569 sprintf(tmp, "%d", bitsPerSample); in parseMetaData()
DUtils.cpp1000 int32_t bitsPerSample; in convertMetaDataToMessage() local
1001 if (meta->findInt32(kKeyBitsPerSample, &bitsPerSample)) { in convertMetaDataToMessage()
1002 msg->setInt32("bits-per-sample", bitsPerSample); in convertMetaDataToMessage()
1751 int32_t bitsPerSample; in convertMessageToMetaData() local
1752 if (msg->findInt32("bits-per-sample", &bitsPerSample)) { in convertMessageToMetaData()
1753 meta->setInt32(kKeyBitsPerSample, bitsPerSample); in convertMessageToMetaData()
/frameworks/wilhelm/src/
Ddata.cpp425 if (pDataFormat->mPCM.bitsPerSample == 0 || in checkDataFormat()
426 pDataFormat->mPCM.containerSize < pDataFormat->mPCM.bitsPerSample) { in checkDataFormat()
432 (unsigned) pDataFormat->mPCM.bitsPerSample); in checkDataFormat()
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp44 static inline bool shouldExtractorOutputFloat(int bitsPerSample) in shouldExtractorOutputFloat() argument
46 return bitsPerSample > 16 && AIBinder_getCallingUid() == AID_MEDIA; in shouldExtractorOutputFloat()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacEnc.cpp375 const int bitsPerSample = inputFloat ? 24 : 16; in configureEncoder() local
379 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, bitsPerSample); in configureEncoder()
/frameworks/wilhelm/include/SLES/
DOpenSLES_Android.h52 SLuint32 bitsPerSample; member
/frameworks/wilhelm/tests/automated/
DBufferQueue_test.cpp123 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in SetUp()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp3274 uint8_t bitsPerSample = cookie[5]; in parseALACSampleEntry() local
3276 AMEDIAFORMAT_KEY_BITS_PER_SAMPLE, bitsPerSample); in parseALACSampleEntry()
4732 int32_t bitsPerSample = 0; in MPEG4Source() local
4733 CHECK(AMediaFormat_getInt32(mFormat, AMEDIAFORMAT_KEY_BITS_PER_SAMPLE, &bitsPerSample)); in MPEG4Source()
4736 int32_t bytesPerSample = bitsPerSample >> 3; in MPEG4Source()
4742 || bitsPerSample != 16) { in MPEG4Source()

12