Home
last modified time | relevance | path

Searched refs:bitsPerSample (Results 1 – 25 of 29) 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/base/core/java/android/bluetooth/
DBluetoothCodecConfig.java158 @SampleRate int sampleRate, @BitsPerSample int bitsPerSample, in BluetoothCodecConfig() argument
165 mBitsPerSample = bitsPerSample; in BluetoothCodecConfig()
324 final int bitsPerSample = in.readInt();
331 sampleRate, bitsPerSample,
590 int bitsPerSample = other.mBitsPerSample; in similarCodecFeedingParameters() local
592 || bitsPerSample == BluetoothCodecConfig.BITS_PER_SAMPLE_NONE) { in similarCodecFeedingParameters()
593 bitsPerSample = mBitsPerSample; in similarCodecFeedingParameters()
601 mCodecType, /* priority */ 0, sampleRate, bitsPerSample, channelMode, in similarCodecFeedingParameters()
DBluetoothCodecStatus.java113 int bitsPerSample = codecConfig.getBitsPerSample(); in isCodecConfigSelectable() local
114 if ((bitsPerSample & selectableConfig.getBitsPerSample()) == 0 in isCodecConfigSelectable()
115 && bitsPerSample != BluetoothCodecConfig.BITS_PER_SAMPLE_NONE) { in isCodecConfigSelectable()
/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/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/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/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()
/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/libmediaplayerservice/
DStagefrightMetadataRetriever.cpp565 int32_t bitsPerSample = -1; in parseMetaData() local
567 trackMeta->findInt32(kKeyBitsPerSample, &bitsPerSample); in parseMetaData()
569 if (bitsPerSample >= 0) { in parseMetaData()
570 sprintf(tmp, "%d", bitsPerSample); in parseMetaData()
/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/av/media/libstagefright/
DUtils.cpp995 int32_t bitsPerSample; in convertMetaDataToMessage() local
996 if (meta->findInt32(kKeyBitsPerSample, &bitsPerSample)) { in convertMetaDataToMessage()
997 msg->setInt32("bits-per-sample", bitsPerSample); in convertMetaDataToMessage()
1746 int32_t bitsPerSample; in convertMessageToMetaData() local
1747 if (msg->findInt32("bits-per-sample", &bitsPerSample)) { in convertMessageToMetaData()
1748 meta->setInt32(kKeyBitsPerSample, bitsPerSample); in convertMessageToMetaData()
/frameworks/wilhelm/tests/automated/
DBufferQueue_test.cpp123 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in SetUp()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp3303 uint8_t bitsPerSample = cookie[5]; in parseALACSampleEntry() local
3305 AMEDIAFORMAT_KEY_BITS_PER_SAMPLE, bitsPerSample); in parseALACSampleEntry()
4775 int32_t bitsPerSample = 0; in MPEG4Source() local
4776 CHECK(AMediaFormat_getInt32(mFormat, AMEDIAFORMAT_KEY_BITS_PER_SAMPLE, &bitsPerSample)); in MPEG4Source()
4779 int32_t bytesPerSample = bitsPerSample >> 3; in MPEG4Source()
4785 || bitsPerSample != 16) { in MPEG4Source()

12