Home
last modified time | relevance | path

Searched refs:inputLength (Results 1 – 25 of 31) sorted by relevance

12

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DConstantBitrateSeekMap.java28 private final long inputLength; field in ConstantBitrateSeekMap
45 long inputLength, long firstFrameBytePosition, int bitrate, int frameSize) { in ConstantBitrateSeekMap() argument
46 this.inputLength = inputLength; in ConstantBitrateSeekMap()
51 if (inputLength == C.LENGTH_UNSET) { in ConstantBitrateSeekMap()
55 dataSize = inputLength - firstFrameBytePosition; in ConstantBitrateSeekMap()
56 durationUs = getTimeUsAtPosition(inputLength, firstFrameBytePosition, bitrate); in ConstantBitrateSeekMap()
73 if (seekTimeUs >= timeUs || seekFramePosition + frameSize >= inputLength) { in getSeekPoints()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DSniffer.java88 long inputLength = input.getLength(); in sniffInternal() local
89 int bytesToSearch = (int) (inputLength == C.LENGTH_UNSET || inputLength > SEARCH_LENGTH in sniffInternal()
90 ? SEARCH_LENGTH : inputLength); in sniffInternal()
127 if (inputLength != C.LENGTH_UNSET && bytesToSearch > inputLength) { in sniffInternal()
129 bytesToSearch = (int) inputLength; in sniffInternal()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/
DSniffer.java44 long inputLength = input.getLength(); in sniff() local
45 int bytesToSearch = (int) (inputLength == C.LENGTH_UNSET || inputLength > SEARCH_LENGTH in sniff()
46 ? SEARCH_LENGTH : inputLength); in sniff()
64 || (inputLength != C.LENGTH_UNSET && headerStart + headerSize >= inputLength)) { in sniff()
/external/icu/icu4c/source/test/perf/utfperf/
Dutfperf.cpp89 int32_t inputLength; in UtfPerformanceTest() local
90 UPerfTest::getBuffer(inputLength, status); in UtfPerformanceTest()
127 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()), in Command()
148 int32_t inputLength; member in Command
178 pInLimit=input+inputLength; in call()
213 if(inputLength!=outputLength) { in call()
214 …f(stderr, "error: roundtrip failed, inputLength %d!=outputLength %d\n", inputLength, outputLength); in call()
242 pInLimit=input+inputLength; in call()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DAdtsExtractor.java185 long inputLength = input.getLength(); in read() local
187 (flags & FLAG_ENABLE_CONSTANT_BITRATE_SEEKING) != 0 && inputLength != C.LENGTH_UNSET; in read()
194 maybeOutputSeekMap(inputLength, canUseConstantBitrateSeeking, readEndOfStream); in read()
237 long inputLength, boolean canUseConstantBitrateSeeking, boolean readEndOfStream) { in maybeOutputSeekMap() argument
251 extractorOutput.seekMap(getConstantBitrateSeekMap(inputLength)); in maybeOutputSeekMap()
318 private SeekMap getConstantBitrateSeekMap(long inputLength) { in getConstantBitrateSeekMap() argument
320 return new ConstantBitrateSeekMap(inputLength, firstFramePosition, bitrate, averageFrameSize); in getConstantBitrateSeekMap()
DPsExtractor.java168 long inputLength = input.getLength(); in read() local
169 boolean canReadDuration = inputLength != C.LENGTH_UNSET; in read()
173 maybeOutputSeekMap(inputLength); in read()
180 inputLength != C.LENGTH_UNSET ? inputLength - input.getPeekPosition() : C.LENGTH_UNSET; in read()
286 private void maybeOutputSeekMap(long inputLength) { in maybeOutputSeekMap() argument
294 inputLength); in maybeOutputSeekMap()
DTsDurationReader.java161 long inputLength = input.getLength(); in readLastPcrValue() local
162 int bytesToSearch = (int) Math.min(TIMESTAMP_SEARCH_BYTES, inputLength); in readLastPcrValue()
163 long searchStartPosition = inputLength - bytesToSearch; in readLastPcrValue()
DPsDurationReader.java175 long inputLength = input.getLength(); in readLastScrValue() local
176 int bytesToSearch = (int) Math.min(TIMESTAMP_SEARCH_BYTES, inputLength); in readLastScrValue()
177 long searchStartPosition = inputLength - bytesToSearch; in readLastScrValue()
DTsExtractor.java257 long inputLength = input.getLength(); in read() local
259 boolean canReadDuration = inputLength != C.LENGTH_UNSET && mode != MODE_HLS; in read()
263 maybeOutputSeekMap(inputLength); in read()
345 if (mode != MODE_HLS && !wereTracksEnded && tracksEnded && inputLength != C.LENGTH_UNSET) { in read()
358 private void maybeOutputSeekMap(long inputLength) { in maybeOutputSeekMap() argument
366 inputLength, in maybeOutputSeekMap()
DTsBinarySearchSeeker.java41 TimestampAdjuster pcrTimestampAdjuster, long streamDurationUs, long inputLength, int pcrPid) { in TsBinarySearchSeeker() argument
49 /* ceilingBytePosition= */ inputLength, in TsBinarySearchSeeker()
DPsBinarySearchSeeker.java41 TimestampAdjuster scrTimestampAdjuster, long streamDurationUs, long inputLength) { in PsBinarySearchSeeker() argument
49 /* ceilingBytePosition= */ inputLength, in PsBinarySearchSeeker()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavHeaderReader.java140 long inputLength = input.getLength(); in skipToData() local
141 if (inputLength != C.LENGTH_UNSET && dataEndPosition > inputLength) { in skipToData()
142 Log.w(TAG, "Data exceeds input length: " + dataEndPosition + ", " + inputLength); in skipToData()
143 dataEndPosition = inputLength; in skipToData()
/external/icu/icu4c/source/samples/csdet/
Dcsdet.c33 int32_t inputLength, match, matchCount = 0; in main() local
51 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file); in main()
56 ucsdet_setText(csd, buffer, inputLength, &status); in main()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DVbriSeeker.java46 long inputLength, in create() argument
91 if (inputLength != C.LENGTH_UNSET && inputLength != position) { in create()
92 Log.w(TAG, "VBRI data size mismatch: " + inputLength + ", " + position); in create()
DXingSeeker.java47 long inputLength, in create() argument
77 if (inputLength != C.LENGTH_UNSET && inputLength != position + dataSize) { in create()
78 Log.w(TAG, "XING data size mismatch: " + inputLength + ", " + (position + dataSize)); in create()
DConstantBitrateSeeker.java33 long inputLength, long firstFramePosition, MpegAudioUtil.Header mpegAudioHeader) { in ConstantBitrateSeeker() argument
37 super(inputLength, firstFramePosition, mpegAudioHeader.bitrate, mpegAudioHeader.frameSize); in ConstantBitrateSeeker()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractor.java347 private void maybeOutputSeekMap(long inputLength, int sampleReadResult) { in maybeOutputSeekMap() argument
353 || inputLength == C.LENGTH_UNSET in maybeOutputSeekMap()
360 seekMap = getConstantBitrateSeekMap(inputLength); in maybeOutputSeekMap()
366 private SeekMap getConstantBitrateSeekMap(long inputLength) { in getConstantBitrateSeekMap() argument
368 return new ConstantBitrateSeekMap(inputLength, firstSamplePosition, bitrate, firstSampleSize); in getConstantBitrateSeekMap()
/external/skqp/tests/
DPDFDeflateWStreamTest.cpp54 size_t inputLength = src->getLength(); in stream_inflate() local
55 if (input == nullptr || inputLength == 0) { in stream_inflate()
61 flateData.avail_in = SkToUInt(inputLength); in stream_inflate()
/external/skia/tests/
DPDFDeflateWStreamTest.cpp54 size_t inputLength = src->getLength(); in stream_inflate() local
55 if (input == nullptr || inputLength == 0) { in stream_inflate()
61 flateData.avail_in = SkToUInt(inputLength); in stream_inflate()
/external/skia/src/core/
DSkMD5.cpp39 bool SkMD5::write(const void* buf, size_t inputLength) { in write() argument
45 if (inputLength >= bufferAvailable) { in write()
54 for (; inputIndex + 63 < inputLength; inputIndex += 64) { in write()
63 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex); in write()
65 this->byteCount += inputLength; in write()
/external/skqp/src/core/
DSkMD5.cpp39 bool SkMD5::write(const void* buf, size_t inputLength) { in write() argument
45 if (inputLength >= bufferAvailable) { in write()
54 for (; inputIndex + 63 < inputLength; inputIndex += 64) { in write()
63 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex); in write()
65 this->byteCount += inputLength; in write()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/
DFlacBinarySearchSeeker.java48 long inputLength) { in FlacBinarySearchSeeker() argument
56 /* ceilingBytePosition= */ inputLength, in FlacBinarySearchSeeker()
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DFlacBinarySearchSeeker.java65 long inputLength, in FlacBinarySearchSeeker() argument
75 /* ceilingBytePosition= */ inputLength, in FlacBinarySearchSeeker()
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp57 int32_t inputLength; in UTrie2PerfTest() local
58 UPerfTest::getBuffer(inputLength, status); in UTrie2PerfTest()
59 if(U_SUCCESS(status) && inputLength>0) { in UTrie2PerfTest()
/external/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp62 int32_t inputLength; in UnicodeSetPerformanceTest() local
63 UPerfTest::getBuffer(inputLength, status); in UnicodeSetPerformanceTest()
64 if(U_SUCCESS(status) && inputLength>0) { in UnicodeSetPerformanceTest()

12