Home
last modified time | relevance | path

Searched refs:inputBuf (Results 1 – 13 of 13) sorted by relevance

/frameworks/av/media/codecs/m4v_h263/enc/test/
Dm4v_h263_enc_test.cpp103 uint8_t *inputBuf = (uint8_t *)malloc((width * height * 3) / 2); in main() local
104 assert(inputBuf != NULL); in main()
114 free(inputBuf); in main()
123 free(inputBuf); in main()
134 free(inputBuf); in main()
188 free(inputBuf); in main()
199 free(inputBuf); in main()
213 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
225 vin.yChan = inputBuf; in main()
253 free(inputBuf); in main()
/frameworks/av/media/codecs/amrnb/fuzzer/
Damrnb_dec_fuzzer.cpp66 uint8_t *inputBuf = new uint8_t[frameSize]; in decodeFrames() local
67 if (!inputBuf) { in decodeFrames()
71 memcpy(inputBuf, data, minSize); in decodeFrames()
72 AMRDecode(mAmrHandle, frameType, inputBuf, outputBuf, bitsreamFormat); in decodeFrames()
79 delete[] inputBuf; in decodeFrames()
/frameworks/av/media/codecs/amrwb/dec/fuzzer/
Damrwb_dec_fuzzer.cpp77 uint8_t *inputBuf = new uint8_t[frameSize]; in decodeFrames() local
78 if (!inputBuf) { in decodeFrames()
82 memcpy(inputBuf, data, minSize); in decodeFrames()
85 mime_unsorting(inputBuf, inputSampleBuf, &frameType, &frameMode, quality, &rx_state); in decodeFrames()
93 delete[] inputBuf; in decodeFrames()
/frameworks/av/media/codecs/mp3dec/test/
Dmp3dec_test.cpp89 uint8_t *inputBuf = static_cast<uint8_t*>(malloc(kInputBufferSize)); in main() local
90 assert(inputBuf != NULL); in main()
101 bool success = mp3Reader.getFrame(inputBuf, &bytesRead); in main()
108 config.pInputBuffer = inputBuf; in main()
128 free(inputBuf); in main()
DMp3DecoderTest.cpp67 uint8_t inputBuf[kInputBufferSize]; in DecodeFrames() local
72 bool success = mMp3Reader.getFrame(inputBuf, &bytesRead); in DecodeFrames()
79 mConfig->pInputBuffer = inputBuf; in DecodeFrames()
/frameworks/av/media/codecs/amrnb/dec/test/
Damrnbdec_test.cpp98 void *inputBuf = malloc(kInputBufferSize); in main() local
99 assert(inputBuf != NULL); in main()
124 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
129 decodeStatus = AMRDecode(amrHandle, frameType, (uint8_t*)inputBuf, in main()
147 free(inputBuf); in main()
DAmrnbDecoderTest.cpp70 uint8_t inputBuf[kInputBufferSize]; in DecodeFrames() local
85 bytesRead = fread(inputBuf, 1, frameSize, mFpInput); in DecodeFrames()
88 int32_t bytesDecoded = AMRDecode(amrHandle, frameType, inputBuf, outputBuf, MIME_IETF); in DecodeFrames()
/frameworks/av/media/codecs/amrnb/enc/test/
Damrnb_enc_test.cpp67 uint16_t *inputBuf = NULL; in encode() local
91 inputBuf = (uint16_t*) malloc(kInputSize); in encode()
92 assert(inputBuf != NULL); in encode()
108 bytesRead = fread(inputBuf, 1, kInputSize, fSrc); in encode()
124 (Word16*)inputBuf, outputBuf, &frame_type, in encode()
160 free(inputBuf); in encode()
DAmrnbEncoderTest.cpp61 uint16_t inputBuf[kInputBufferSize]; in EncodeFrames() local
64 int32_t bytesRead = fread(inputBuf, 1, kInputBufferSize, fpInput); in EncodeFrames()
74 (Word16 *)inputBuf, outputBuf, &frame_type, AMR_TX_WMF); in EncodeFrames()
/frameworks/av/media/codecs/amrwb/dec/test/
Damrwbdec_test.cpp100 uint8_t *inputBuf = (uint8_t*) malloc(kInputBufferSize); in main() local
101 assert(inputBuf != NULL); in main()
134 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
140 (uint8_t *)inputBuf, in main()
171 free(inputBuf); in main()
DAmrwbDecoderTest.cpp74 uint8_t inputBuf[kInputBufferSize]; in DecodeFrames() local
97 bytesRead = fread(inputBuf, 1, frameSize, mFpInput); in DecodeFrames()
102 mime_unsorting(inputBuf, inputSampleBuf, &frameType, &frameMode, 1, &rx_state); in DecodeFrames()
/frameworks/av/media/codecs/amrnb/enc/fuzzer/
Damrnb_enc_fuzzer.cpp79 Word16 inputBuf[kNumInputSamples] = {}; in encodeFrames() local
80 int32_t minSize = std::min(size, sizeof(inputBuf)); in encodeFrames()
83 memcpy(inputBuf, data, minSize); in encodeFrames()
85 AMREncode(mEncState, mSidState, mode, inputBuf, outputBuf, &frameType, outputFormat); in encodeFrames()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java138 byte[] inputBuf = new byte[DEFAULT_BUFFER_SIZE]; in writeToOutputStreamFromAsset()
142 while ((bytesRead = inputStream.read(inputBuf)) > -1) { in writeToOutputStreamFromAsset()
144 outputStream.write(inputBuf, 0, bytesRead); in writeToOutputStreamFromAsset()