Home
last modified time | relevance | path

Searched refs:byteCount (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dbitstream_io.cpp75 stream->byteCount = 0; in BitStreamCreateEnc()
213 if (stream->byteCount + WORD_SIZE > stream->bufferSize) in BitstreamSaveWord()
217 stream->byteCount += WORD_SIZE; in BitstreamSaveWord()
222 ptr = stream->bitstreamBuffer + stream->byteCount; in BitstreamSaveWord()
236 stream->byteCount += 4; in BitstreamSaveWord()
239 stream->byteCount += 2; in BitstreamSaveWord()
267 if (stream->byteCount + numbyte > stream->bufferSize) in BitstreamSavePartial()
271 stream->byteCount += numbyte; in BitstreamSavePartial()
276 ptr = stream->bitstreamBuffer + stream->byteCount; in BitstreamSavePartial()
280 stream->byteCount += numbyte; in BitstreamSavePartial()
[all …]
Dcombined_encode.cpp285 Int byteCount = 0, byteCount1 = 0, bitCount = 0; in EncodeSliceCombinedMode() local
368 byteCount1 = byteCount = bitCount >> 3; /* save the position before GOB header */ in EncodeSliceCombinedMode()
438 byteCount = bitCount >> 3; /* save the state before encoding */ in EncodeSliceCombinedMode()
469 BitstreamRepos(bs1, byteCount, bitCount); /* rewind one MB */ in EncodeSliceCombinedMode()
506 …if (mbnum < nTotalMB - 1 && currVol->stream->byteCount + bs1->byteCount + 1 >= currVol->stream->bu… in EncodeSliceCombinedMode()
509 byteCount = currVol->stream->bufferSize - currVol->stream->byteCount - 1; in EncodeSliceCombinedMode()
511 num_bits = BitstreamGetPos(bs1) - (byteCount << 3); in EncodeSliceCombinedMode()
512 BitstreamRepos(bs1, byteCount, 0); in EncodeSliceCombinedMode()
550 if (currVol->stream->byteCount + bs1->byteCount > currVol->stream->bufferSize) in EncodeSliceCombinedMode()
552 if (byteCount == byteCount1) /* a single GOB bigger than packet size */ in EncodeSliceCombinedMode()
[all …]
Dbitstream_io.h44 PV_STATUS BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount);
Dmp4lib_int.h32 Int byteCount; /*how many bytes already encoded*/ member
Dmp4enc_api.cpp1332 if (*size > encData->bitstream1->byteCount) in PVGetVolHeader()
1334 *size = encData->bitstream1->byteCount; in PVGetVolHeader()
1445 *size = video->vol[0]->stream->byteCount; in PVEncodeVideoFrame()
1634 *size = currVol->stream->byteCount; in PVEncodeVideoFrame()
1886 pre_size = currVol->stream->byteCount; in PVEncodeSlice()
1981 *size = currVol->stream->byteCount - pre_size; in PVEncodeSlice()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_byte_stream.c87 u32 byteCount,initByteCount; in h264bsdExtractNalUnit() local
107 zeroCount = byteCount = 2; in h264bsdExtractNalUnit()
113 byteCount++; in h264bsdExtractNalUnit()
115 if (byteCount == len) in h264bsdExtractNalUnit()
130 initByteCount = byteCount; in h264bsdExtractNalUnit()
139 byteCount++; in h264bsdExtractNalUnit()
151 byteCount - initByteCount - zeroCount - 1; in h264bsdExtractNalUnit()
162 if (byteCount == len) in h264bsdExtractNalUnit()
164 pStrmData->strmBuffSize = byteCount - initByteCount - zeroCount; in h264bsdExtractNalUnit()
/frameworks/base/core/java/android/content/pm/
DLimitedLengthInputStream.java68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { in read() argument
74 Arrays.checkOffsetAndCount(arrayLength, offset, byteCount); in read()
76 if (mOffset > Long.MAX_VALUE - byteCount) { in read()
77 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount); in read()
80 if (mOffset + byteCount > mEnd) { in read()
81 byteCount = (int) (mEnd - mOffset); in read()
84 final int numRead = super.read(buffer, offset, byteCount); in read()
/frameworks/base/packages/PrintSpooler/jni/
Dcom_android_printspooler_util_BitmapSerializeUtils.cpp29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { in writeAllBytes() argument
31 size_t remainingBytes = byteCount; in writeAllBytes()
48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { in readAllBytes() argument
50 size_t remainingBytes = byteCount; in readAllBytes()
67 byteCount); in readAllBytes()
123 size_t byteCount = readInfo.stride * readInfo.height; in readBitmapPixels() local
124 read = readAllBytes(fd, (void*) pixels, byteCount); in readBitmapPixels()
162 size_t byteCount = info.stride * info.height; in writeBitmapPixels() local
163 written = writeAllBytes(fd, (void*) pixels, byteCount); in writeBitmapPixels()
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java347 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
352 int r = super.read(buffer, byteOffset, byteCount); in read()
384 public long skip(long byteCount) throws IOException { in skip() argument
385 return Streams.skipByReading(this, byteCount); in skip()
399 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
402 i = super.read(buffer, byteOffset, byteCount); in read()
458 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
461 if (byteCount > length) { in read()
462 byteCount = (int) length; in read()
469 int count = IoBridge.read(fd, buffer, byteOffset, byteCount); in read()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
DBridgeBufferIterator.java48 public void skip(int byteCount) { in skip() argument
49 int newPosition = mByteBuffer.position() + byteCount; in skip()
55 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument
56 assert dst.length >= dstOffset + byteCount; in readByteArray() local
57 mByteBuffer.get(dst, dstOffset, byteCount); in readByteArray()
/frameworks/base/core/java/com/android/internal/util/
DSizedInputStream.java49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
52 } else if (byteCount > mLength) { in read()
53 byteCount = (int) mLength; in read()
56 final int n = mWrapped.read(buffer, byteOffset, byteCount); in read()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java177 int byteCount = rgbaBitmap.getByteCount(); in setBitmap() local
179 if (!setNativeBitmap(rgbaBitmap, byteCount, bps)) { in setBitmap()
193 int byteCount = result.getByteCount(); in getBitmap() local
195 if (!getNativeBitmap(result, byteCount, bps)) { in getBitmap()
244 private native byte[] getNativeData(int byteCount); in getNativeData() argument
252 private native int[] getNativeInts(int byteCount); in getNativeInts() argument
254 private native float[] getNativeFloats(int byteCount); in getNativeFloats() argument
/frameworks/base/core/jni/
Dandroid_ddm_DdmHandleNativeHeap.cpp60 ssize_t byteCount; in ReadFile() local
61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { in ReadFile()
62 s.append(bytes, byteCount); in ReadFile()
Dandroid_hardware_camera2_CameraMetadata.cpp314 jsize byteCount = entry.count * tagSize; in CameraMetadata_readValues() local
315 jbyteArray byteArray = env->NewByteArray(byteCount); in CameraMetadata_readValues()
320 memcpy(arrayWriter.get(), entry.data.u8, byteCount); in CameraMetadata_readValues()
/frameworks/base/core/java/android/os/
DFileBridge.java180 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { in write() argument
181 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in write()
183 Memory.pokeInt(mTemp, 4, byteCount, ByteOrder.BIG_ENDIAN); in write()
185 IoBridge.write(mClient, buffer, byteOffset, byteCount); in write()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java732 String getUserDataGSM8bit(int byteCount) { in getUserDataGSM8bit() argument
735 ret = GsmAlphabet.gsm8BitUnpackedToString(mPdu, mCur, byteCount); in getUserDataGSM8bit()
737 mCur += byteCount; in getUserDataGSM8bit()
749 String getUserDataUCS2(int byteCount) { in getUserDataUCS2() argument
753 ret = new String(mPdu, mCur, byteCount, "utf-16"); in getUserDataUCS2()
759 mCur += byteCount; in getUserDataUCS2()
770 String getUserDataKSC5601(int byteCount) { in getUserDataKSC5601() argument
774 ret = new String(mPdu, mCur, byteCount, "KSC5601"); in getUserDataKSC5601()
780 mCur += byteCount; in getUserDataKSC5601()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsMessageBodyTest.java434 int byteCount = length * 2; in fillData() local
435 if (byteCount > SmsConstants.MAX_USER_DATA_BYTES) { in fillData()
436 values[0] = (byteCount + SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER - 1) / in fillData()
439 byteCount) / 2; in fillData()
442 values[2] = (SmsConstants.MAX_USER_DATA_BYTES - byteCount) / 2; in fillData()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.cpp99 int32_t byteCount = audioBuffer->frameCount * getBytesPerFrame(); in processCallbackCommon() local
101 (uint8_t *) audioBuffer->raw, byteCount); in processCallbackCommon()
/frameworks/base/opengl/java/android/opengl/
DGLLogWrapper.java930 private ByteBuffer toByteBuffer(int byteCount, Buffer input) { in toByteBuffer() argument
932 boolean convertWholeBuffer = (byteCount < 0); in toByteBuffer()
937 byteCount = input2.limit() - position; in toByteBuffer()
939 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer()
940 for (int i = 0; i < byteCount; i++) { in toByteBuffer()
948 byteCount = (input2.limit() - position) * 2; in toByteBuffer()
950 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer()
952 for (int i = 0; i < byteCount / 2; i++) { in toByteBuffer()
960 byteCount = (input2.limit() - position)* 2; in toByteBuffer()
962 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer()
[all …]
/frameworks/av/media/img_utils/src/
DTiffIfd.cpp312 uint32_t byteCount = stripByteCounts->getCount(); in setStripOffset() local
313 if (offsetsCount != byteCount) { in setStripOffset()
315 __FUNCTION__, offsetsCount, byteCount, mIfdId); in setStripOffset()
/frameworks/native/libs/ui/
DFenceTime.cpp36 void* FenceTime::operator new(size_t byteCount) noexcept { in operator new() argument
38 if (posix_memalign(&p, alignof(FenceTime), byteCount)) { in operator new()
/frameworks/support/exifinterface/src/android/support/media/
DExifInterface.java5339 long byteCount = 0;
5352 byteCount = (long) numberOfComponents * IFD_FORMAT_BYTES_PER_FORMAT[dataFormat];
5353 if (byteCount < 0 || byteCount > Integer.MAX_VALUE) {
5367 if (byteCount > 4) {
5400 if (offset + byteCount <= dataInputStream.mLength) {
5413 Log.d(TAG, "nextIfdType: " + nextIfdType + " byteCount: " + byteCount);
5456 byte[] bytes = new byte[(int) byteCount];
5624 for (long byteCount : stripByteCounts) {
5625 totalStripByteCount += byteCount;
6105 public void seek(long byteCount) throws IOException {
[all …]
/frameworks/base/core/jni/android/graphics/pdf/
DPdfEditor.cpp75 static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCount) { in writeAllBytes() argument
77 size_t remainingBytes = byteCount; in writeAllBytes()
/frameworks/base/media/java/android/media/
DExifInterface.java2946 long byteCount = 0; in readImageFileDirectory() local
2953 byteCount = (long) numberOfComponents * IFD_FORMAT_BYTES_PER_FORMAT[dataFormat]; in readImageFileDirectory()
2954 if (byteCount < 0 || byteCount > Integer.MAX_VALUE) { in readImageFileDirectory()
2968 if (byteCount > 4) { in readImageFileDirectory()
3001 if (offset + byteCount <= dataInputStream.mLength) { in readImageFileDirectory()
3014 Log.d(TAG, "nextIfdType: " + nextIfdType + " byteCount: " + byteCount); in readImageFileDirectory()
3057 byte[] bytes = new byte[(int) byteCount]; in readImageFileDirectory()
3688 public void seek(long byteCount) throws IOException { in seek() argument
3689 if (mPosition > byteCount) { in seek()
3694 byteCount -= mPosition; in seek()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DGsmAlphabet.java393 int byteCount = ((septetCount * 7) + 7) / 8; in stringToGsm7BitPacked() local
394 byte[] ret = new byte[byteCount + 1]; // Include space for one byte length prefix. in stringToGsm7BitPacked()

12