Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_seek_synch.cpp140 pVars->inputStream.pBuffer = pExt->pInputBuffer; in pvmp3_frame_synch()
141 pVars->inputStream.usedBits = (pExt->inputBufferUsedLength << 3); // in bits in pvmp3_frame_synch()
144 pVars->inputStream.inputBufferCurrentLength = (pExt->inputBufferCurrentLength); // in bits in pvmp3_frame_synch()
146 err = pvmp3_header_sync(&pVars->inputStream); in pvmp3_frame_synch()
153 uint32 temp = getNbits(&pVars->inputStream, 21); in pvmp3_frame_synch()
155 pVars->inputStream.usedBits -= 21 + SYNC_WORD_LNGTH; in pvmp3_frame_synch()
193 if (numBytes > (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
199 else if (numBytes == (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
202 pExt->inputBufferUsedLength = pVars->inputStream.usedBits >> 3; in pvmp3_frame_synch()
208 int32 offset = pVars->inputStream.usedBits + ((numBytes) << 3); in pvmp3_frame_synch()
[all …]
Dpvmp3_get_side_info.cpp114 ERROR_CODE pvmp3_get_side_info(tmp3Bits *inputStream, in pvmp3_get_side_info() argument
128 tmp = getbits_crc(inputStream, 14, crc, info->error_protection); in pvmp3_get_side_info()
134 tmp = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
142 tmp = getbits_crc(inputStream, 4, crc, info->error_protection); in pvmp3_get_side_info()
153 … si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
154 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
163 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
195 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
207 tmp = getbits_crc(inputStream, 3, crc, info->error_protection); in pvmp3_get_side_info()
216 si->main_data_begin = getbits_crc(inputStream, 8, crc, info->error_protection); in pvmp3_get_side_info()
[all …]
Dpvmp3_decode_header.cpp115 ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream, in pvmp3_decode_header() argument
128 if (inputStream->inputBufferCurrentLength < ((SYNC_WORD_LNGTH + 21) >> 3)) in pvmp3_decode_header()
136 temp = getUpTo17bits(inputStream, SYNC_WORD_LNGTH); in pvmp3_decode_header()
139 err = pvmp3_header_sync(inputStream); in pvmp3_decode_header()
147 temp = getNbits(inputStream, 21); // to avoid multiple bitstream accesses in pvmp3_decode_header()
Dpvmp3_framedecoder.cpp173 pVars->inputStream.pBuffer = pExt->pInputBuffer; in pvmp3_framedecoder()
176 pVars->inputStream.usedBits = pExt->inputBufferUsedLength << 3; in pvmp3_framedecoder()
177 pVars->inputStream.inputBufferCurrentLength = pExt->inputBufferCurrentLength; in pvmp3_framedecoder()
180 errorCode = pvmp3_decode_header(&pVars->inputStream, in pvmp3_framedecoder()
225 sent_crc = getUpTo17bits(&pVars->inputStream, 16); in pvmp3_framedecoder()
242 errorCode = pvmp3_get_side_info(&pVars->inputStream, in pvmp3_framedecoder()
282 if ((uint32)pVars->predicted_frame_size > pVars->inputStream.inputBufferCurrentLength) in pvmp3_framedecoder()
506 ancillary_data_lenght -= pVars->inputStream.usedBits; in pvmp3_framedecoder()
511 pVars->inputStream.usedBits += ancillary_data_lenght; in pvmp3_framedecoder()
533 pExt->inputBufferUsedLength = pVars->inputStream.usedBits >> 3; in pvmp3_framedecoder()
[all …]
Dpvmp3_crc.cpp123 uint32 getbits_crc(tmp3Bits *inputStream, /* bit stream structure */ in getbits_crc() argument
128 uint32 bits = getNbits(inputStream, neededBits); in getbits_crc()
Dpvmp3_decode_header.h89 ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream,
Dpvmp3_seek_synch.h94 ERROR_CODE pvmp3_header_sync(tmp3Bits *inputStream);
Dpvmp3_get_side_info.h89 ERROR_CODE pvmp3_get_side_info(tmp3Bits *inputStream,
Dpvmp3_crc.h84 uint32 getbits_crc(tmp3Bits *inputStream,
Ds_tmp3dec_file.h96 tmp3Bits inputStream; member
/frameworks/base/media/libstagefright/codecs/aacdec/
Dpvmp4audiodecoderconfig.cpp195 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4AudioDecoderConfig()
197 pVars->inputStream.inputBufferCurrentLength = in PVMP4AudioDecoderConfig()
200 pVars->inputStream.availableBits = in PVMP4AudioDecoderConfig()
207 pVars->inputStream.usedBits = initialUsedBits; in PVMP4AudioDecoderConfig()
209 if (initialUsedBits <= pVars->inputStream.availableBits) in PVMP4AudioDecoderConfig()
223 byte_align(&pVars->inputStream); in PVMP4AudioDecoderConfig()
261 if (pVars->inputStream.usedBits > pVars->inputStream.availableBits) in PVMP4AudioDecoderConfig()
264 pVars->inputStream.usedBits = pVars->inputStream.availableBits; in PVMP4AudioDecoderConfig()
276 pVars->inputStream.usedBits >> INBUF_ARRAY_INDEX_SHIFT; in PVMP4AudioDecoderConfig()
278 pExt->remainderBits = pVars->inputStream.usedBits & INBUF_BIT_MODULO_MASK; in PVMP4AudioDecoderConfig()
Dpvmp4audiodecoderframe.cpp564 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4AudioDecodeFrame()
566 pVars->inputStream.inputBufferCurrentLength = (UInt)pExt->inputBufferCurrentLength; in PVMP4AudioDecodeFrame()
568 pVars->inputStream.availableBits = in PVMP4AudioDecodeFrame()
575 pVars->inputStream.usedBits = initialUsedBits; in PVMP4AudioDecodeFrame()
577 if (initialUsedBits > pVars->inputStream.availableBits) in PVMP4AudioDecodeFrame()
593 byte_align(&pVars->inputStream); in PVMP4AudioDecodeFrame()
612 id_syn_ele = (Int)getbits(LEN_SE_ID, &pVars->inputStream) ; in PVMP4AudioDecodeFrame()
617 byte_align(&pVars->inputStream); in PVMP4AudioDecodeFrame()
620 pVars->inputStream.usedBits >> INBUF_ARRAY_INDEX_SHIFT; in PVMP4AudioDecodeFrame()
622 pExt->remainderBits = pVars->inputStream.usedBits & INBUF_BIT_MODULO_MASK; in PVMP4AudioDecodeFrame()
[all …]
Dget_adts_header.cpp386 &(pVars->inputStream), in get_adts_header()
396 &(pVars->inputStream), in get_adts_header()
404 &(pVars->inputStream)); in get_adts_header()
590 &(pVars->inputStream)); in get_adts_header()
665 &(pVars->inputStream)); in get_adts_header()
Dpvmp4setaudioconfig.cpp191 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4SetAudioConfig()
193 pVars->inputStream.availableBits = 0; in PVMP4SetAudioConfig()
195 pVars->inputStream.usedBits = 0; in PVMP4SetAudioConfig()
Dget_audio_specific_config.cpp321 pInputStream = &(pVars->inputStream); in get_audio_specific_config()
512 pVars->inputStream.usedBits -= LEN_SYNC_EXTENSION_TYPE; in get_audio_specific_config()
525 pVars->inputStream.usedBits -= LEN_SYNC_EXTENSION_TYPE; in get_audio_specific_config()
Ds_tdec_int_file.h156 BITS inputStream; member
Dget_adif_header.cpp302 BITS *pInputStream = &pVars->inputStream; in get_adif_header()
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
DVCardVerifier.java141 … InputStream inputStream = mAndroidTestCase.getContext().getResources().openRawResource(resId); in setInputResourceId() local
142 if (inputStream == null) { in setInputResourceId()
145 setInputStream(inputStream); in setInputResourceId()
148 private void setInputStream(InputStream inputStream) { in setInputStream() argument
154 mInputStream = inputStream; in setInputStream()
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java309 public static boolean copyToFile(InputStream inputStream, FileOutputStream out) { in copyToFile() argument
313 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()
324 InputStream inputStream = null; in copyToFile() local
326 inputStream = new FileInputStream(srcFile); in copyToFile()
327 return copyToFile(inputStream, out); in copyToFile()
331 try { if (inputStream != null) inputStream.close(); } catch (IOException e) {} in copyToFile()
/frameworks/base/media/java/android/media/
DAmrInputStream.java59 public AmrInputStream(InputStream inputStream) { in AmrInputStream() argument
60 mInputStream = inputStream; in AmrInputStream()
DResampleInputStream.java62 public ResampleInputStream(InputStream inputStream, int rateIn, int rateOut) { in ResampleInputStream() argument
68 mInputStream = inputStream; in ResampleInputStream()
/frameworks/base/core/java/android/pim/
DContactsAsyncHelper.java186 InputStream inputStream = null; in handleMessage() local
188 inputStream = Contacts.openContactPhotoInputStream( in handleMessage()
194 if (inputStream != null) { in handleMessage()
195 args.result = Drawable.createFromStream(inputStream, args.uri.toString()); in handleMessage()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java172 private static void pureSaxTest(InputStream inputStream) throws IOException, SAXException { in pureSaxTest() argument
175 Xml.parse(inputStream, Xml.Encoding.UTF_8, new YouTubeContentHandler(videoAdapter)); in pureSaxTest()
180 private static void saxyModelTest(InputStream inputStream) throws IOException, SAXException { in saxyModelTest() argument
183 Xml.parse(inputStream, Xml.Encoding.UTF_8, newContentHandler(videoAdapter)); in saxyModelTest()
188 private static void saxyModelTest(InputStream inputStream, ContentHandler contentHandler) in saxyModelTest() argument
191 Xml.parse(inputStream, Xml.Encoding.UTF_8, contentHandler); in saxyModelTest()
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java275 InputStream inputStream = zipFile.getInputStream(entry); in copyNativeBinaryLI() local
281 if (!FileUtils.copyToFile(inputStream, tempFile) in copyNativeBinaryLI()
293 inputStream.close(); in copyNativeBinaryLI()
/frameworks/base/core/java/android/os/
DFileUtils.java131 public static boolean copyToFile(InputStream inputStream, File destFile) { in copyToFile() argument
140 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()

12