Home
last modified time | relevance | path

Searched refs:frameSize (Results 1 – 25 of 104) sorted by relevance

12345

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/id3/
DId3Decoder.java218 long frameSize;
222 frameSize = id3Data.readUnsignedInt();
226 frameSize = id3Data.readUnsignedInt24();
230 if (id == 0 && frameSize == 0 && flags == 0) {
236 if ((frameSize & 0x808080L) != 0) {
239 frameSize = (frameSize & 0xFF) | (((frameSize >> 8) & 0xFF) << 7)
240 | (((frameSize >> 16) & 0xFF) << 14) | (((frameSize >> 24) & 0xFF) << 21);
259 if (frameSize < minimumFrameSize) {
262 if (id3Data.bytesLeft() < frameSize) {
265 id3Data.skipBytes((int) frameSize); // flags
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/audio/
DAc4Util.java40 public final int frameSize; field in Ac4Util.SyncFrameInfo
45 int bitstreamVersion, int channelCount, int sampleRate, int frameSize, int sampleCount) { in SyncFrameInfo() argument
49 this.frameSize = frameSize; in SyncFrameInfo()
131 int frameSize = data.readBits(16); in parseAc4SyncframeInfo() local
133 if (frameSize == 0xFFFF) { in parseAc4SyncframeInfo()
134 frameSize = data.readBits(24); in parseAc4SyncframeInfo()
137 frameSize += headerSize; in parseAc4SyncframeInfo()
139 frameSize += 2; // crc_word in parseAc4SyncframeInfo()
179 return new SyncFrameInfo(bitstreamVersion, CHANNEL_COUNT_2, sampleRate, frameSize, sampleCount); in parseAc4SyncframeInfo()
194 int frameSize = ((data[2] & 0xFF) << 8) | (data[3] & 0xFF); in parseAc4SyncframeSize() local
[all …]
DMpegAudioUtil.java33 public int frameSize; field in MpegAudioUtil.Header
93 frameSize = (12 * bitrate / sampleRate + padding) * 4; in setForHeaderData()
99 frameSize = 144 * bitrate / sampleRate + padding; in setForHeaderData()
103 frameSize = (layer == 1 ? 72 : 144) * bitrate / sampleRate + padding; in setForHeaderData()
DAc3Util.java80 public final int frameSize; field in Ac3Util.SyncFrameInfo
91 int frameSize, in SyncFrameInfo() argument
97 this.frameSize = frameSize; in SyncFrameInfo()
252 int frameSize; in parseAc3SyncframeInfo() local
274 frameSize = (data.readBits(11) + 1) * 2; // See frmsiz in subsection E.1.3.1.3. in parseAc3SyncframeInfo()
443 frameSize = getAc3SyncframeSize(fscod, frmsizecod); in parseAc3SyncframeInfo()
462 mimeType, streamType, channelCount, sampleRate, frameSize, sampleCount); in parseAc3SyncframeInfo()
/external/aac/libPCMutils/src/
Dpcm_utils.cpp110 const UINT channels, const UINT frameSize, in FDK_interleave() argument
116 In += frameSize; in FDK_interleave()
122 const UINT channels, const UINT frameSize, in FDK_interleave() argument
128 In += frameSize; in FDK_interleave()
134 const UINT channels, const UINT frameSize, in FDK_interleave() argument
140 In += frameSize; in FDK_interleave()
146 const UINT channels, const UINT frameSize, in FDK_deinterleave() argument
151 for (UINT sample = 0; sample < frameSize; sample++) { in FDK_deinterleave()
159 const UINT channels, const UINT frameSize, in FDK_deinterleave() argument
164 for (UINT sample = 0; sample < frameSize; sample++) { in FDK_deinterleave()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DConstantBitrateSeekMap.java30 private final int frameSize; field in ConstantBitrateSeekMap
45 long inputLength, long firstFrameBytePosition, int bitrate, int frameSize) { in ConstantBitrateSeekMap() argument
48 this.frameSize = frameSize == C.LENGTH_UNSET ? 1 : frameSize; in ConstantBitrateSeekMap()
73 if (seekTimeUs >= timeUs || seekFramePosition + frameSize >= inputLength) { in getSeekPoints()
76 long secondSeekPosition = seekFramePosition + frameSize; in getSeekPoints()
118 positionOffset = (positionOffset / frameSize) * frameSize; in getFramePositionForTimeUs()
120 Util.constrainValue(positionOffset, /* min= */ 0, /* max= */ dataSize - frameSize); in getFramePositionForTimeUs()
/external/llvm-project/llvm/lib/Target/Sparc/
DSparcSubtarget.cpp74 int SparcSubtarget::getAdjustedFrameSize(int frameSize) const { in getAdjustedFrameSize()
79 frameSize += 128; in getAdjustedFrameSize()
82 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize()
91 frameSize += 92; in getAdjustedFrameSize()
95 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
97 return frameSize; in getAdjustedFrameSize()
/external/llvm/lib/Target/Sparc/
DSparcSubtarget.cpp76 int SparcSubtarget::getAdjustedFrameSize(int frameSize) const { in getAdjustedFrameSize()
81 frameSize += 128; in getAdjustedFrameSize()
84 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize()
93 frameSize += 92; in getAdjustedFrameSize()
97 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
99 return frameSize; in getAdjustedFrameSize()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DSparcSubtarget.cpp74 int SparcSubtarget::getAdjustedFrameSize(int frameSize) const { in getAdjustedFrameSize()
79 frameSize += 128; in getAdjustedFrameSize()
82 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize()
91 frameSize += 92; in getAdjustedFrameSize()
95 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
97 return frameSize; in getAdjustedFrameSize()
/external/aac/libPCMutils/include/
Dpcm_utils.h110 const UINT channels, const UINT frameSize,
113 const UINT channels, const UINT frameSize,
116 const UINT channels, const UINT frameSize,
120 const UINT channels, const UINT frameSize,
123 const UINT channels, const UINT frameSize,
126 const UINT channels, const UINT frameSize,
129 const UINT channels, const UINT frameSize,
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/
DGraphicalVerifier.java48 final Dimension frameSize = frame.getSize(); in GraphicalVerifier() local
49 if (frameSize.height > screenSize.height) { in GraphicalVerifier()
50 frameSize.height = screenSize.height; in GraphicalVerifier()
52 if (frameSize.width > screenSize.width) { in GraphicalVerifier()
53 frameSize.width = screenSize.width; in GraphicalVerifier()
55 frame.setLocation((screenSize.width - frameSize.width) / 2, in GraphicalVerifier()
56 (screenSize.height - frameSize.height) / 2); in GraphicalVerifier()
/external/drrickorang/LoopbackApp/app/src/main/cpp/
Dbyte_buffer.c32 size_t frameSize = channels * sizeof(short); // only one channel in byteBuffer_write() local
33 int32_t maxLengthInShort = dataSectionSize / frameSize; in byteBuffer_write()
43 memcpy(byteBuffer + (tempRear * frameSize), srcBuffer, in byteBuffer_write()
44 part1 * frameSize); in byteBuffer_write()
48 memcpy(byteBuffer, (srcBuffer + (part1 * frameSize)), in byteBuffer_write()
49 part2 * frameSize); in byteBuffer_write()
/external/libopus/fuzzer/
Dopus_enc_fuzzer.cpp158 int frameSize = 0; in get_frame_size() local
161 frameSize = samplingRate / 400; in get_frame_size()
164 frameSize = samplingRate / 200; in get_frame_size()
167 frameSize = samplingRate / 100; in get_frame_size()
170 frameSize = samplingRate / 50; in get_frame_size()
173 frameSize = samplingRate / 25; in get_frame_size()
176 frameSize = 3 * samplingRate / 50; in get_frame_size()
179 frameSize = 4 * samplingRate / 50; in get_frame_size()
182 frameSize = 5 * samplingRate / 50; in get_frame_size()
185 frameSize = 6 * samplingRate / 50; in get_frame_size()
[all …]
/external/libgsm/fuzzer/
Dgsm_enc_fuzzer.cpp63 size_t frameSize = std::min(size, kGsmInBufferSize); in encodeFrames() local
65 memcpy(tmpData, data, frameSize); in encodeFrames()
66 if (frameSize < kGsmInBufferSize) { in encodeFrames()
67 memset(reinterpret_cast<uint8_t *>(tmpData) + frameSize, data[0], in encodeFrames()
68 kGsmInBufferSize - frameSize); in encodeFrames()
71 data += frameSize; in encodeFrames()
72 size -= frameSize; in encodeFrames()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/VE/
DVESubtarget.cpp47 int VESubtarget::getAdjustedFrameSize(int frameSize) const { in getAdjustedFrameSize()
93 frameSize += 176; // for RSA, RA, and FP in getAdjustedFrameSize()
94 frameSize = alignTo(frameSize, 16); // requires 16 bytes alignment in getAdjustedFrameSize()
96 return frameSize; in getAdjustedFrameSize()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DEC3TrackImpl.java31 int frameSize; field in EC3TrackImpl
66 long skipped = inputStream.skip(bsi.frameSize); in parse()
67 assert skipped == bsi.frameSize; in parse()
109 frameSize += bsi.frameSize; in parse()
188 entry.frameSize = 2 * (frmsiz + 1); in readVariables()
218 entry.frameSize *= (6 / numberOfBlocksPerSyncFrame); in readVariables()
387 entry.bitrate = (int) (((double) entry.samplerate) / 1536.0 * entry.frameSize * 8); in readVariables()
393 int read = frameSize; in readSamples()
395 while (frameSize == read) { in readSamples()
397 byte[] data = new byte[frameSize]; in readSamples()
[all …]
/external/aac/libAACdec/src/
Daacdecoder_lib.cpp390 const INT samplingRate, const INT frameSize, const INT numChannels, in aacDecoder_SscCallback() argument
399 samplingRate, frameSize, numChannels, stereoConfigIndex, in aacDecoder_SscCallback()
1117 if (pSi->frameSize > 0) { in aacDecoder_UpdateBitStreamCounters()
1120 FIXP_DBL ratio_m = fDivNorm(pSi->sampleRate, pSi->frameSize, &ratio_e); in aacDecoder_UpdateBitStreamCounters()
1382 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame; in aacDecoder_DecodeFrame()
1391 self->streamInfo.frameSize, 0); in aacDecoder_DecodeFrame()
1498 (self->streamInfo.frameSize)); in aacDecoder_DecodeFrame()
1515 self->streamInfo.frameSize = in aacDecoder_DecodeFrame()
1520 self->streamInfo.frameSize = in aacDecoder_DecodeFrame()
1525 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame in aacDecoder_DecodeFrame()
[all …]
/external/zstd/tests/
Dlegacy.c143 size_t frameSize = ZSTD_findFrameCompressedSize(ip, remainingSize); in testFrameDecoding() local
144 if (ZSTD_isError(frameSize)) { in testFrameDecoding()
145 DISPLAY("ERROR: ZSTD_findFrameCompressedSize: %s\n", ZSTD_getErrorName(frameSize)); in testFrameDecoding()
148 if (frameSize > remainingSize) { in testFrameDecoding()
152 ip += frameSize; in testFrameDecoding()
153 remainingSize -= frameSize; in testFrameDecoding()
/external/zstd/contrib/seekable_format/examples/
Dparallel_compression.c123 …ssFile_orDie(const char* fname, const char* outName, int cLevel, unsigned frameSize, int nbThreads) in compressFile_orDie() argument
131 …if (ZSTD_compressBound(frameSize) > 0xFFFFFFFFU) { fprintf(stderr, "Frame size too large \n"); exi… in compressFile_orDie()
132 unsigned dstSize = ZSTD_compressBound(frameSize); in compressFile_orDie()
139 size_t numFrames = (length + frameSize - 1) / frameSize; in compressFile_orDie()
145 void* in = malloc_orDie(frameSize); in compressFile_orDie()
148 size_t inSize = fread_orDie(in, frameSize, fin); in compressFile_orDie()
207 unsigned const frameSize = (unsigned)atoi(argv[2]); in main() local
211 compressFile_orDie(inFileName, outFileName, 5, frameSize, nbThreads); in main()
Dseekable_compression.c63 …tic void compressFile_orDie(const char* fname, const char* outName, int cLevel, unsigned frameSize) in compressFile_orDie() argument
74 size_t const initResult = ZSTD_seekable_initCStream(cstream, cLevel, 1, frameSize); in compressFile_orDie()
125 unsigned const frameSize = (unsigned)atoi(argv[2]); in main() local
128 compressFile_orDie(inFileName, outFileName, 5, frameSize); in main()
/external/aac/libDRCdec/src/
DdrcGainDec_process.cpp202 const int frameSize, const GAIN_INTERPOLATION_TYPE gainInterpolationType, in _processNodeSegments() argument
223 if ((timePrev >= (frameSize - 1)) || in _processNodeSegments()
236 stop = fMin(time, (SHORT)(frameSize - 1)) - timePrev + 1; in _processNodeSegments()
265 offset = hGainDec->frameSize; in processDrcTime()
270 hGainDec->frameSize) /* if delaySamples is too big, NUM_LNB_FRAMES in processDrcTime()
313 nodePrevious.time -= hGainDec->frameSize; in processDrcTime()
340 hGainDec->frameSize, pLnb->gainInterpolationType, in processDrcTime()
342 lnbPointerDiff * hGainDec->frameSize + delaySamples + offset, 1, in processDrcTime()
380 offset = hGainDec->frameSize; in processDrcSubband()
385 hGainDec->frameSize) /* if delaySamples is too big, NUM_LNB_FRAMES in processDrcSubband()
[all …]
DdrcDec_gainDecoder.cpp179 initDrcGainBuffers(hGainDec->frameSize, &hGainDec->drcGainBuffers); in drcDec_GainDecoder_Init()
191 hGainDec->frameSize = paramValue; in drcDec_GainDecoder_SetParam()
323 hUniDrcGain->gainNode[seq][0].time = hGainDec->frameSize - 1; in drcDec_GainDecoder_Conceal()
330 const int frameSize, in drcDec_GainDecoder_SetChannelGains() argument
373 if (frameSize == 1024) in drcDec_GainDecoder_SetChannelGains()
376 stepsize = (LONG)stepsize / frameSize; in drcDec_GainDecoder_SetChannelGains()
381 n_min, frameSize); in drcDec_GainDecoder_SetChannelGains()
383 for (i = 0; i < frameSize; i++) { in drcDec_GainDecoder_SetChannelGains()
458 return hGainDec->frameSize; in drcDec_GainDecoder_GetFrameSize()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DMpegAudioReader.java57 private int frameSize; field in MpegAudioReader
187 frameSize = header.frameSize; in readHeaderRemainder()
222 int bytesToRead = Math.min(source.bytesLeft(), frameSize - frameBytesRead); in readFrameRemainder()
225 if (frameBytesRead < frameSize) { in readFrameRemainder()
230 output.sampleMetadata(timeUs, C.BUFFER_FLAG_KEY_FRAME, frameSize, 0, null); in readFrameRemainder()
DAdtsExtractor.java151 int frameSize = scratchBits.readBits(13); in sniff() local
153 if (frameSize <= 6) { in sniff()
156 input.advancePeekPosition(frameSize - 6); in sniff()
157 totalValidFramesSize += frameSize; in sniff()
330 private static int getBitrateFromFrameSize(int frameSize, long durationUsPerFrame) { in getBitrateFromFrameSize() argument
331 return (int) ((frameSize * C.BITS_PER_BYTE * C.MICROS_PER_SECOND) / durationUsPerFrame); in getBitrateFromFrameSize()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DMp3Extractor.java297 sampleBytesRemaining = synchronizedHeader.frameSize; in readSample()
304 extractorInput.getPosition() + synchronizedHeader.frameSize); in readSample()
320 computeTimeUs(samplesRead), C.BUFFER_FLAG_KEY_FRAME, synchronizedHeader.frameSize, 0, null); in readSample()
362 int frameSize; in synchronize() local
365 || (frameSize = MpegAudioUtil.getFrameSize(headerData)) == C.LENGTH_UNSET) { in synchronize()
390 input.advancePeekPosition(frameSize - 4); in synchronize()
473 ParsableByteArray frame = new ParsableByteArray(synchronizedHeader.frameSize); in maybeReadSeekFrame()
474 input.peekFully(frame.data, 0, synchronizedHeader.frameSize); in maybeReadSeekFrame()
490 input.skipFully(synchronizedHeader.frameSize); in maybeReadSeekFrame()
497 input.skipFully(synchronizedHeader.frameSize); in maybeReadSeekFrame()

12345