/frameworks/base/media/libstagefright/codecs/avc/enc/src/ |
D | findhalfpel.cpp | 149 uint8 *ref; in GenerateHalfPelPred() local 160 ref = ncand - 3 - lx - (lx << 1); /* move back (-3,-3) */ in GenerateHalfPelPred() 169 tmp32 = *ref++; in GenerateHalfPelPred() 170 tmp8 = *ref++; in GenerateHalfPelPred() 172 tmp8 = *ref++; in GenerateHalfPelPred() 174 tmp8 = *ref++; in GenerateHalfPelPred() 179 ref += (lx - 24); in GenerateHalfPelPred() 183 ref = subpel_pred + 2; in GenerateHalfPelPred() 190 a = ref[-2]; in GenerateHalfPelPred() 191 b = ref[-1]; in GenerateHalfPelPred() [all …]
|
D | sad_mb_offset.h | 22 __inline int32 sad_mb_offset3(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() argument 24 __inline int32 sad_mb_offset2(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() 26 __inline int32 sad_mb_offset1(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() 35 ref -= NUMBER; /* bic ref, ref, #3 */ in sad_mb_offset3() 36 ref -= lx; in sad_mb_offset3() 48 x10 = *((uint32*)(ref += lx)); /* D C B A */ in sad_mb_offset3() 49 x11 = *((uint32*)(ref + 4)); /* H G F E */ in sad_mb_offset3() 50 x12 = *((uint32*)(ref + 8)); /* L K J I */ in sad_mb_offset3() 74 x10 = *((uint32*)(ref + 8)); /* D C B A */ in sad_mb_offset3() 75 x11 = *((uint32*)(ref + 12)); /* H G F E */ in sad_mb_offset3() [all …]
|
D | sad_inline.h | 77 __inline int32 simd_sad_mb(uint8 *ref, uint8 *blk, int dmin, int lx) in simd_sad_mb() argument 83 x8 = (uint32)ref & 0x3; in simd_sad_mb() 96 ref -= lx; in simd_sad_mb() 103 x10 = *((uint32*)(ref += lx)); in simd_sad_mb() 104 x11 = *((uint32*)(ref + 4)); in simd_sad_mb() 122 x10 = *((uint32*)(ref + 8)); in simd_sad_mb() 123 x11 = *((uint32*)(ref + 12)); in simd_sad_mb() 158 return sad_mb_offset3(ref, blk, lx, dmin); in simd_sad_mb() 162 return sad_mb_offset2(ref, blk, lx, dmin); in simd_sad_mb() 166 return sad_mb_offset1(ref, blk, lx, dmin); in simd_sad_mb() [all …]
|
D | motion_comp.cpp | 121 void eLumaMotionComp(uint8 *ref, int picpitch, int picheight, in eLumaMotionComp() argument 141 ref += y_pos * picpitch + x_pos; in eLumaMotionComp() 143 eFullPelMC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight); in eLumaMotionComp() 149 ref += y_pos * picpitch + x_pos; in eLumaMotionComp() 151 eHorzInterp1MC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight, dx); in eLumaMotionComp() 156 ref += y_pos * picpitch + x_pos; in eLumaMotionComp() 158 eVertInterp1MC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight, dy); in eLumaMotionComp() 163 ref += y_pos * picpitch + x_pos - 2; /* move to the left 2 pixels */ in eLumaMotionComp() 165 eVertInterp2MC(ref, picpitch, &temp2[0][0], 21, blkwidth + 5, blkheight); in eLumaMotionComp() 172 ref += (y_pos - 2) * picpitch + x_pos; /* move to up 2 lines */ in eLumaMotionComp() [all …]
|
D | sad_halfpel.cpp | 68 int AVCSAD_MB_HalfPel_Cxhyh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCSAD_MB_HalfPel_Cxhyh() argument 81 p1 = ref; in AVCSAD_MB_HalfPel_Cxhyh() 82 p2 = ref + 1; in AVCSAD_MB_HalfPel_Cxhyh() 83 p3 = ref + rx; in AVCSAD_MB_HalfPel_Cxhyh() 84 p4 = ref + rx + 1; in AVCSAD_MB_HalfPel_Cxhyh() 109 int AVCSAD_MB_HalfPel_Cyh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCSAD_MB_HalfPel_Cyh() argument 122 p1 = ref; in AVCSAD_MB_HalfPel_Cyh() 123 p2 = ref + rx; /* either left/right or top/bottom pixel */ in AVCSAD_MB_HalfPel_Cyh() 145 int AVCSAD_MB_HalfPel_Cxh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCSAD_MB_HalfPel_Cxh() argument 157 p1 = ref; in AVCSAD_MB_HalfPel_Cxh() [all …]
|
D | avcenc_lib.h | 425 void eLumaMotionComp(uint8 *ref, int picwidth, int picheight, 455 void eChromaMotionComp(uint8 *ref, int picwidth, int picheight, 639 void VertInterpWClip(uint8 *dst, uint8 *ref); 803 int AVCSAD_MB_HalfPel_Cxhyh(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info); 804 int AVCSAD_MB_HalfPel_Cyh(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info); 805 int AVCSAD_MB_HalfPel_Cxh(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info); 806 int AVCSAD_Macroblock_C(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info); 809 int AVCSAD_MB_HP_HTFM_Collectxhyh(uint8 *ref, uint8 *blk, int dmin_x, void *extra_info); 810 int AVCSAD_MB_HP_HTFM_Collectyh(uint8 *ref, uint8 *blk, int dmin_x, void *extra_info); 811 int AVCSAD_MB_HP_HTFM_Collectxh(uint8 *ref, uint8 *blk, int dmin_x, void *extra_info); [all …]
|
D | sad.cpp | 62 int AVCSAD_Macroblock_C(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info) in AVCSAD_Macroblock_C() argument 72 x10 = simd_sad_mb(ref, blk, dmin, lx); in AVCSAD_Macroblock_C() 90 int AVCAVCSAD_MB_HTFM_Collect(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info) in AVCAVCSAD_MB_HTFM_Collect() argument 112 p1 = ref + offsetRef[i]; in AVCAVCSAD_MB_HTFM_Collect() 195 int AVCSAD_MB_HTFM(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info) in AVCSAD_MB_HTFM() argument 215 p1 = ref + offsetRef[i]; in AVCSAD_MB_HTFM()
|
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | sad_mb_offset.h | 27 __inline int32 sad_mb_offset3(UChar *ref, UChar *blk, Int lx, Int dmin) in sad_mb_offset3() argument 29 __inline int32 sad_mb_offset2(UChar *ref, UChar *blk, Int lx, Int dmin) in sad_mb_offset3() 31 __inline int32 sad_mb_offset1(UChar *ref, UChar *blk, Int lx, Int dmin) in sad_mb_offset3() 40 ref -= NUMBER; /* bic ref, ref, #3 */ in sad_mb_offset3() 41 ref -= lx; in sad_mb_offset3() 53 x10 = *((uint32*)(ref += lx)); /* D C B A */ in sad_mb_offset3() 54 x11 = *((uint32*)(ref + 4)); /* H G F E */ in sad_mb_offset3() 55 x12 = *((uint32*)(ref + 8)); /* L K J I */ in sad_mb_offset3() 79 x10 = *((uint32*)(ref + 8)); /* D C B A */ in sad_mb_offset3() 80 x11 = *((uint32*)(ref + 12)); /* H G F E */ in sad_mb_offset3() [all …]
|
D | sad_halfpel.cpp | 64 Int HalfPel1_SAD_MB(UChar *ref, UChar *blk, Int dmin, Int width, Int ih, Int jh) in HalfPel1_SAD_MB() argument 73 p1 = ref; in HalfPel1_SAD_MB() 74 if (ih) p2 = ref + 1; in HalfPel1_SAD_MB() 75 else p2 = ref + width; in HalfPel1_SAD_MB() 96 Int HalfPel2_SAD_MB(UChar *ref, UChar *blk, Int dmin, Int width) in HalfPel2_SAD_MB() argument 103 p1 = ref; in HalfPel2_SAD_MB() 104 p2 = ref + 1; in HalfPel2_SAD_MB() 105 p3 = ref + width; in HalfPel2_SAD_MB() 106 p4 = ref + width + 1; in HalfPel2_SAD_MB() 138 Int HalfPel1_SAD_Blk(UChar *ref, UChar *blk, Int dmin, Int width, Int ih, Int jh) in HalfPel1_SAD_Blk() argument [all …]
|
D | sad_inline.h | 82 __inline int32 simd_sad_mb(UChar *ref, UChar *blk, Int dmin, Int lx) in simd_sad_mb() argument 88 x8 = (uint32)ref & 0x3; in simd_sad_mb() 101 ref -= lx; in simd_sad_mb() 108 x10 = *((uint32*)(ref += lx)); in simd_sad_mb() 109 x11 = *((uint32*)(ref + 4)); in simd_sad_mb() 127 x10 = *((uint32*)(ref + 8)); in simd_sad_mb() 128 x11 = *((uint32*)(ref + 12)); in simd_sad_mb() 163 return sad_mb_offset3(ref, blk, lx, dmin); in simd_sad_mb() 167 return sad_mb_offset2(ref, blk, lx, dmin); in simd_sad_mb() 171 return sad_mb_offset1(ref, blk, lx, dmin); in simd_sad_mb() [all …]
|
D | mp4enc_lib.h | 144 Int SAD_MB_HalfPel_Cxhyh(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info); 145 Int SAD_MB_HalfPel_Cyh(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info); 146 Int SAD_MB_HalfPel_Cxh(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info); 147 Int SAD_MB_HalfPel_MMX(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info); 148 Int SAD_MB_HalfPel_SSE(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info); 149 …Int SAD_Blk_HalfPel_C(UChar *ref, UChar *blk, Int dmin, Int lx, Int rx, Int xh, Int yh, void *extr… 150 Int SAD_Blk_HalfPel_MMX(UChar *ref, UChar *blk, Int dmin, Int lx, void *extra_info); 151 Int SAD_Blk_HalfPel_SSE(UChar *ref, UChar *blk, Int dmin, Int lx, void *extra_info); 152 Int SAD_Macroblock_C(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info); 153 Int SAD_Macroblock_MMX(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info); [all …]
|
D | sad.cpp | 64 Int SAD_MB_PAD1(UChar *ref, UChar *cur, Int dmin, Int lx, Int *rep); 78 Int SAD_Macroblock_C(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) in SAD_Macroblock_C() argument 88 x10 = simd_sad_mb(ref, blk, dmin, lx); in SAD_Macroblock_C() 106 Int SAD_MB_HTFM_Collect(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) in SAD_MB_HTFM_Collect() argument 125 p1 = ref + offsetRef[i]; in SAD_MB_HTFM_Collect() 208 Int SAD_MB_HTFM(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) in SAD_MB_HTFM() argument 228 p1 = ref + offsetRef[i]; in SAD_MB_HTFM() 314 Int SAD_Block_C(UChar *ref, UChar *blk, Int dmin, Int lx, void *) in SAD_Block_C() argument 326 ii = ref; in SAD_Block_C()
|
D | motion_est.cpp | 78 Int fullsearch(VideoEncData *video, Vol *currVol, UChar *ref, UChar *cur, 774 UChar *ref, *cand, *ncand = NULL, *cur8; in MBMotionSearch() local 801 ref = video->forwardRefVop->yChan; /* origin of actual frame */ in MBMotionSearch() 840 ncand = ref + imin + jmin * lx; in MBMotionSearch() 847 dmin = fullsearch(video, currVol, ref, cur, &imin, &jmin, ilow, ihigh, jlow, jhigh); in MBMotionSearch() 849 ncand = ref + imin + jmin * lx; in MBMotionSearch() 864 dmin = fullsearch(video, currVol, ref, cur, &imin, &jmin, ilow, ihigh, jlow, jhigh); in MBMotionSearch() 865 ncand = ref + imin + jmin * lx; in MBMotionSearch() 883 cand = ref + i + j * lx; in MBMotionSearch() 906 cand = ref + i + j * lx; in MBMotionSearch() [all …]
|
/frameworks/base/libs/rs/ |
D | rsObjectBase.h | 83 ObjectBaseRef(const ObjectBaseRef &ref) { in ObjectBaseRef() argument 84 mRef = ref.get(); in ObjectBaseRef() 90 ObjectBaseRef(T *ref) { in ObjectBaseRef() argument 91 mRef = ref; in ObjectBaseRef() 93 ref->incSysRef(); in ObjectBaseRef() 101 void set(T *ref) { in set() argument 102 if (mRef != ref) { in set() 104 mRef = ref; in set() 106 ref->incSysRef(); in set() 111 void set(const ObjectBaseRef &ref) { in set() argument [all …]
|
/frameworks/base/media/libstagefright/codecs/vorbis/dec/ |
D | VorbisDecoder.cpp | 60 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) { in makeBitReader() argument 66 ref->buffer = buf; in makeBitReader() 67 ref->begin = 0; in makeBitReader() 68 ref->length = size; in makeBitReader() 69 ref->next = NULL; in makeBitReader() 71 oggpack_readinit(bits, ref); in makeBitReader() 96 ogg_reference ref; in start() local 98 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits); in start() 105 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits); in start() 172 ogg_reference ref; in decodePacket() local [all …]
|
/frameworks/base/media/libstagefright/codecs/avc/dec/src/ |
D | pred_inter.cpp | 239 void LumaMotionComp(uint8 *ref, int picwidth, int picheight, in LumaMotionComp() argument 259 ref += y_pos * picwidth + x_pos; in LumaMotionComp() 260 FullPelMC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight); in LumaMotionComp() 264 CreatePad(ref, picwidth, picheight, x_pos, y_pos, &temp[0][0], blkwidth, blkheight); in LumaMotionComp() 274 ref += y_pos * picwidth + x_pos; in LumaMotionComp() 276 HorzInterp1MC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight, dx); in LumaMotionComp() 280 … CreatePad(ref, picwidth, picheight, x_pos - 2, y_pos, &temp[0][0], blkwidth + 5, blkheight); in LumaMotionComp() 290 ref += y_pos * picwidth + x_pos; in LumaMotionComp() 292 VertInterp1MC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight, dy); in LumaMotionComp() 296 … CreatePad(ref, picwidth, picheight, x_pos, y_pos - 2, &temp[0][0], blkwidth, blkheight + 5); in LumaMotionComp() [all …]
|
D | avcdec_lib.h | 90 void LumaMotionComp(uint8 *ref, int picwidth, int picheight, 115 void CreatePad(uint8 *ref, int picwidth, int picheight, int x_pos, int y_pos, 144 void ChromaMotionComp(uint8 *ref, int picwidth, int picheight, 150 void ChromaBorderMC(uint8 *ref, int picwidth, int dx, int dy, 152 void ChromaDiagonalMC(uint8 *ref, int picwidth, int dx, int dy, 155 void ChromaFullPelMCOutside(uint8 *ref, uint8 *pred, int pred_pitch, 158 void ChromaBorderMCOutside(uint8 *ref, int picwidth, int dx, int dy, 161 void ChromaDiagonalMCOutside(uint8 *ref, int picwidth,
|
/frameworks/base/libs/utils/ |
D | RefBase.cpp | 174 int32_t ref; member 181 ref_entry* ref = new ref_entry; in addRef() local 185 ref->ref = mRef; in addRef() 186 ref->id = id; in addRef() 188 ref->stack.update(2); in addRef() 191 ref->next = *refs; in addRef() 192 *refs = ref; in addRef() 201 ref_entry* ref = *refs; in removeRef() local 202 while (ref != NULL) { in removeRef() 203 if (ref->id == id) { in removeRef() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | Bridge.java | 48 import java.lang.ref.SoftReference; 512 SoftReference<Bitmap> ref = map.get(value); in getCachedBitmap() local 513 if (ref != null) { in getCachedBitmap() 514 return ref.get(); in getCachedBitmap() 518 SoftReference<Bitmap> ref = sFrameworkBitmapCache.get(value); in getCachedBitmap() local 519 if (ref != null) { in getCachedBitmap() 520 return ref.get(); in getCachedBitmap() 560 SoftReference<NinePatchChunk> ref = map.get(value); in getCached9Patch() local 561 if (ref != null) { in getCached9Patch() 562 return ref.get(); in getCached9Patch() [all …]
|
/frameworks/base/tests/CoreTests/android/core/ |
D | HeapTest.java | 27 import java.lang.ref.PhantomReference; 28 import java.lang.ref.ReferenceQueue; 29 import java.lang.ref.SoftReference; 30 import java.lang.ref.WeakReference; 93 WeakReference ref = newRef(); in testMinimumHeapSize() local 94 assertNotNull(ref.get()); in testMinimumHeapSize() 101 assertNotNull(ref.get()); in testMinimumHeapSize() 328 PhantomReference<T> ref; in checkRefs() local 329 while ((ref = (PhantomReference<T>) queue.poll()) != null) { in checkRefs() 334 if (refs[i] == ref) { in checkRefs() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 31 import java.lang.ref.WeakReference; 215 WeakReference<AppWidgetManager> ref = sManagerCache.get(context); in getInstance() local 217 if (ref != null) { in getInstance() 218 result = ref.get(); in getInstance()
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 312 int ref = getAttributeInt(TAG_GPS_ALTITUDE_REF, -1); in getAltitude() local 314 if (altitude >= 0 && ref >= 0) { in getAltitude() 315 return (double) (altitude * ((ref == 1) ? -1 : 1)); in getAltitude() 364 String rationalString, String ref) { in convertRationalLatLonToFloat() argument 382 if ((ref.equals("S") || ref.equals("W"))) { in convertRationalLatLonToFloat()
|
/frameworks/base/services/surfaceflinger/tests/overlays/ |
D | overlays.cpp | 41 sp<OverlayRef> ref = isurface->createOverlay(320, 240, PIXEL_FORMAT_RGB_565); in main() local 42 sp<Overlay> overlay = new Overlay(ref); in main()
|
/frameworks/base/core/jni/ |
D | com_google_android_gles_jni_EGLImpl.cpp | 287 SkPixelRef* ref = nativeBitmap ? nativeBitmap->pixelRef() : 0; in jni_eglCreatePixmapSurface() local 288 if (ref == NULL) { in jni_eglCreatePixmapSurface() 293 ref->safeRef(); in jni_eglCreatePixmapSurface() 294 ref->lockPixels(); in jni_eglCreatePixmapSurface() 302 pixmap.data = (uint8_t*)ref->pixels(); in jni_eglCreatePixmapSurface() 310 _env->SetIntField(out_sur, gSurface_NativePixelRefFieldID, (int)ref); in jni_eglCreatePixmapSurface() 312 ref->unlockPixels(); in jni_eglCreatePixmapSurface() 313 ref->safeUnref(); in jni_eglCreatePixmapSurface() 429 SkPixelRef* ref = (SkPixelRef*)(_env->GetIntField(surface, in jni_eglDestroySurface() local 431 if (ref) { in jni_eglDestroySurface() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 32 import java.lang.ref.WeakReference; 99 WeakReference<ColorStateList> ref = sCache.get(color); in valueOf() local 100 ColorStateList csl = ref != null ? ref.get() : null; in valueOf()
|