/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BlendComposite.java | 247 public abstract int[] blend(int[] src, int[] dst, int[] result); in blend() argument 361 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() 369 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() 371 result[i] = Math.min(255, src[i] + dst[i]); in getBlenderFor() 379 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() 381 result[i] = (src[i] + dst[i]) >> 1; in getBlenderFor() 383 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor() 390 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() 391 System.arraycopy(dst, 0, result, 0, 3); in getBlenderFor() 392 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor() [all …]
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | atomic.rs | 4 static bool testUMax(uint32_t dst, uint32_t src) { 6 uint32_t old = dst; 7 uint32_t expect = (dst > src ? dst : src); 8 uint32_t ret = rsAtomicMax(&dst, src); 10 _RS_ASSERT(dst == expect); 14 static bool testUMin(uint32_t dst, uint32_t src) { 16 uint32_t old = dst; 17 uint32_t expect = (dst < src ? dst : src); 18 uint32_t ret = rsAtomicMin(&dst, src); 20 _RS_ASSERT(dst == expect); [all …]
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
D | atomic.rs | 4 static bool testUMax(uint32_t dst, uint32_t src) { 6 uint32_t old = dst; 7 uint32_t expect = (dst > src ? dst : src); 8 uint32_t ret = rsAtomicMax(&dst, src); 10 _RS_ASSERT(dst == expect); 14 static bool testUMin(uint32_t dst, uint32_t src) { 16 uint32_t old = dst; 17 uint32_t expect = (dst < src ? dst : src); 18 uint32_t ret = rsAtomicMin(&dst, src); 20 _RS_ASSERT(dst == expect); [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/lib/ |
D | VectorArithmetic.h | 33 LVM_INT16 *dst, 37 LVM_INT32 *dst, 41 LVM_INT16 *dst, 54 LVM_INT16 *dst, 67 LVM_INT32 *dst, 73 LVM_INT16 *dst, 84 LVM_INT16 *dst, 88 LVM_INT32 *dst, 93 LVM_INT16 *dst, 98 LVM_INT32 *dst, [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | NinePatchImpl.cpp | 70 static void drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, in drawStretchyPatch() argument 76 canvas->drawRect(dst, paint); in drawStretchyPatch() 86 canvas->drawRect(dst, paint); in drawStretchyPatch() 91 canvas->drawBitmapRect(bitmap, &src, dst, &paint); in drawStretchyPatch() 173 SkRect dst; in NinePatch_Draw() local 214 dst.fTop = bounds.fTop; in NinePatch_Draw() 235 dst.fLeft = bounds.fLeft; in NinePatch_Draw() 238 dst.fBottom = bounds.fBottom; in NinePatch_Draw() 243 dst.fBottom = dst.fTop + calculateStretch(bounds.fBottom, dst.fTop, in NinePatch_Draw() 249 dst.fBottom = dst.fTop + SkIntToScalar(srcYSize); in NinePatch_Draw() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | LVC_Core_MixInSoft_D16C31_SAT.c | 31 LVM_INT16 *dst, in LVC_Core_MixInSoft_D16C31_SAT() argument 58 …Temp = ((LVM_INT32)*dst) + (((LVM_INT32)*(src++) * CurrentShort)>>15); /* Q15 + Q15*Q15>>15 i… in LVC_Core_MixInSoft_D16C31_SAT() 60 *dst++ = 0x7FFF; in LVC_Core_MixInSoft_D16C31_SAT() 62 *dst++ = - 0x8000; in LVC_Core_MixInSoft_D16C31_SAT() 64 *dst++ = (LVM_INT16)Temp; in LVC_Core_MixInSoft_D16C31_SAT() 77 …Temp = ((LVM_INT32)*dst) + (((LVM_INT32)*(src++) * CurrentShort)>>15); /* Q15 + Q15*Q15>>15 i… in LVC_Core_MixInSoft_D16C31_SAT() 79 *dst++ = 0x7FFF; in LVC_Core_MixInSoft_D16C31_SAT() 81 *dst++ = - 0x8000; in LVC_Core_MixInSoft_D16C31_SAT() 83 *dst++ = (LVM_INT16)Temp; in LVC_Core_MixInSoft_D16C31_SAT() 96 …Temp = ((LVM_INT32)*dst) + (((LVM_INT32)*(src++) * CurrentShort)>>15); /* Q15 + Q15*Q15>>15 i… in LVC_Core_MixInSoft_D16C31_SAT() [all …]
|
D | MSTo2i_Sat_16x16.c | 30 LVM_INT16 *dst, in MSTo2i_Sat_16x16() argument 49 *dst = 0x7FFF; in MSTo2i_Sat_16x16() 53 *dst = - 0x8000; in MSTo2i_Sat_16x16() 57 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16() 59 dst++; in MSTo2i_Sat_16x16() 65 *dst = 0x7FFF; in MSTo2i_Sat_16x16() 69 *dst = - 0x8000; in MSTo2i_Sat_16x16() 73 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16() 75 dst++; in MSTo2i_Sat_16x16()
|
D | Shift_Sat_v16xv16.c | 30 LVM_INT16 *dst, in Shift_Sat_v16xv16() argument 47 *dst = 0x7FFF; in Shift_Sat_v16xv16() 51 *dst = - 0x8000; in Shift_Sat_v16xv16() 55 *dst = (LVM_INT16)temp; in Shift_Sat_v16xv16() 57 dst++; in Shift_Sat_v16xv16() 66 *dst = (LVM_INT16)(*src >> RShift); in Shift_Sat_v16xv16() 67 dst++; in Shift_Sat_v16xv16() 73 if(src!=dst) in Shift_Sat_v16xv16() 75 Copy_16(src,dst,n); in Shift_Sat_v16xv16()
|
D | LVC_MixSoft_1St_D16C31_SAT.c | 39 LVM_INT16 *dst, in LVC_MixSoft_1St_D16C31_SAT() argument 65 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,dst,n); in LVC_MixSoft_1St_D16C31_SAT() 66 LVC_Core_MixSoft_1St_D16C31_WRA( &(ptrInstance->MixerStream[0]), dst, dst, n); in LVC_MixSoft_1St_D16C31_SAT() 69 LVC_Core_MixSoft_1St_D16C31_WRA( &(ptrInstance->MixerStream[0]), src, dst, n); in LVC_MixSoft_1St_D16C31_SAT() 79 LoadConst_16(0, dst, n); in LVC_MixSoft_1St_D16C31_SAT() 81 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,dst,n); in LVC_MixSoft_1St_D16C31_SAT() 83 Mult3s_16x16( dst, (LVM_INT16)(pInstance->Target>>16), dst, n ); in LVC_MixSoft_1St_D16C31_SAT() 87 Mult3s_16x16( src, (LVM_INT16)(pInstance->Target>>16), dst, n ); in LVC_MixSoft_1St_D16C31_SAT() 88 else if(src!=dst) in LVC_MixSoft_1St_D16C31_SAT() 89 Copy_16(src, dst, n); in LVC_MixSoft_1St_D16C31_SAT()
|
D | Core_MixSoft_1St_D32C31_WRA.c | 31 LVM_INT32 *dst, in Core_MixSoft_1St_D32C31_WRA() argument 63 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 64 dst++; in Core_MixSoft_1St_D32C31_WRA() 77 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 78 dst++; in Core_MixSoft_1St_D32C31_WRA() 84 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 85 dst++; in Core_MixSoft_1St_D32C31_WRA() 91 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 92 dst++; in Core_MixSoft_1St_D32C31_WRA() 97 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() [all …]
|
D | Copy_16.c | 29 LVM_INT16 *dst, in Copy_16() argument 34 if (src > dst) in Copy_16() 38 *dst = *src; in Copy_16() 39 dst++; in Copy_16() 46 dst += n - 1; in Copy_16() 49 *dst = *src; in Copy_16() 50 dst--; in Copy_16()
|
D | LVC_MixSoft_2St_D16C31_SAT.c | 32 LVM_INT16 *dst, in LVC_MixSoft_2St_D16C31_SAT() argument 44 … LVC_MixSoft_1St_D16C31_SAT( (LVMixer3_1St_st *)(&ptrInstance->MixerStream[1]), src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 47 … LVC_MixSoft_1St_D16C31_SAT( (LVMixer3_1St_st *)(&ptrInstance->MixerStream[0]), src1, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 51 LVC_MixSoft_1St_D16C31_SAT((LVMixer3_1St_st *)(&ptrInstance->MixerStream[0]), src1, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 52 LVC_MixInSoft_D16C31_SAT( (LVMixer3_1St_st *)(&ptrInstance->MixerStream[1]), src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 62 Shift_Sat_v16xv16 ((LVM_INT16)pInstance1->Shift,src1,dst,n); in LVC_MixSoft_2St_D16C31_SAT() 63 …ard_2St_D16C31_SAT( &ptrInstance->MixerStream[0], &ptrInstance->MixerStream[1], dst, src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 66 …rd_2St_D16C31_SAT( &ptrInstance->MixerStream[0], &ptrInstance->MixerStream[1], src1, src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT()
|
D | LVC_Core_MixSoft_1St_D16C31_WRA.c | 32 LVM_INT16 *dst, in LVC_Core_MixSoft_1St_D16C31_WRA() argument 58 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 70 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 71 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 72 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 73 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 85 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 96 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 97 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 98 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() [all …]
|
D | Shift_Sat_v32xv32.c | 30 LVM_INT32 *dst, in Shift_Sat_v32xv32() argument 59 *dst = b; in Shift_Sat_v32xv32() 60 dst++; in Shift_Sat_v32xv32() 68 *dst = (*src >> RShift); in Shift_Sat_v32xv32() 69 dst++; in Shift_Sat_v32xv32() 75 if(src!=dst) in Shift_Sat_v32xv32() 77 Copy_16((LVM_INT16 *)src,(LVM_INT16 *)dst,(LVM_INT16)(n<<1)); in Shift_Sat_v32xv32()
|
D | MonoTo2I_32.c | 29 LVM_INT32 *dst, in MonoTo2I_32() argument 34 dst += ((n*2)-1); in MonoTo2I_32() 38 *dst = *src; in MonoTo2I_32() 39 dst--; in MonoTo2I_32() 41 *dst = *src; in MonoTo2I_32() 42 dst--; in MonoTo2I_32()
|
D | MonoTo2I_16.c | 29 LVM_INT16 *dst, in MonoTo2I_16() argument 34 dst += ((n*2)-1); in MonoTo2I_16() 38 *dst = *src; in MonoTo2I_16() 39 dst--; in MonoTo2I_16() 41 *dst = *src; in MonoTo2I_16() 42 dst--; in MonoTo2I_16()
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | ColorConverter.cpp | 97 BitmapParams dst( in convert() local 106 err = convertYUV420Planar(src, dst); in convert() 110 err = convertCbYCrY(src, dst); in convert() 114 err = convertQCOMYUV420SemiPlanar(src, dst); in convert() 118 err = convertYUV420SemiPlanar(src, dst); in convert() 122 err = convertTIYUV420PackedSemiPlanar(src, dst); in convert() 136 const BitmapParams &src, const BitmapParams &dst) { in convertCbYCrY() argument 142 && src.cropWidth() == dst.cropWidth() in convertCbYCrY() 143 && src.cropHeight() == dst.cropHeight())) { in convertCbYCrY() 147 uint16_t *dst_ptr = (uint16_t *)dst.mBits in convertCbYCrY() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | me_utils.cpp | 220 UChar *src, *dst; in PaddingEdge() local 239 dst = src - (pitch << 4); in PaddingEdge() 241 *((ULong*)(dst - 16)) = temp1; in PaddingEdge() 242 *((ULong*)(dst - 12)) = temp1; in PaddingEdge() 243 *((ULong*)(dst - 8)) = temp1; in PaddingEdge() 244 *((ULong*)(dst - 4)) = temp1; in PaddingEdge() 246 M4VENC_MEMCPY(dst, src, width); in PaddingEdge() 248 *((ULong*)(dst += width)) = temp2; in PaddingEdge() 249 *((ULong*)(dst + 4)) = temp2; in PaddingEdge() 250 *((ULong*)(dst + 8)) = temp2; in PaddingEdge() [all …]
|
D | dct.cpp | 40 Short *dst; in BlockDCT_AANwSub() local 50 dst = out + 64 ; in BlockDCT_AANwSub() 51 ColTh = *dst; in BlockDCT_AANwSub() 108 dst[0] = k0; in BlockDCT_AANwSub() 109 dst[4] = k1; /* col. 4 */ in BlockDCT_AANwSub() 127 dst[2] = k2; /* col. 2 */ in BlockDCT_AANwSub() 129 dst[6] = k3; /* col. 6 */ in BlockDCT_AANwSub() 151 dst[5] = k4; /* col. 5 */ in BlockDCT_AANwSub() 153 dst[1] = k5; /* col. 1 */ in BlockDCT_AANwSub() 154 dst[7] = k6; /* col. 7 */ in BlockDCT_AANwSub() [all …]
|
/frameworks/rs/scriptc/ |
D | rs_object.rsh | 30 * @param dst 34 rsSetObject(rs_element *dst, rs_element src); 39 rsSetObject(rs_type *dst, rs_type src); 44 rsSetObject(rs_allocation *dst, rs_allocation src); 49 rsSetObject(rs_sampler *dst, rs_sampler src); 54 rsSetObject(rs_script *dst, rs_script src); 61 rsSetObject(rs_path *dst, rs_path src); 66 rsSetObject(rs_mesh *dst, rs_mesh src); 71 rsSetObject(rs_program_fragment *dst, rs_program_fragment src); 76 rsSetObject(rs_program_vertex *dst, rs_program_vertex src); [all …]
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | findhalfpel.cpp | 150 uint8 *dst; in GenerateHalfPelPred() local 161 dst = subpel_pred; in GenerateHalfPelPred() 163 dst -= 4; /* offset */ in GenerateHalfPelPred() 176 *((uint32*)(dst += 4)) = tmp32; in GenerateHalfPelPred() 220 dst = subpel_pred + V0Q_H2Q * SUBPEL_PRED_BLK_SIZE; /* go to the 14th array 17x18*/ in GenerateHalfPelPred() 236 *dst++ = tmp32; in GenerateHalfPelPred() 243 *dst++ = tmp32; in GenerateHalfPelPred() 250 *dst++ = tmp32; in GenerateHalfPelPred() 257 *dst++ = tmp32; in GenerateHalfPelPred() 267 *dst = tmp32; in GenerateHalfPelPred() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | CircularBitmapDrawable.java | 94 final Rect dst) { in onDrawBitmap() argument 95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f); in onDrawBitmap() local 113 final Rect src, final Rect dst) { in onDrawCircularBitmap() argument 114 onDrawCircularBitmap(bitmap, canvas, src, dst, 1f); in onDrawCircularBitmap() 122 final Rect src, final Rect dst, final float alpha) { in onDrawCircularBitmap() argument 132 float scale = Math.max((float) dst.width() / src.width(), in onDrawCircularBitmap() 133 (float) dst.height() / src.height()); in onDrawCircularBitmap() 136 sMatrix.postTranslate(dst.left, dst.top); in onDrawCircularBitmap() 142 canvas.drawCircle(dst.centerX(), dst.centerY(), dst.width() / 2, in onDrawCircularBitmap() 147 canvas.drawCircle(dst.centerX(), dst.centerY(), in onDrawCircularBitmap() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsics_x86.c | 79 void rsdIntrinsicConvolve3x3_K(void *dst, in rsdIntrinsicConvolve3x3_K() argument 133 _mm_storel_epi64((__m128i *)dst, o0); in rsdIntrinsicConvolve3x3_K() 138 dst = (char *)dst + 8; in rsdIntrinsicConvolve3x3_K() 142 void rsdIntrinsicColorMatrix4x4_K(void *dst, const void *src, in rsdIntrinsicColorMatrix4x4_K() argument 190 _mm_storeu_si128((__m128i *)dst, o4); in rsdIntrinsicColorMatrix4x4_K() 193 dst = (char *)dst + 16; in rsdIntrinsicColorMatrix4x4_K() 197 void rsdIntrinsicColorMatrix3x3_K(void *dst, const void *src, in rsdIntrinsicColorMatrix3x3_K() argument 244 _mm_storeu_si128((__m128i *)dst, o4); in rsdIntrinsicColorMatrix3x3_K() 247 dst = (char *)dst + 16; in rsdIntrinsicColorMatrix3x3_K() 251 void rsdIntrinsicColorMatrixDot_K(void *dst, const void *src, in rsdIntrinsicColorMatrixDot_K() argument [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | APacketSource.cpp | 300 uint8_t *dst = csd->data(); in MakeAACCodecSpecificData2() local 301 *dst++ = 0x03; in MakeAACCodecSpecificData2() 302 *dst++ = 20 + config->size(); in MakeAACCodecSpecificData2() 303 *dst++ = 0x00; // ES_ID in MakeAACCodecSpecificData2() 304 *dst++ = 0x00; in MakeAACCodecSpecificData2() 305 *dst++ = 0x00; // streamDependenceFlag, URL_Flag, OCRstreamFlag in MakeAACCodecSpecificData2() 306 *dst++ = 0x04; in MakeAACCodecSpecificData2() 307 *dst++ = 15 + config->size(); in MakeAACCodecSpecificData2() 308 *dst++ = objectType; in MakeAACCodecSpecificData2() 309 for (int i = 0; i < 12; ++i) { *dst++ = 0x00; } in MakeAACCodecSpecificData2() [all …]
|
/frameworks/rs/ |
D | rsScriptC_Lib.cpp | 137 static void SetObjectRef(const Context *rsc, const ObjectBase *dst, const ObjectBase *src) { in SetObjectRef() argument 143 if (dst) { in SetObjectRef() 144 CHECK_OBJ(dst); in SetObjectRef() 145 dst->decSysRef(); in SetObjectRef() 150 void rsrSetObject(const Context *rsc, void *dst, ObjectBase *src) { in rsrSetObject() argument 151 ObjectBase **odst = (ObjectBase **)dst; in rsrSetObject() 155 src->callUpdateCacheObject(rsc, dst); in rsrSetObject() 159 void rsrSetObject(const Context *rsc, rs_object_base *dst, const ObjectBase *src) { in rsrSetObject() argument 160 ObjectBase **odst = (ObjectBase **)dst; in rsrSetObject() 164 src->callUpdateCacheObject(rsc, dst); in rsrSetObject() [all …]
|