/frameworks/rs/ |
H A D | rsUtils.h | 102 static inline uint16_t rsBoxFilter565(uint16_t i1, uint16_t i2, uint16_t i3, uint16_t i4) { argument 103 uint32_t r = ((i1 & 0x1f) + (i2 & 0x1f) + (i3 & 0x1f) + (i4 & 0x1f)); 104 uint32_t g = ((i1 >> 5) & 0x3f) + ((i2 >> 5) & 0x3f) + ((i3 >> 5) & 0x3f) + ((i4 >> 5) & 0x3f); 105 uint32_t b = ((i1 >> 11) + (i2 >> 11) + (i3 >> 11) + (i4 >> 11)); 109 static inline uint32_t rsBoxFilter8888(uint32_t i1, uint32_t i2, uint32_t i3, uint32_t i4) { argument 110 uint32_t r = (i1 & 0xff) + (i2 & 0xff) + (i3 & 0xff) + (i4 & 0xff); 111 uint32_t g = ((i1 >> 8) & 0xff) + ((i2 >> 8) & 0xff) + ((i3 >> 8) & 0xff) + ((i4 >> 8) & 0xff); 112 uint32_t b = ((i1 >> 16) & 0xff) + ((i2 >> 16) & 0xff) + ((i3 >> 16) & 0xff) + ((i4 >> 16) & 0xff); 113 uint32_t a = ((i1 >> 24) & 0xff) + ((i2 >> 24) & 0xff) + ((i3 >> 24) & 0xff) + ((i4 >> 24) & 0xff);
|
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsUtils.h | 102 static inline uint16_t rsBoxFilter565(uint16_t i1, uint16_t i2, uint16_t i3, uint16_t i4) { argument 103 uint32_t r = ((i1 & 0x1f) + (i2 & 0x1f) + (i3 & 0x1f) + (i4 & 0x1f)); 104 uint32_t g = ((i1 >> 5) & 0x3f) + ((i2 >> 5) & 0x3f) + ((i3 >> 5) & 0x3f) + ((i4 >> 5) & 0x3f); 105 uint32_t b = ((i1 >> 11) + (i2 >> 11) + (i3 >> 11) + (i4 >> 11)); 109 static inline uint32_t rsBoxFilter8888(uint32_t i1, uint32_t i2, uint32_t i3, uint32_t i4) { argument 110 uint32_t r = (i1 & 0xff) + (i2 & 0xff) + (i3 & 0xff) + (i4 & 0xff); 111 uint32_t g = ((i1 >> 8) & 0xff) + ((i2 >> 8) & 0xff) + ((i3 >> 8) & 0xff) + ((i4 >> 8) & 0xff); 112 uint32_t b = ((i1 >> 16) & 0xff) + ((i2 >> 16) & 0xff) + ((i3 >> 16) & 0xff) + ((i4 >> 16) & 0xff); 113 uint32_t a = ((i1 >> 24) & 0xff) + ((i2 >> 24) & 0xff) + ((i3 >> 24) & 0xff) + ((i4 >> 24) & 0xff);
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | c3_14pf.cpp | 155 The code length is 40, containing 3 nonzero pulses: i0...i2. 157 Pulse i0 can have 8 possible positions, pulses i1 and i2 can have 163 i2 : 2, 7, 12, 17, 22, 27, 32, 37. 383 Word16 i2; local 460 * "rr[i0][i2]" is a pointer initialized to "&rr[i0][ipos[2]]" * 503 * i2 loop: 8 positions. * 518 for (i2 = ipos[2]; i2 < L_CODE; i2 += STEP) 521 /* ps1 = add(ps0, dn[i2], pOverflo [all...] |
H A D | c4_17pf.cpp | 167 Pulse i0 to i2 can have 8 possible positions, pulse i3 can have 172 i2 : 2, 7, 12, 17, 22, 27, 32, 37. 396 Word16 i2; local 513 * i2 loop: 8 positions. * 528 for (i2 = ipos[2]; i2 < L_CODE; i2 += STEP) 531 /* ps1 = add(ps0, dn[i2], pOverflow); */ 532 ps1 = ps0 + dn[i2]; 534 /* alp1 = alp0 + rr[i0][i2] [all...] |
H A D | s10_8pf.cpp | 190 Word16 i0, i1, i2, i3, i4, i5, i6, i7, i8, i9; 233 // i2 and i3 loop 251 for (i2 = ipos[2]; i2 < L_CODE; i2 += step) 254 ps1 = add (ps0, dn[i2]); 257 alp1 = L_mac (alp0, rr[i2][i2], _1_16); 260 alp1 = L_mac (alp1, rr[i0][i2], _1_8); 263 alp1 = L_mac (alp1, rr[i1][i2], _1_ 568 Word16 i0, i1, i2, i3, i4, i5, i6, i7, i9; local [all...] |
/frameworks/compile/linkloader/include/impl/ |
H A D | ELFObject.hxx | 189 i2 = (~(j2 ^ s)) & 0x1u; local 191 // 0 s i1 i2 u l 0 192 A = SIGN_EXTEND((s << 23) | (i1 << 22) | (i2 << 21) | (u << 11) | l, 24); 273 // 0 s i1 i2 u l 0 279 i2 = (result >> 21) & 0x1u; local 281 j2 = ((~i2) ^ s) & 0x01u; // 11
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | transform.c | 111 int i0, i1, i2, i3; local 123 i2 = buf[5] + buf[7]; 128 i4 = (i0 + i2) >> 1; 130 i5 = (i0 - i2) >> 1; 141 i2 = buf[13] + buf[15]; 146 t1 = (i0 + i2) >> 1; 148 t3 = (i0 - i2) >> 1; 162 i2 = i1 - r3; 166 t2 = MULHIGH(SQRT1_2, r2 - i2); 167 t3 = MULHIGH(SQRT1_2, r2 + i2); [all...] |
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMRelocationFactory.cpp | 330 i2 = j2 ^ s? 0: 1; local 333 // 0 s i1 i2 u l 0 334 return helper_sign_extend((s << 24) | (i1 << 23) | (i2 << 22) |
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 777 const uint16_t *i2 = (uint16_t *)GetOffsetPtr(alloc, 0, y*2+1, lod, face); local 780 *oPtr = rsBoxFilter565(i1[0], i1[1], i2[0], i2[1]); 783 i2 += 2; 796 const uint32_t *i2 = (uint32_t *)GetOffsetPtr(alloc, 0, y*2+1, lod, face); local 799 *oPtr = rsBoxFilter8888(i1[0], i1[1], i2[0], i2[1]); 802 i2 += 2; 815 const uint8_t *i2 = GetOffsetPtr(alloc, 0, y*2+1, lod, face); local 818 *oPtr = (uint8_t)(((uint32_t)i1[0] + i1[1] + i2[ [all...] |
/frameworks/support/renderscript/v8/rs_support/driver/ |
H A D | rsdAllocation.cpp | 470 const uint16_t *i2 = (uint16_t *)GetOffsetPtr(alloc, 0, y*2+1, lod, face); local 473 *oPtr = rsBoxFilter565(i1[0], i1[1], i2[0], i2[1]); 476 i2 += 2; 489 const uint32_t *i2 = (uint32_t *)GetOffsetPtr(alloc, 0, y*2+1, lod, face); local 492 *oPtr = rsBoxFilter8888(i1[0], i1[1], i2[0], i2[1]); 495 i2 += 2; 508 const uint8_t *i2 = GetOffsetPtr(alloc, 0, y*2+1, lod, face); local 511 *oPtr = (uint8_t)(((uint32_t)i1[0] + i1[1] + i2[ [all...] |