Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 219) sorted by relevance

123456789

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dget_pred_outside.cpp116 *((uint32*)ptr) = temp; \
117 *((uint32*)(ptr+4)) = temp; \
118 *((uint32*)(ptr+=16)) = temp; \
119 *((uint32*)(ptr+4)) = temp; \
120 *((uint32*)(ptr+=16)) = temp; \
121 *((uint32*)(ptr+4)) = temp; \
122 *((uint32*)(ptr+=16)) = temp; \
123 *((uint32*)(ptr+4)) = temp; \
124 *((uint32*)(ptr+=16)) = temp; \
125 *((uint32*)(ptr+4)) = temp; \
[all …]
Dchv_filter.cpp190 uint8 *ptr, *ptr_e; in CombinedHorzVertFilter() local
221 ptr = rec + (brwidth << 6) + (bc << 3); in CombinedHorzVertFilter()
225 ptr_e = ptr + 8; /* pointer to where the loop ends */ in CombinedHorzVertFilter()
232 jVal0 = *(ptr - width); /* C */ in CombinedHorzVertFilter()
233 jVal1 = *ptr; /* D */ in CombinedHorzVertFilter()
241 *(ptr - width) = (uint8)(jVal0); /* C */ in CombinedHorzVertFilter()
242 *ptr = (uint8)(jVal0); /* D */ in CombinedHorzVertFilter()
244 jVal0 = *(ptr - (width << 1)); /* B */ in CombinedHorzVertFilter()
245 jVal1 = *(ptr + width); /* E */ in CombinedHorzVertFilter()
252 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter()
[all …]
Dderinging_chroma.cpp41 uint8 *ptr; in Deringing_Chroma() local
57 ptr = &Rec_C[h_blk]; in Deringing_Chroma()
58 max_blk = min_blk = *ptr; in Deringing_Chroma()
59 FindMaxMin(ptr, &min_blk, &max_blk, width); in Deringing_Chroma()
70 ptr = &Rec_C[addr_v + h0 - 1]; in Deringing_Chroma()
74 pelu = *(ptr - width); in Deringing_Chroma()
75 pelc = *ptr; in Deringing_Chroma()
76 pell = *(ptr + width); in Deringing_Chroma()
77 ptr++; in Deringing_Chroma()
81 pelu = *(ptr - width); in Deringing_Chroma()
[all …]
Dchvr_filter.cpp39 uint8 *ptr, *ptr_c, *ptr_n; in CombinedHorzVertRingFilter() local
100 ptr = rec + (brwidth << 6) + (bc << 3); in CombinedHorzVertRingFilter()
124 a3_0 = *ptr - *(ptr - w1); in CombinedHorzVertRingFilter()
130 ptr_c = ptr - w3; /* Points to pixel three rows above */ in CombinedHorzVertRingFilter()
131 ptr_n = ptr + w1; /* Points to pixel one row below */ in CombinedHorzVertRingFilter()
167 ++ptr; in CombinedHorzVertRingFilter()
179 a3_0 = *(ptr) - *(ptr - w1); in CombinedHorzVertRingFilter()
187 a3_0 += ((*(ptr - w2) - *(ptr + w1)) << 1) + (a3_0 << 2); in CombinedHorzVertRingFilter()
192 a3_1 = *(ptr - w2) - *(ptr - w3); in CombinedHorzVertRingFilter()
193 a3_1 += ((*(ptr - w4) - *(ptr - w1)) << 1) + (a3_1 << 2); in CombinedHorzVertRingFilter()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dpred_lt4.c60 Word16 *ptr, *ptr1; in Pred_lt4() local
76 ptr = ptr2; in Pred_lt4()
78 L_sum = vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
79 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
80 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
81 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
82 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
83 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
84 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
85 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
[all …]
Dmem_align.c99 unsigned char *ptr; in mem_free() local
104 ptr = mem_ptr; in mem_free()
106 ptr -= *(ptr - 1); in mem_free()
108 pMemop->Free(CodecID, ptr); in mem_free()
/frameworks/av/media/libstagefright/wifi-display/source/
DTSPacketizer.cpp216 uint8_t *ptr = dup->data(); in prependADTSHeader() local
218 *ptr++ = 0xff; in prependADTSHeader()
219 *ptr++ = 0xf9; // b11111001, ID=1(MPEG-2), layer=0, protection_absent=1 in prependADTSHeader()
221 *ptr++ = in prependADTSHeader()
227 *ptr++ = in prependADTSHeader()
230 *ptr++ = (aac_frame_length >> 3) & 0xff; in prependADTSHeader()
231 *ptr++ = (aac_frame_length & 7) << 5; in prependADTSHeader()
234 *ptr++ = 0; in prependADTSHeader()
236 memcpy(ptr, accessUnit->data(), accessUnit->size()); in prependADTSHeader()
678 uint8_t *ptr = packetDataStart; in packetize() local
[all …]
/frameworks/rs/driver/runtime/
Drs_core.c39 extern int32_t __attribute__((overloadable)) rsAtomicCas(volatile int32_t *ptr, int32_t expectedVal… in rsAtomicCas() argument
40 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); in rsAtomicCas()
43 extern uint32_t __attribute__((overloadable)) rsAtomicCas(volatile uint32_t *ptr, uint32_t expected… in rsAtomicCas() argument
44 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); in rsAtomicCas()
47 extern int32_t __attribute__((overloadable)) rsAtomicInc(volatile int32_t *ptr) { in rsAtomicInc() argument
48 return __sync_fetch_and_add(ptr, 1); in rsAtomicInc()
51 extern int32_t __attribute__((overloadable)) rsAtomicInc(volatile uint32_t *ptr) { in rsAtomicInc() argument
52 return __sync_fetch_and_add(ptr, 1); in rsAtomicInc()
55 extern int32_t __attribute__((overloadable)) rsAtomicDec(volatile int32_t *ptr) { in rsAtomicDec() argument
56 return __sync_fetch_and_sub(ptr, 1); in rsAtomicDec()
[all …]
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp196 const uint8_t *ptr = (const uint8_t *)data; in extractCodecSpecificData() local
198 size_t numSeqParameterSets = ptr[5] & 31; in extractCodecSpecificData()
200 ptr += 6; in extractCodecSpecificData()
205 size_t length = U16_AT(ptr); in extractCodecSpecificData()
207 ptr += 2; in extractCodecSpecificData()
214 memcpy(out->data() + out->size() + 4, ptr, length); in extractCodecSpecificData()
217 ptr += length; in extractCodecSpecificData()
222 size_t numPictureParameterSets = *ptr; in extractCodecSpecificData()
223 ++ptr; in extractCodecSpecificData()
228 size_t length = U16_AT(ptr); in extractCodecSpecificData()
[all …]
DUtils.cpp40 uint16_t U16_AT(const uint8_t *ptr) { in U16_AT() argument
41 return ptr[0] << 8 | ptr[1]; in U16_AT()
44 uint32_t U32_AT(const uint8_t *ptr) { in U32_AT() argument
45 return ptr[0] << 24 | ptr[1] << 16 | ptr[2] << 8 | ptr[3]; in U32_AT()
48 uint64_t U64_AT(const uint8_t *ptr) { in U64_AT() argument
49 return ((uint64_t)U32_AT(ptr)) << 32 | U32_AT(ptr + 4); in U64_AT()
52 uint16_t U16LE_AT(const uint8_t *ptr) { in U16LE_AT() argument
53 return ptr[0] | (ptr[1] << 8); in U16LE_AT()
56 uint32_t U32LE_AT(const uint8_t *ptr) { in U32LE_AT() argument
57 return ptr[3] << 24 | ptr[2] << 16 | ptr[1] << 8 | ptr[0]; in U32LE_AT()
[all …]
/frameworks/native/cmds/servicemanager/
Dbinder.c46 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets; in binder_dump_txn()
50 (uint64_t)txn->target.ptr, (uint64_t)txn->cookie, txn->code, txn->flags); in binder_dump_txn()
53 hexdump((void *)(uintptr_t)txn->data.ptr.buffer, txn->data_size); in binder_dump_txn()
55 obj = (struct flat_binder_object *) (((char*)(uintptr_t)txn->data.ptr.buffer) + *offs++); in binder_dump_txn()
185 data.txn.target.ptr = 0; in binder_send_reply()
192 data.txn.data.ptr.buffer = (uintptr_t)&status; in binder_send_reply()
193 data.txn.data.ptr.offsets = 0; in binder_send_reply()
198 data.txn.data.ptr.buffer = (uintptr_t)reply->data0; in binder_send_reply()
199 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0; in binder_send_reply()
205 uintptr_t ptr, size_t size, binder_handler func) in binder_parse() argument
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_transform.c103 i32 *ptr; in h264bsdProcessBlock() local
156 for (row = 4, ptr = data; row--; ptr += 4) in h264bsdProcessBlock()
158 tmp0 = ptr[0] + ptr[2]; in h264bsdProcessBlock()
159 tmp1 = ptr[0] - ptr[2]; in h264bsdProcessBlock()
160 tmp2 = (ptr[1] >> 1) - ptr[3]; in h264bsdProcessBlock()
161 tmp3 = ptr[1] + (ptr[3] >> 1); in h264bsdProcessBlock()
162 ptr[0] = tmp0 + tmp3; in h264bsdProcessBlock()
163 ptr[1] = tmp1 + tmp2; in h264bsdProcessBlock()
164 ptr[2] = tmp1 - tmp2; in h264bsdProcessBlock()
165 ptr[3] = tmp0 - tmp3; in h264bsdProcessBlock()
[all …]
Dh264bsd_util.h142 #define ALLOCATE(ptr, count, type) \ argument
144 (ptr) = H264SwDecMalloc(sizeof(type), (count)); \
148 #define FREE(ptr) \ argument
150 H264SwDecFree((ptr)); (ptr) = NULL; \
153 #define ALIGN(ptr, bytePos) \ argument
154 (ptr + ( ((bytePos - (uintptr_t)ptr) & (bytePos - 1)) / sizeof(*ptr) ))
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputApplicationHandle.cpp29 jfieldID ptr; member
93 jlong ptr = env->GetLongField(inputApplicationHandleObj, gInputApplicationHandleClassInfo.ptr); in android_server_InputApplicationHandle_getHandle() local
95 if (ptr) { in android_server_InputApplicationHandle_getHandle()
96 handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr); in android_server_InputApplicationHandle_getHandle()
101 env->SetLongField(inputApplicationHandleObj, gInputApplicationHandleClassInfo.ptr, in android_server_InputApplicationHandle_getHandle()
113 jlong ptr = env->GetLongField(obj, gInputApplicationHandleClassInfo.ptr); in android_server_InputApplicationHandle_nativeDispose() local
114 if (ptr) { in android_server_InputApplicationHandle_nativeDispose()
115 env->SetLongField(obj, gInputApplicationHandleClassInfo.ptr, 0); in android_server_InputApplicationHandle_nativeDispose()
117 NativeInputApplicationHandle* handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr); in android_server_InputApplicationHandle_nativeDispose()
146 GET_FIELD_ID(gInputApplicationHandleClassInfo.ptr, clazz, in register_android_server_InputApplicationHandle()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp66 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseAC3SyncFrame() argument
92 ABitReader bits(ptr, size); in parseAC3SyncFrame()
172 static bool IsSeeminglyValidAC3Header(const uint8_t *ptr, size_t size) { in IsSeeminglyValidAC3Header() argument
173 return parseAC3SyncFrame(ptr, size, NULL) > 0; in IsSeeminglyValidAC3Header()
177 const uint8_t *ptr, size_t size, size_t *frameLength) { in IsSeeminglyValidADTSHeader() argument
183 if (ptr[0] != 0xff || (ptr[1] >> 4) != 0x0f) { in IsSeeminglyValidADTSHeader()
187 unsigned layer = (ptr[1] >> 1) & 3; in IsSeeminglyValidADTSHeader()
193 unsigned ID = (ptr[1] >> 3) & 1; in IsSeeminglyValidADTSHeader()
194 unsigned profile_ObjectType = ptr[2] >> 6; in IsSeeminglyValidADTSHeader()
202 ((ptr[3] & 3) << 11) + (ptr[4] << 3) + ((ptr[5] >> 5) & 7); in IsSeeminglyValidADTSHeader()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuRuntimeMathFuncs.cpp58 extern float SC_frexpf(float v, int* ptr);
59 float __attribute__((overloadable)) frexp(float v, int* ptr) {return SC_frexpf(v, ptr);} in frexp() argument
66 extern float SC_lgammaf_r(float v, int* ptr);
67 float __attribute__((overloadable)) lgamma(float v, int* ptr) {return SC_lgammaf_r(v, ptr);} in lgamma() argument
72 extern float SC_modff(float v, float* ptr);
73 float modf(float v, float* ptr) {return SC_modff(v, ptr);} in modf() argument
77 extern float SC_remquof(float t, float v, int* ptr);
78 float remquo(float t, float v, int* ptr) {return SC_remquof(t, v, ptr);} in remquo() argument
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp103 static void nativeWriteToParcel(JNIEnv* env, jobject clazz, jlong ptr, jobject parcelObj) { in nativeWriteToParcel() argument
104 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeWriteToParcel()
112 static void nativeDispose(JNIEnv *env, jobject clazz, jlong ptr) { in nativeDispose() argument
113 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeDispose()
117 static jchar nativeGetCharacter(JNIEnv *env, jobject clazz, jlong ptr, in nativeGetCharacter() argument
119 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeGetCharacter()
123 static jboolean nativeGetFallbackAction(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode, in nativeGetFallbackAction() argument
125 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeGetFallbackAction()
138 static jchar nativeGetNumber(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode) { in nativeGetNumber() argument
139 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeGetNumber()
[all …]
Dandroid_view_VelocityTracker.cpp151 static void android_view_VelocityTracker_nativeDispose(JNIEnv* env, jclass clazz, jlong ptr) { in android_view_VelocityTracker_nativeDispose() argument
152 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); in android_view_VelocityTracker_nativeDispose()
156 static void android_view_VelocityTracker_nativeClear(JNIEnv* env, jclass clazz, jlong ptr) { in android_view_VelocityTracker_nativeClear() argument
157 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); in android_view_VelocityTracker_nativeClear()
161 static void android_view_VelocityTracker_nativeAddMovement(JNIEnv* env, jclass clazz, jlong ptr, in android_view_VelocityTracker_nativeAddMovement() argument
169 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); in android_view_VelocityTracker_nativeAddMovement()
174 jlong ptr, jint units, jfloat maxVelocity) { in android_view_VelocityTracker_nativeComputeCurrentVelocity() argument
175 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); in android_view_VelocityTracker_nativeComputeCurrentVelocity()
180 jlong ptr, jint id) { in android_view_VelocityTracker_nativeGetXVelocity() argument
181 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); in android_view_VelocityTracker_nativeGetXVelocity()
[all …]
Dandroid_os_MessageQueue.cpp168 jlong ptr = env->GetLongField(messageQueueObj, gMessageQueueClassInfo.mPtr); in android_os_MessageQueue_getMessageQueue() local
169 return reinterpret_cast<NativeMessageQueue*>(ptr); in android_os_MessageQueue_getMessageQueue()
183 static void android_os_MessageQueue_nativeDestroy(JNIEnv* env, jclass clazz, jlong ptr) { in android_os_MessageQueue_nativeDestroy() argument
184 NativeMessageQueue* nativeMessageQueue = reinterpret_cast<NativeMessageQueue*>(ptr); in android_os_MessageQueue_nativeDestroy()
189 jlong ptr, jint timeoutMillis) { in android_os_MessageQueue_nativePollOnce() argument
190 NativeMessageQueue* nativeMessageQueue = reinterpret_cast<NativeMessageQueue*>(ptr); in android_os_MessageQueue_nativePollOnce()
194 static void android_os_MessageQueue_nativeWake(JNIEnv* env, jclass clazz, jlong ptr) { in android_os_MessageQueue_nativeWake() argument
195 NativeMessageQueue* nativeMessageQueue = reinterpret_cast<NativeMessageQueue*>(ptr); in android_os_MessageQueue_nativeWake()
199 static jboolean android_os_MessageQueue_nativeIsPolling(JNIEnv* env, jclass clazz, jlong ptr) { in android_os_MessageQueue_nativeIsPolling() argument
200 NativeMessageQueue* nativeMessageQueue = reinterpret_cast<NativeMessageQueue*>(ptr); in android_os_MessageQueue_nativeIsPolling()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dblock.cpp23 int16 *ptr = dataBlock; in trans() local
43 ptr[0] = r0 + r1; in trans()
44 ptr[2] = r0 - r1; in trans()
45 ptr[1] = (r3 << 1) + r2; in trans()
46 ptr[3] = r3 - (r2 << 1); in trans()
48 ptr += 16; in trans()
54 ptr = dataBlock; in trans()
58 r0 = ptr[0] + ptr[48]; in trans()
59 r3 = ptr[0] - ptr[48]; in trans()
60 r1 = ptr[16] + ptr[32]; in trans()
[all …]
/frameworks/rs/cpp/
DAllocation.cpp193 static void copyWithPadding(void* ptr, const void* srcPtr, int mSize, int count) { in copyWithPadding() argument
196 uint8_t *dst = static_cast<uint8_t *>(ptr); in copyWithPadding()
205 static void copyWithUnPadding(void* ptr, const void* srcPtr, int mSize, int count) { in copyWithUnPadding() argument
208 uint8_t *dst = static_cast<uint8_t *>(ptr); in copyWithUnPadding()
231 void *ptr = malloc(eSize * count); in copy1DRangeFrom() local
232 copyWithPadding(ptr, data, eSize / 4, count); in copy1DRangeFrom()
234 … count, ptr, count * mType->getElement()->getSizeBytes())); in copy1DRangeFrom()
235 free(ptr); in copy1DRangeFrom()
254 void *ptr = malloc(eSize * count); in copy1DRangeTo() local
256 … count, ptr, count * mType->getElement()->getSizeBytes())); in copy1DRangeTo()
[all …]
/frameworks/base/core/java/android/view/
DVelocityTracker.java41 private static native void nativeDispose(long ptr); in nativeDispose() argument
42 private static native void nativeClear(long ptr); in nativeClear() argument
43 private static native void nativeAddMovement(long ptr, MotionEvent event); in nativeAddMovement() argument
44 private static native void nativeComputeCurrentVelocity(long ptr, int units, float maxVelocity); in nativeComputeCurrentVelocity() argument
45 private static native float nativeGetXVelocity(long ptr, int id); in nativeGetXVelocity() argument
46 private static native float nativeGetYVelocity(long ptr, int id); in nativeGetYVelocity() argument
47 private static native boolean nativeGetEstimator(long ptr, int id, Estimator outEstimator); in nativeGetEstimator() argument
/frameworks/av/include/media/stagefright/
DUtils.h33 uint16_t U16_AT(const uint8_t *ptr);
34 uint32_t U32_AT(const uint8_t *ptr);
35 uint64_t U64_AT(const uint8_t *ptr);
37 uint16_t U16LE_AT(const uint8_t *ptr);
38 uint32_t U32LE_AT(const uint8_t *ptr);
39 uint64_t U64LE_AT(const uint8_t *ptr);
/frameworks/base/core/java/com/android/internal/util/
DVirtualRefBasePtr.java26 public VirtualRefBasePtr(long ptr) { in VirtualRefBasePtr() argument
27 mNativePtr = ptr; in VirtualRefBasePtr()
51 private static native void nIncStrong(long ptr); in nIncStrong() argument
52 private static native void nDecStrong(long ptr); in nDecStrong() argument
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dmemalign.c99 unsigned char *ptr; in mem_free() local
104 ptr = mem_ptr; in mem_free()
106 ptr -= *(ptr - 1); in mem_free()
108 pMemop->Free(CodecID, ptr); in mem_free()

123456789