/frameworks/av/media/libmedia/ |
H A D | IMediaRecorder.cpp | 174 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument 175 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 179 data.writeInt64(offset); 431 int64_t offset = data.readInt64(); local 433 reply->writeInt32(setOutputFile(fd, offset, length));
|
H A D | IMediaSource.cpp | 174 size_t offset = reply.readInt32(); local 177 buf->set_range(offset, length); 319 size_t offset = buf->range_offset(); local 345 offset = 0; 353 reply->writeInt32(offset);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerCCDecoder.cpp | 59 size_t offset = 0; local 62 while (offset < ccBuf->size()) { 65 CCData *cc = (CCData *) (ccBuf->data() + offset); 69 offset += sizeof(CCData); 114 offset += sizeof(CCData);
|
/frameworks/av/media/libstagefright/ |
H A D | NuMediaExtractor.cpp | 135 status_t NuMediaExtractor::setDataSource(int fd, off64_t offset, off64_t size) { argument 137 ALOGV("setDataSource fd=%d (%s), offset=%lld, length=%lld", 138 fd, nameForFd(fd).c_str(), (long long) offset, (long long) size); 146 sp<FileSource> fileSource = new FileSource(dup(fd), offset, size);
|
H A D | WAVExtractor.cpp | 64 off64_t offset, size_t size); 153 off64_t offset = 12; local 157 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { 162 offset += 8; 176 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { 194 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { 282 mDataOffset = offset; 339 offset += chunkSize; 352 off64_t offset, size_t size) 359 mOffset(offset), 347 WAVSource( const sp<DataSource> &dataSource, const sp<MetaData> &meta, uint16_t waveFormat, int32_t bitsPerSample, off64_t offset, size_t size) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | block.cpp | 373 int offset_cur[4], offset_pred[4], offset; local 542 offset = 1 << (Qq - 1); 551 coef[0] = (((m0 + m2) * quant + offset) >> Qq); 552 coef[64] = (((m0 - m2) * quant + offset) >> Qq); 553 coef[128] = (((m1 - m3) * quant + offset) >> Qq); 554 coef[192] = (((m1 + m3) * quant + offset) >> Qq); 566 /* offset btw 4x4 block */ 570 /* offset btw 8x8 block */ 909 /* offset btw 4x4 block */
|
H A D | slice.cpp | 170 int offset; local 182 offset = y_position * picPitch + x_position; 183 curL = currPic->Sl + offset; 184 orgL = currInput->YCbCr[0] + offset; 185 offset = (offset + x_position) >> 2; 186 curCb = currPic->Scb + offset; 187 curCr = currPic->Scr + offset; 188 orgCb = currInput->YCbCr[1] + offset; 189 orgCr = currInput->YCbCr[2] + offset; 513 int j, offset; local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | vlc_decode.cpp | 143 int k, offset; local 161 offset = (k & 1) + (k >> 1) * doubleWidth; 183 mot_x[pos+offset] = (MOT) mvx; 184 mot_y[pos+offset] = (MOT) mvy; 229 offset = (k & 1) + (k >> 1) * doubleWidth; 232 mot_x[pos+offset] = (MOT) mvx; 233 mot_y[pos+offset] = (MOT) mvy; 888 /* first escape mode. level is offset */ 941 /* second escape mode. run is offset */ 1069 /* first escape mode. level is offset */ [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | ID3.cpp | 43 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument 44 off64_t available = (offset >= (off64_t)mSize) ? 0ll : mSize - offset; 47 memcpy(data, mData + offset, copy); 59 ID3::ID3(const sp<DataSource> &source, bool ignoreV1, off64_t offset) argument 66 mIsValid = parseV2(source, offset); 118 bool ID3::parseV2(const sp<DataSource> &source, off64_t offset) { argument 129 offset, &header, sizeof(header)) != (ssize_t)sizeof(header)) { 188 if (source->readAt(offset + sizeof(header), mData, mSize) != (ssize_t)mSize) { 346 size_t offset local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4AudioAssembler.cpp | 368 size_t offset = 0; local 382 if (offset >= buffer->size()) { 386 tmp = ptr[offset++]; 411 CHECK_LT(offset, buffer->size()); 412 CHECK_LE(payloadLength, buffer->size() - offset); 414 memcpy(out->data() + out->size(), &ptr[offset], payloadLength); 417 offset += payloadLength; 423 CHECK_LE(offset + (mOtherDataLenBits / 8), buffer->size()); 424 offset += mOtherDataLenBits / 8; 428 if (offset < buffe [all...] |
H A D | APacketSource.cpp | 341 size_t offset = 0; local 343 while (offset + 3 < config->size()) { 344 if (memcmp("\x00\x00\x01", &ptr[offset], 3) 345 || (ptr[offset + 3] & 0xf0) != 0x20) { 346 ++offset; 359 &ptr[offset], config->size() - offset, width, height);
|
H A D | ARTPWriter.cpp | 366 buffer->setRange(buffer->offset(), buffer->size() + 28); 378 size_t offset = 8; local 380 data[offset++] = 1; // CNAME 383 data[offset++] = strlen(kCNAME); 385 memcpy(&data[offset], kCNAME, strlen(kCNAME)); 386 offset += strlen(kCNAME); 388 data[offset++] = 7; // NOTE 391 data[offset++] = strlen(kNOTE); 393 memcpy(&data[offset], kNOTE, strlen(kNOTE)); 394 offset 613 size_t offset = 1; local 682 size_t offset = 2; local [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Converter.cpp | 530 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); 576 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); 686 size_t offset; local 692 &bufferIndex, &offset, &size, &timeUs, &flags); 752 memcpy(buffer->data(), outbuf->base() + offset, size);
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaExtractor.cpp | 74 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, argument 76 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 77 return translate_error(mData->mImpl->setDataSource(fd, offset, length));
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 289 * {@code offset + 2 * width * height)} bytes. The width and height of 304 * @param offset the offset of the raw image in bytes. This indicates how many bytes will 313 @NonNull InputStream pixels, @IntRange(from=0) long offset) throws IOException { 320 } else if (offset < 0) { 321 throw new IllegalArgumentException("Negative offset passed to writeInputStream"); 330 nativeWriteInputStream(dngOutput, pixels, width, height, offset); 339 * {@code offset + 2 * width * height)} bytes. The width and height of 359 * @param offset the offset o 312 writeInputStream(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull InputStream pixels, @IntRange(from=0) long offset) argument 366 writeByteBuffer(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull ByteBuffer pixels, @IntRange(from=0) long offset) argument 472 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument 646 nativeWriteImage(OutputStream out, int width, int height, ByteBuffer rawBuffer, int rowStride, int pixStride, long offset, boolean isDirect) argument 651 nativeWriteInputStream(OutputStream out, InputStream rawStream, int width, int height, long offset) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextLine.java | 257 * @param offset the line-relative character offset, between 0 and the 260 * before offset, false to measure the leading edge of the character 261 * at offset. 264 * @return the signed offset from the leading margin to the requested 267 float measure(int offset, boolean trailing, FontMetricsInt fmi) { argument 268 int target = trailing ? offset - 1 : offset; 277 return measureRun(0, offset, mLen, false, fmi); 280 return measureRun(0, offset, mLe 385 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument 585 getOffsetBeforeAfter(int runIndex, int runStart, int runLimit, boolean runIsRtl, int offset, boolean after) argument 695 handleText(TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth, int offset) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 200 * The offset of the first character in the buffer. 1106 private JsonToken decodeNumber(char[] chars, int offset, int length) { argument 1107 int i = offset; 1147 if (i == offset + length) {
|
H A D | MapCollections.java | 43 ArrayIterator(int offset) { argument 44 mOffset = offset; 486 public Object[] toArrayHelper(int offset) { argument 490 result[i] = colGetEntry(i, offset); 495 public <T> T[] toArrayHelper(T[] array, int offset) { argument 503 array[i] = (T)colGetEntry(i, offset); 551 protected abstract Object colGetEntry(int index, int offset); argument
|
/frameworks/base/core/java/android/view/ |
H A D | ViewParent.java | 133 * @param offset The input coordinates of a point, defined in the child coordinate system. 139 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); argument
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 190 long offset; local 216 offset = ftell(fp); 225 result = pAsset->openChunk(fd, offset, method, uncompressedLen, 241 /*static*/ Asset* Asset::createFromFileSegment(int fd, off64_t offset, 248 result = pAsset->openChunk(NULL, fd, offset, length); 259 /*static*/ Asset* Asset::createFromCompressedData(int fd, off64_t offset, 267 result = pAsset->openChunk(fd, offset, compressionMethod, 315 * Do generic seek() housekeeping. Pass in the offset/whence values from 316 * the seek request, along with the current chunk offset and the chunk 319 * Returns the new chunk offset, o 321 handleSeek(off64_t offset, int whence, off64_t curPosn, off64_t maxPosn) argument 379 openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument 508 seek(off64_t offset, int whence) argument 704 openChunk(int fd, off64_t offset, int compressionMethod, size_t uncompressedLen, size_t compressedLen) argument 802 seek(off64_t offset, int whence) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 130 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 132 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 136 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 143 offset = (int) floorf(std::max(paint->getStrokeWidth(), 1.0f) * 1.5f + 0.5f); 145 width = uint32_t(pathWidth + offset * 2.0 + 0.5); 146 height = uint32_t(pathHeight + offset * 2.0 + 0.5); 167 float left, float top, float offset, uint32_t width, uint32_t height) { 174 canvas.translate(-left + offset, -top + offset); 274 float left, top, offset; local 129 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 135 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 166 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 333 float left, top, offset; local [all...] |
H A D | PathCache.h | 65 float offset, int generation) 69 , offset(offset) { 92 float offset = 0; member in struct:android::uirenderer::PathTexture 232 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 234 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 64 PathTexture(Caches& caches, float left, float top, float offset, int generation) argument
|
/frameworks/base/media/java/android/media/ |
H A D | SoundPool.java | 284 * binary. The offset specifies the offset from the start of the file 288 * @param offset offset to the start of the sound 294 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 295 return _load(fd, offset, length, priority); 542 private native final int _load(FileDescriptor fd, long offset, long length, int priority); argument
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDevice.java | 172 * @param offset Start index of reading range. It must be a non-negative value at most 179 public long getPartialObject(int objectHandle, long offset, long size, byte[] buffer) argument 181 return native_get_partial_object(objectHandle, offset, size, buffer); 190 * unsigned 64-bit offset. Check if the MTP device supports the operation by using 194 * @param offset Start index of reading range. It must be a non-negative value. 200 public long getPartialObject64(int objectHandle, long offset, long size, byte[] buffer) argument 202 return native_get_partial_object_64(objectHandle, offset, size, buffer); 383 int objectHandle, long offset, long objectSize, byte[] buffer) throws IOException; 385 int objectHandle, long offset, long objectSize, byte[] buffer) throws IOException; 382 native_get_partial_object( int objectHandle, long offset, long objectSize, byte[] buffer) argument 384 native_get_partial_object_64( int objectHandle, long offset, long objectSize, byte[] buffer) argument
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 146 static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 159 if (offset < 0 || length < 0 || fd < 0) { 160 if (offset < 0) { 161 ALOGE("negative offset (%lld)", (long long)offset); 172 process_media_retriever_call(env, retriever->setDataSource(fd, offset, length), "java/lang/RuntimeException", "setDataSource failed");
|