Home
last modified time | relevance | path

Searched refs:srcOffset (Results 1 – 12 of 12) 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 size_t end = srcOffset + nalLength; in read()
190 if (end > len || end < srcOffset) { in read()
219 memcpy(&dstData[dstOffset], &decryptedDrmBuffer.data[srcOffset], nalLength); in read()
220 srcOffset += nalLength; in read()
224 CHECK_EQ(srcOffset, len); in read()
DMPEG4Extractor.cpp4410 size_t srcOffset = 0; in read() local
4413 while (srcOffset < size) { in read()
4414 bool isMalFormed = !isInRange((size_t)0u, size, srcOffset, mNALLengthSize); in read()
4417 nalLength = parseNALSize(&mSrcBuffer[srcOffset]); in read()
4418 srcOffset += mNALLengthSize; in read()
4419 isMalFormed = !isInRange((size_t)0u, size, srcOffset, nalLength); in read()
4447 memcpy(&dstData[dstOffset], &mSrcBuffer[srcOffset], nalLength); in read()
4448 srcOffset += nalLength; in read()
4451 CHECK_EQ(srcOffset, size); in read()
4733 size_t srcOffset = 0; in fragmentedRead() local
[all …]
/frameworks/av/media/libstagefright/wifi-display/rtp/
DRTPSender.cpp255 size_t srcOffset = 0; in queueTSPackets() local
256 while (srcOffset < tsPackets->size()) { in queueTSPackets()
283 size_t numTSPackets = (tsPackets->size() - srcOffset) / 188; in queueTSPackets()
288 memcpy(&rtp[12], tsPackets->data() + srcOffset, numTSPackets * 188); in queueTSPackets()
292 srcOffset += numTSPackets * 188; in queueTSPackets()
293 bool isLastPacket = (srcOffset == tsPackets->size()); in queueTSPackets()
383 size_t srcOffset = 1; in queueAVCBuffer() local
384 while (srcOffset < nalSize) { in queueAVCBuffer()
386 if (copy > nalSize - srcOffset) { in queueAVCBuffer()
387 copy = nalSize - srcOffset; in queueAVCBuffer()
[all …]
/frameworks/base/media/java/android/media/
DImageUtils.java146 int srcOffset = srcBuffer.position(); in imageCopy() local
155 int remainingBytes = srcBuffer.remaining() - srcOffset; in imageCopy()
160 directByteBufferCopy(srcBuffer, srcOffset, dstBuffer, dstOffset, srcByteCount); in imageCopy()
161 srcOffset += srcRowStride; in imageCopy()
265 private static void directByteBufferCopy(ByteBuffer srcBuffer, int srcOffset, in directByteBufferCopy() argument
267 Memory.memmove(dstBuffer, dstOffset, srcBuffer, srcOffset, srcByteCount); in directByteBufferCopy()
/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.cpp703 size_t srcOffset = 0; in read() local
705 while (srcOffset + mNALSizeLen <= srcSize) { in read()
708 case 1: NALsize = srcPtr[srcOffset]; break; in read()
709 case 2: NALsize = U16_AT(srcPtr + srcOffset); break; in read()
710 case 3: NALsize = U24_AT(srcPtr + srcOffset); break; in read()
711 case 4: NALsize = U32_AT(srcPtr + srcOffset); break; in read()
716 if (srcOffset + mNALSizeLen + NALsize <= srcOffset + mNALSizeLen) { in read()
721 } else if (srcOffset + mNALSizeLen + NALsize > srcSize) { in read()
730 &srcPtr[srcOffset + mNALSizeLen], in read()
738 srcOffset += mNALSizeLen + NALsize; in read()
[all …]
/frameworks/base/core/jni/android/graphics/
DGraphicsJNI.h118 static bool SetPixels(JNIEnv* env, jintArray colors, int srcOffset,
DBitmap.cpp497 bool GraphicsJNI::SetPixels(JNIEnv* env, jintArray srcColors, int srcOffset, int srcStride, in SetPixels() argument
508 const SkColor* src = (const SkColor*)array + srcOffset; in SetPixels()
/frameworks/native/vulkan/include/vulkan/
Dvulkan.h2097 VkDeviceSize srcOffset; member
2111 VkOffset3D srcOffset; member
2163 VkOffset3D srcOffset; member
/frameworks/native/vulkan/api/
Dvulkan.api1714 VkDeviceSize srcOffset /// Specified in bytes
1778 …VkOffset3D srcOffset /// Specified in pixels for both…
1802 VkOffset3D srcOffset