Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 224) sorted by relevance

123456789

/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Datomic.rs4 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_CompatLib/src/com/android/rs/test/
Datomic.rs4 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_CompatLibLegacy/src/com/android/rs/test/
Datomic.rs4 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/
DVectorArithmetic.h33 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/libs/hwui/utils/
DNinePatchImpl.cpp64 static void drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, in drawStretchyPatch() argument
70 canvas->drawRect(dst, paint); in drawStretchyPatch()
80 canvas->drawRect(dst, paint); in drawStretchyPatch()
85 canvas->drawBitmapRect(bitmap, SkRect::Make(src), dst, &paint); in drawStretchyPatch()
163 SkRect dst; in Draw() local
207 dst.fTop = bounds.fTop; in Draw()
228 dst.fLeft = bounds.fLeft; in Draw()
231 dst.fBottom = bounds.fBottom; in Draw()
236 dst.fBottom = dst.fTop + calculateStretch(bounds.fBottom, dst.fTop, in Draw()
242 dst.fBottom = dst.fTop + SkIntToScalar(srcYSize); in Draw()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DLVC_Core_MixInSoft_D16C31_SAT.c31 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 …]
DMSTo2i_Sat_16x16.c30 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()
DShift_Sat_v16xv16.c30 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()
DLVC_MixSoft_1St_D16C31_SAT.c39 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()
DCore_MixSoft_1St_D32C31_WRA.c31 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 …]
DLVC_Core_MixSoft_1St_D16C31_WRA.c32 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 …]
DCopy_16.c29 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()
DLVC_MixSoft_2St_D16C31_SAT.c32 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()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp97 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/
Dme_utils.cpp220 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 …]
Ddct.cpp40 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 …]
Dmotion_comp.cpp1458 *((ULong*)dst) = temp; \
1459 *((ULong*)(dst+4)) = temp; \
1460 *((ULong*)(dst+=lx)) = temp; \
1461 *((ULong*)(dst+4)) = temp; \
1462 *((ULong*)(dst+=lx)) = temp; \
1463 *((ULong*)(dst+4)) = temp; \
1464 *((ULong*)(dst+=lx)) = temp; \
1465 *((ULong*)(dst+4)) = temp; \
1466 *((ULong*)(dst+=lx)) = temp; \
1467 *((ULong*)(dst+4)) = temp; \
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBlendComposite.java199 public abstract int[] blend(int[] src, int[] dst, int[] result); in blend() argument
206 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor()
208 result[i] = Math.min(255, src[i] + dst[i]); in getBlenderFor()
216 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor()
218 result[i] = Math.min(src[i], dst[i]); in getBlenderFor()
220 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor()
227 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor()
229 result[i] = Math.max(src[i], dst[i]); in getBlenderFor()
231 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor()
238 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor()
[all …]
/frameworks/rs/
DrsScriptC_Lib.cpp132 static void SetObjectRef(const Context *rsc, const ObjectBase *dst, const ObjectBase *src) { in SetObjectRef() argument
138 if (dst) { in SetObjectRef()
139 CHECK_OBJ(dst); in SetObjectRef()
140 dst->decSysRef(); in SetObjectRef()
145 void rsrClearObject(const Context *rsc, void *dst) { in rsrClearObject() argument
146 ObjectBase **odst = (ObjectBase **)dst; in rsrClearObject()
157 void rsrClearObject(rs_object_base *dst) { in rsrClearObject() argument
159 ALOGE("rsrClearObject %p,%p", dst, dst->p); in rsrClearObject()
161 if (dst->p) { in rsrClearObject()
162 CHECK_OBJ(dst->p); in rsrClearObject()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsics_x86.cpp79 extern "C" void rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, 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/codecs/avc/enc/src/
Dfindhalfpel.cpp137 uint8 *dst; in GenerateHalfPelPred() local
147 dst = subpel_pred; in GenerateHalfPelPred()
149 dst -= 4; /* offset */ in GenerateHalfPelPred()
162 *((uint32*)(dst += 4)) = tmp32; in GenerateHalfPelPred()
206 dst = subpel_pred + V0Q_H2Q * SUBPEL_PRED_BLK_SIZE; /* go to the 14th array 17x18*/ in GenerateHalfPelPred()
222 *dst++ = tmp32; in GenerateHalfPelPred()
229 *dst++ = tmp32; in GenerateHalfPelPred()
236 *dst++ = tmp32; in GenerateHalfPelPred()
243 *dst++ = tmp32; in GenerateHalfPelPred()
253 *dst = tmp32; in GenerateHalfPelPred()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DAPacketSource.cpp298 uint8_t *dst = csd->data(); in MakeAACCodecSpecificData2() local
299 *dst++ = 0x03; in MakeAACCodecSpecificData2()
300 *dst++ = 20 + config->size(); in MakeAACCodecSpecificData2()
301 *dst++ = 0x00; // ES_ID in MakeAACCodecSpecificData2()
302 *dst++ = 0x00; in MakeAACCodecSpecificData2()
303 *dst++ = 0x00; // streamDependenceFlag, URL_Flag, OCRstreamFlag in MakeAACCodecSpecificData2()
304 *dst++ = 0x04; in MakeAACCodecSpecificData2()
305 *dst++ = 15 + config->size(); in MakeAACCodecSpecificData2()
306 *dst++ = objectType; in MakeAACCodecSpecificData2()
307 for (int i = 0; i < 12; ++i) { *dst++ = 0x00; } in MakeAACCodecSpecificData2()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java94 final Rect dst) { in onDrawBitmap() argument
95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f); in onDrawBitmap() local
123 final Rect src, final Rect dst) { in onDrawCircularBitmap() argument
124 onDrawCircularBitmap(bitmap, canvas, src, dst, 1f); in onDrawCircularBitmap()
132 final Rect src, final Rect dst, final float alpha) { in onDrawCircularBitmap() argument
142 float scale = Math.max((float) dst.width() / src.width(), in onDrawCircularBitmap()
143 (float) dst.height() / src.height()); in onDrawCircularBitmap()
146 mMatrix.postTranslate(dst.left, dst.top); in onDrawCircularBitmap()
152 canvas.drawCircle(dst.centerX(), dst.centerY(), dst.width() / 2, in onDrawCircularBitmap()
157 canvas.drawCircle(dst.centerX(), dst.centerY(), in onDrawCircularBitmap()
[all …]
/frameworks/base/graphics/java/android/graphics/
DMatrix.java201 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) {
207 public boolean setPolyToPoly(float[] src, int srcIndex, float[] dst, int dstIndex,
571 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) { in setRectToRect() argument
572 if (dst == null || src == null) { in setRectToRect()
575 return native_setRectToRect(native_instance, src, dst, stf.nativeInt); in setRectToRect()
580 float[] dst, int dstIndex, in checkPointArrays() argument
586 srcStop > src.length || dstStop > dst.length) { in checkPointArrays()
604 float[] dst, int dstIndex, in setPolyToPoly() argument
609 checkPointArrays(src, srcIndex, dst, dstIndex, pointCount); in setPolyToPoly()
611 dst, dstIndex, pointCount); in setPolyToPoly()
[all …]
/frameworks/base/core/jni/android/graphics/
DRegion.cpp54 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setRegion() local
56 SkASSERT(dst && src); in Region_setRegion()
57 *dst = *src; in Region_setRegion()
61 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setRect() local
62 bool result = dst->setRect(left, top, right, bottom); in Region_setRect()
68 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setPath() local
71 SkASSERT(dst && path && clip); in Region_setPath()
72 bool result = dst->setPath(*path, *clip); in Region_setPath()
92 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_op0() local
96 bool result = dst->op(ir, (SkRegion::Op)op); in Region_op0()
[all …]

123456789