Home
last modified time | relevance | path

Searched refs:srcOffset (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/os/
DMemoryFile.java51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; in native_read() argument
53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; in native_write() argument
198 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() argument
205 || srcOffset < 0 || srcOffset > mLength in readBytes()
206 || count > mLength - srcOffset) { in readBytes()
209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in readBytes()
222 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) in writeBytes() argument
227 if (srcOffset < 0 || srcOffset > buffer.length || count < 0 in writeBytes()
228 || count > buffer.length - srcOffset in writeBytes()
233 native_write(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in writeBytes()
/frameworks/av/media/libstagefright/
DDRMExtractor.cpp160 size_t srcOffset = 0; in read() local
164 while (srcOffset < len) { in read()
165 CHECK(srcOffset + mNALLengthSize <= len); in read()
167 const uint8_t* data = (const uint8_t*)(&decryptedDrmBuffer.data[srcOffset]); in read()
187 srcOffset += mNALLengthSize; in read()
189 if (srcOffset + nalLength > len) { in read()
208 memcpy(&dstData[dstOffset], &decryptedDrmBuffer.data[srcOffset], nalLength); in read()
209 srcOffset += nalLength; in read()
213 CHECK_EQ(srcOffset, len); in read()
DMPEG4Extractor.cpp3881 size_t srcOffset = 0; in read() local
3884 while (srcOffset < size) { in read()
3885 bool isMalFormed = (srcOffset + mNALLengthSize > size); in read()
3888 nalLength = parseNALSize(&mSrcBuffer[srcOffset]); in read()
3889 srcOffset += mNALLengthSize; in read()
3890 isMalFormed = srcOffset + nalLength > size; in read()
3910 memcpy(&dstData[dstOffset], &mSrcBuffer[srcOffset], nalLength); in read()
3911 srcOffset += nalLength; in read()
3914 CHECK_EQ(srcOffset, size); in read()
4158 size_t srcOffset = 0; in fragmentedRead() local
[all …]
/frameworks/av/media/libstagefright/wifi-display/rtp/
DRTPSender.cpp257 size_t srcOffset = 0; in queueTSPackets() local
258 while (srcOffset < tsPackets->size()) { in queueTSPackets()
285 size_t numTSPackets = (tsPackets->size() - srcOffset) / 188; in queueTSPackets()
290 memcpy(&rtp[12], tsPackets->data() + srcOffset, numTSPackets * 188); in queueTSPackets()
294 srcOffset += numTSPackets * 188; in queueTSPackets()
295 bool isLastPacket = (srcOffset == tsPackets->size()); in queueTSPackets()
385 size_t srcOffset = 1; in queueAVCBuffer() local
386 while (srcOffset < nalSize) { in queueAVCBuffer()
388 if (copy > nalSize - srcOffset) { in queueAVCBuffer()
389 copy = nalSize - srcOffset; in queueAVCBuffer()
[all …]
/frameworks/base/core/jni/
Dandroid_os_MemoryFile.cpp74 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_read() argument
84 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset); in android_os_MemoryFile_read()
93 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_write() argument
103 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset); in android_os_MemoryFile_write()
/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.cpp761 size_t srcOffset = 0; in sendAMRData() local
762 while (srcOffset < mediaLength) { in sendAMRData()
763 uint8_t toc = mediaData[srcOffset]; in sendAMRData()
769 srcOffset += getFrameSize(isWide, FT); in sendAMRData()
771 CHECK_EQ(srcOffset, mediaLength); in sendAMRData()
811 srcOffset = 0; in sendAMRData()
817 ++srcOffset; // skip toc in sendAMRData()
818 memcpy(&data[dstOffset], &mediaData[srcOffset], frameSize - 1); in sendAMRData()
819 srcOffset += frameSize - 1; in sendAMRData()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp621 size_t srcOffset = 0; in read() local
623 while (srcOffset + mNALSizeLen <= srcSize) { in read()
626 case 1: NALsize = srcPtr[srcOffset]; break; in read()
627 case 2: NALsize = U16_AT(srcPtr + srcOffset); break; in read()
628 case 3: NALsize = U24_AT(srcPtr + srcOffset); break; in read()
629 case 4: NALsize = U32_AT(srcPtr + srcOffset); break; in read()
634 if (srcOffset + mNALSizeLen + NALsize > srcSize) { in read()
642 &srcPtr[srcOffset + mNALSizeLen], in read()
649 srcOffset += mNALSizeLen + NALsize; in read()
652 if (srcOffset < srcSize) { in read()
/frameworks/base/core/jni/android/graphics/
DGraphicsJNI.h104 static bool SetPixels(JNIEnv* env, jintArray colors, int srcOffset,
DBitmap.cpp117 bool GraphicsJNI::SetPixels(JNIEnv* env, jintArray srcColors, int srcOffset, int srcStride, in SetPixels() argument
128 const SkColor* src = (const SkColor*)array + srcOffset; in SetPixels()