Searched defs:offset (Results 151 - 175 of 575) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Didct_vca.cpp48 /* preset the offset, such that we can take advantage pre-offset addressing mode */
104 /* preset the offset, such that we can take advantage pre-offset addressing mode */
192 /* preset the offset, such that we can take advantage pre-offset addressing mode */
301 /* preset the offset, such that we can take advantage pre-offset addressing mode */
424 int offset = width; local
427 comp -= offset;
452 int offset = width; local
509 int offset = width; local
582 int offset = width; local
[all...]
H A Dpost_filter.cpp190 int d, offset, nMBPerRow, nMBPerCol, width2 = (width << 1); local
399 offset = width * b_size - b_size;
472 rec_y -= offset;
489 offset = width * b_size - b_size;
570 rec_y -= offset;
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Ddatapart_encode.cpp44 Int offset = 0; local
111 getMotionCompensatedMB(video, ind_x, ind_y, offset);
130 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
168 offset += 16;
171 offset += (lx << 4) - width;
224 Int offset = video->offset; /* get current MB location */ local
317 getMotionCompensatedMB(video, ind_x, ind_y, offset);
341 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
419 video->offset
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_framedecoder.cpp271 * offset in bytes from the first byte of the sync word
562 pMainData->pBuffer[module(pMainData->offset++, BUFSIZE)] = (uint8)val;
571 int32 offset = (pVars->inputStream.usedBits) >> INBUF_ARRAY_INDEX_SHIFT; local
576 if ((offset + temp) < BUFSIZE)
578 uint8 * ptr = pVars->inputStream.pBuffer + offset;
580 offset = pVars->mainDataStream.offset;
585 if ((offset + temp) < BUFSIZE)
587 pv_memcpy((pVars->mainDataStream.pBuffer + offset), ptr, temp*sizeof(uint8));
588 pVars->mainDataStream.offset
[all...]
/frameworks/av/media/libstagefright/http/
H A DMediaHTTP.cpp48 off64_t /* offset */) {
81 ssize_t MediaHTTP::readAt(off64_t offset, void *data, size_t size) { argument
99 offset + numBytesRead, (uint8_t *)data + numBytesRead, copy);
139 status_t MediaHTTP::reconnectAtOffset(off64_t offset) { argument
140 return connect(mLastURI.c_str(), &mLastHeaders, offset);
/frameworks/av/media/libstagefright/rtsp/
H A DAAMRAssembler.cpp151 size_t offset = 1; local
154 if (offset >= buffer->size()) {
163 uint8_t toc = buffer->data()[offset++];
195 if (offset + frameSize - 1 > buffer->size()) {
206 buffer->data() + offset, frameSize - 1);
208 offset += frameSize - 1;
H A DAAVCAssembler.cpp292 size_t offset = 1; local
302 memcpy(unit->data() + offset, buffer->data() + 2, buffer->size() - 2);
303 offset += buffer->size() - 2;
329 size_t offset = 0; local
332 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4);
333 offset += 4;
336 memcpy(accessUnit->data() + offset, nal->data(), nal->size());
337 offset += nal->size();
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextDriver.cpp218 size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) {
225 sp<DataSource> dataSource = new FileSource(dup(fd), offset, length);
217 addOutOfBandTextSource( size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) argument
/frameworks/av/media/libstagefright/timedtext/test/
H A DTimedTextSRTSource_test.cpp65 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument
66 if (offset >= mSize) return 0;
68 ssize_t avail = mSize - offset;
72 memcpy(data, mData + offset, avail);
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp64 int offset = mOffset; local
65 value = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8);
73 int offset = mOffset; local
74 value = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) |
75 ((uint32_t)mBuffer[offset + 2] << 16) | ((uint32_t)mBuffer[offset + 3] << 24);
83 int offset = mOffset; local
84 value = (uint64_t)mBuffer[offset] | ((uint64_
[all...]
H A DMtpPacket.cpp94 uint16_t MtpPacket::getUInt16(int offset) const {
95 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset];
98 uint32_t MtpPacket::getUInt32(int offset) const {
99 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) |
100 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset];
103 void MtpPacket::putUInt16(int offset, uint16_t value) { argument
104 mBuffer[offset
108 putUInt32(int offset, uint32_t value) argument
148 int offset = MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t); local
[all...]
/frameworks/base/cmds/screencap/
H A Dscreencap.cpp159 size_t offset = (vinfo.xoffset + vinfo.yoffset*vinfo.xres) * bytespp; local
164 mapsize = offset + size;
167 base = (void const *)((char const *)mapbase + offset);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DRggbChannelVector.java137 * {@code offset}
138 * @param offset
139 * a non-negative offset into the array
145 * offset.
147 public void copyTo(final float[] destination, final int offset) { argument
149 if (destination.length - offset < COUNT) {
153 destination[offset + RED] = mRed;
154 destination[offset + GREEN_EVEN] = mGreenEven;
155 destination[offset + GREEN_ODD] = mGreenOdd;
156 destination[offset
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DPlaybackSynthesisCallback.java157 public int audioAvailable(byte[] buffer, int offset, int length) { argument
158 if (DBG) Log.d(TAG, "audioAvailable(byte[" + buffer.length + "]," + offset + "," + length
184 System.arraycopy(buffer, offset, bufferCopy, 0, length);
/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java95 public int[] following(int offset) { argument
100 if (offset >= textLegth) {
103 int start = offset;
121 public int[] preceding(int offset) { argument
126 if (offset <= 0) {
129 int end = offset;
185 public int[] following(int offset) { argument
190 if (offset >= mText.length()) {
193 int start = offset;
211 public int[] preceding(int offset) { argument
266 following(int offset) argument
293 preceding(int offset) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_nio_utils.cpp33 jint offset; local
45 offset = _env->CallStaticIntMethod(gNioJNI.nioAccessClass,
49 return (void *) ((char *) data + offset);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DLimitedLengthInputStreamTest.java74 fail("Should fail when offset + length is > Long.MAX_VALUE");
80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) argument
86 System.arraycopy(TEST_STRING1, offset, expected, 0, length);
88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length);
131 private void checkReadBytes_WithString1(int offset, int length) throws Exception { argument
136 System.arraycopy(TEST_STRING1, offset, expected, 0, length);
138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length);
167 private void checkSingleByteRead_WithString1(int offset, int length) throws Exception { argument
168 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length);
171 assertEquals(TEST_STRING1[offset
[all...]
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java51 public int offset; field in class:TimeTest.DateTest
61 int offset, int year2, int month2, int day2, int hour2, int minute2,
69 this.offset = offset;
79 int offset, int year2, int month2, int day2, int hour2, int minute2) {
86 this.offset = offset;
98 // The "offset" field in "dayTests" represents days.
130 // The "offset" field in "minuteTests" represents minutes.
188 local.monthDay += test.offset;
60 DateTest(int year1, int month1, int day1, int hour1, int minute1, int dst1, int offset, int year2, int month2, int day2, int hour2, int minute2, int dst2) argument
78 DateTest(int year1, int month1, int day1, int hour1, int minute1, int offset, int year2, int month2, int day2, int hour2, int minute2) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java47 * @param offset offset into data for where the decoder should begin
49 * @param length the number of bytes, beginning at offset, to parse
61 int offset, int length, boolean isShareable) throws IOException {
62 if ((offset | length) < 0 || data.length < offset + length) {
65 return nativeNewInstance(data, offset, length, isShareable);
265 byte[] data, int offset, int length, boolean isShareable);
60 newInstance(byte[] data, int offset, int length, boolean isShareable) argument
264 nativeNewInstance( byte[] data, int offset, int length, boolean isShareable) argument
H A DMovie.java60 public static native Movie decodeByteArray(byte[] data, int offset, argument
H A DOutline.java228 public void offset(int dx, int dy) { method in class:Outline
230 mRect.offset(dx, dy);
232 mPath.offset(dx, dy);
/frameworks/base/libs/common_time/
H A Dcommon_time_server_packets.cpp42 if ((offset + sizeof(field_name)) > length) \
44 *((type*)(data + offset)) = converter(field_name); \
45 offset += sizeof(field_name); \
53 if ((offset + sizeof(field_name)) > length) \
55 field_name = converter(*((type*)(data + offset))); \
56 offset += sizeof(field_name); \
80 ssize_t offset = 0; local
87 return offset;
92 ssize_t offset = 0; local
100 return offset;
186 ssize_t offset = serializeHeader(data, length); local
196 ssize_t offset = deserializeHeader(data, length); local
208 ssize_t offset = serializeHeader(data, length); local
218 ssize_t offset = deserializeHeader(data, length); local
230 ssize_t offset = serializeHeader(data, length); local
239 ssize_t offset = deserializeHeader(data, length); local
248 ssize_t offset = serializeHeader(data, length); local
260 ssize_t offset = deserializeHeader(data, length); local
272 ssize_t offset = serializeHeader(data, length); local
282 ssize_t offset = deserializeHeader(data, length); local
[all...]
/frameworks/base/libs/hwui/
H A DProgram.cpp157 const mat4& transformMatrix, bool offset) {
158 if (projectionMatrix != mProjection || offset != mOffset) {
159 if (CC_LIKELY(!offset)) {
163 // offset screenspace xy by an amount that compensates for typical precision
166 // This offset value is based on an assumption that some hardware may use as
167 // little as 12.4 precision, so we offset by slightly more than 1/16.
172 mOffset = offset;
156 set(const mat4& projectionMatrix, const mat4& modelViewMatrix, const mat4& transformMatrix, bool offset) argument
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c52 int id, ret, offset; local
94 for (offset = 0; offset < desc_length; ) {
95 int count = desc_length - offset;
98 fprintf(stderr, "sending ACCESSORY_SET_HID_REPORT_DESC offset: %d count: %d desc_length: %d\n",
99 offset, count, desc_length);
101 ACCESSORY_SET_HID_REPORT_DESC, id, offset, &desc.value[offset], count, 1000);
103 offset += count;
/frameworks/base/media/jni/
H A Dandroid_media_MediaHTTPConnection.cpp135 JNIEnv *env, jobject thiz, jlong offset, jint size) {
145 thiz, gFields.readAtMethodID, offset, byteArrayObj, size);
134 android_media_MediaHTTPConnection_native_readAt( JNIEnv *env, jobject thiz, jlong offset, jint size) argument

Completed in 413 milliseconds

1234567891011>>