Home
last modified time | relevance | path

Searched refs:BPS (Results 1 – 25 of 36) sorted by relevance

12

/external/webp/src/dsp/
Denc_mips32.c84 "lbu %[temp16], 0+" XSTR(BPS) "*" #A "(%[temp20]) \n\t" \
85 "lbu %[temp17], 1+" XSTR(BPS) "*" #A "(%[temp20]) \n\t" \
86 "lbu %[temp18], 2+" XSTR(BPS) "*" #A "(%[temp20]) \n\t" \
87 "lbu %[temp19], 3+" XSTR(BPS) "*" #A "(%[temp20]) \n\t" \
110 "sb %[" #TEMP0 "], 0+" XSTR(BPS) "*" #A "(%[temp16]) \n\t" \
111 "sb %[" #TEMP4 "], 1+" XSTR(BPS) "*" #A "(%[temp16]) \n\t" \
112 "sb %[" #TEMP8 "], 2+" XSTR(BPS) "*" #A "(%[temp16]) \n\t" \
113 "sb %[" #TEMP12 "], 3+" XSTR(BPS) "*" #A "(%[temp16]) \n\t"
257 "lbu %[temp0], 0+" XSTR(BPS) "*" #A "(%[a]) \n\t" \
258 "lbu %[temp1], 1+" XSTR(BPS) "*" #A "(%[a]) \n\t" \
[all …]
Denc_mips_dsp_r2.c82 "lw %[" #TEMP2 "], " XSTR(BPS) "*" #A "(%[" #TEMP0 "]) \n\t" \
83 "lw %[" #TEMP3 "], " XSTR(BPS) "*" #A "(%[" #TEMP1 "]) \n\t" \
228 BPS) in ITransformOne()
233 dst, 0, 1, 2, 3, BPS) in ITransformOne()
258 BPS) in Disto4x4()
285 BPS) in Disto4x4()
320 for (y = 0; y < 16 * BPS; y += 4 * BPS) { in Disto16x16()
332 "usw %[value], 0+" #J "*" XSTR(BPS) "(%[dst]) \n\t" \
333 "usw %[value], 4+" #J "*" XSTR(BPS) "(%[dst]) \n\t" \
335 "usw %[value], 8+" #J "*" XSTR(BPS) "(%[dst]) \n\t" \
[all …]
Ddec.c27 dst[x + y * BPS] = clip_8b(dst[x + y * BPS] + ((v) >> 3))
75 dst += BPS; in TransformOne()
104 VP8Transform(in + 2 * 16, dst + 4 * BPS, 1); in TransformUV()
120 if (in[2 * 16]) VP8TransformDC(in + 2 * 16, dst + 4 * BPS); in TransformDCUV()
121 if (in[3 * 16]) VP8TransformDC(in + 3 * 16, dst + 4 * BPS + 4); in TransformDCUV()
161 #define DST(x, y) dst[(x) + (y) * BPS]
164 const uint8_t* top = dst - BPS; in TrueMotion()
173 dst += BPS; in TrueMotion()
186 memcpy(dst + j * BPS, dst - BPS, 16); in VE16()
194 dst += BPS; in HE16()
[all …]
Ddec_mips32.c394 "lbu %[temp1], 0+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
402 "lbu %[temp18], 1+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
403 "sb %[temp1], 0+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
411 "lbu %[temp1], 2+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
412 "sb %[temp18], 1+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
420 "lbu %[temp18], 3+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
421 "sb %[temp1], 2+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
429 "sb %[temp18], 3+0*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
430 "lbu %[temp5], 0+1*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
431 "lbu %[temp8], 1+1*" XSTR(BPS) "(%[dst]) \n\t" in TransformOne()
[all …]
Denc_sse2.c233 ref0 = _mm_loadl_epi64((const __m128i*)&ref[0 * BPS]); in ITransform()
234 ref1 = _mm_loadl_epi64((const __m128i*)&ref[1 * BPS]); in ITransform()
235 ref2 = _mm_loadl_epi64((const __m128i*)&ref[2 * BPS]); in ITransform()
236 ref3 = _mm_loadl_epi64((const __m128i*)&ref[3 * BPS]); in ITransform()
239 ref0 = _mm_cvtsi32_si128(WebPMemToUint32(&ref[0 * BPS])); in ITransform()
240 ref1 = _mm_cvtsi32_si128(WebPMemToUint32(&ref[1 * BPS])); in ITransform()
241 ref2 = _mm_cvtsi32_si128(WebPMemToUint32(&ref[2 * BPS])); in ITransform()
242 ref3 = _mm_cvtsi32_si128(WebPMemToUint32(&ref[3 * BPS])); in ITransform()
262 _mm_storel_epi64((__m128i*)&dst[0 * BPS], ref0); in ITransform()
263 _mm_storel_epi64((__m128i*)&dst[1 * BPS], ref1); in ITransform()
[all …]
Denc.c34 0 + 0 * BPS, 4 + 0 * BPS, 8 + 0 * BPS, 12 + 0 * BPS,
35 0 + 4 * BPS, 4 + 4 * BPS, 8 + 4 * BPS, 12 + 4 * BPS,
36 0 + 8 * BPS, 4 + 8 * BPS, 8 + 8 * BPS, 12 + 8 * BPS,
37 0 + 12 * BPS, 4 + 12 * BPS, 8 + 12 * BPS, 12 + 12 * BPS,
39 0 + 0 * BPS, 4 + 0 * BPS, 0 + 4 * BPS, 4 + 4 * BPS, // U
40 8 + 0 * BPS, 12 + 0 * BPS, 8 + 4 * BPS, 12 + 4 * BPS // V
104 dst[(x) + (y) * BPS] = clip_8b(ref[(x) + (y) * BPS] + ((v) >> 3))
154 for (i = 0; i < 4; ++i, src += BPS, ref += BPS) { in FTransform()
224 memset(dst + j * BPS, value, size); in Fill()
232 for (j = 0; j < size; ++j) memcpy(dst + j * BPS, top, size); in VerticalPred()
[all …]
Ddec_sse2.c204 dst0 = _mm_loadl_epi64((__m128i*)(dst + 0 * BPS)); in Transform()
205 dst1 = _mm_loadl_epi64((__m128i*)(dst + 1 * BPS)); in Transform()
206 dst2 = _mm_loadl_epi64((__m128i*)(dst + 2 * BPS)); in Transform()
207 dst3 = _mm_loadl_epi64((__m128i*)(dst + 3 * BPS)); in Transform()
210 dst0 = _mm_cvtsi32_si128(WebPMemToUint32(dst + 0 * BPS)); in Transform()
211 dst1 = _mm_cvtsi32_si128(WebPMemToUint32(dst + 1 * BPS)); in Transform()
212 dst2 = _mm_cvtsi32_si128(WebPMemToUint32(dst + 2 * BPS)); in Transform()
213 dst3 = _mm_cvtsi32_si128(WebPMemToUint32(dst + 3 * BPS)); in Transform()
233 _mm_storel_epi64((__m128i*)(dst + 0 * BPS), dst0); in Transform()
234 _mm_storel_epi64((__m128i*)(dst + 1 * BPS), dst1); in Transform()
[all …]
Ddec_neon.c407 vst1_lane_u32((uint32_t*)(dst + 0 * BPS), vreinterpret_u32_u8(dst01_u8), 0); in SaturateAndStore4x4()
408 vst1_lane_u32((uint32_t*)(dst + 1 * BPS), vreinterpret_u32_u8(dst01_u8), 1); in SaturateAndStore4x4()
409 vst1_lane_u32((uint32_t*)(dst + 2 * BPS), vreinterpret_u32_u8(dst23_u8), 0); in SaturateAndStore4x4()
410 vst1_lane_u32((uint32_t*)(dst + 3 * BPS), vreinterpret_u32_u8(dst23_u8), 1); in SaturateAndStore4x4()
419 dst01 = vld1_lane_u32((uint32_t*)(dst + 0 * BPS), dst01, 0); in Add4x4()
420 dst23 = vld1_lane_u32((uint32_t*)(dst + 2 * BPS), dst23, 0); in Add4x4()
421 dst01 = vld1_lane_u32((uint32_t*)(dst + 1 * BPS), dst01, 1); in Add4x4()
422 dst23 = vld1_lane_u32((uint32_t*)(dst + 3 * BPS), dst23, 1); in Add4x4()
1041 const int kBPS = BPS; in TransformOne()
1270 const uint8x8_t A = vld1_u8(dst - BPS); // top row in DC4()
[all …]
Denc_neon.c54 vst1_lane_u32((uint32_t*)(dst + 0 * BPS), vreinterpret_u32_u8(dst01_u8), 0); in SaturateAndStore4x4()
55 vst1_lane_u32((uint32_t*)(dst + 1 * BPS), vreinterpret_u32_u8(dst01_u8), 1); in SaturateAndStore4x4()
56 vst1_lane_u32((uint32_t*)(dst + 2 * BPS), vreinterpret_u32_u8(dst23_u8), 0); in SaturateAndStore4x4()
57 vst1_lane_u32((uint32_t*)(dst + 3 * BPS), vreinterpret_u32_u8(dst23_u8), 1); in SaturateAndStore4x4()
66 dst01 = vld1_lane_u32((uint32_t*)(ref + 0 * BPS), dst01, 0); in Add4x4()
67 dst23 = vld1_lane_u32((uint32_t*)(ref + 2 * BPS), dst23, 0); in Add4x4()
68 dst01 = vld1_lane_u32((uint32_t*)(ref + 1 * BPS), dst01, 1); in Add4x4()
69 dst23 = vld1_lane_u32((uint32_t*)(ref + 3 * BPS), dst23, 1); in Add4x4()
132 const int kBPS = BPS; in ITransformOne()
257 out = vld1q_lane_u32((const uint32_t*)(src + 0 * BPS), out, 0); in Load4x4()
[all …]
Ddec_mips_dsp_r2.c33 BPS) in TransformDC()
42 dst, 0, 1, 2, 3, BPS) in TransformDC()
70 BPS) in TransformAC3()
77 temp7, temp6, dst, 0, 1, 2, 3, BPS) in TransformAC3()
140 BPS) in TransformOne()
145 dst, 0, 1, 2, 3, BPS) in TransformOne()
551 "lbu %[" #TEMP0 "], " #A "+" #A1 "*" XSTR(BPS) "(%[" #SRC "]) \n\t" \
552 "lbu %[" #TEMP1 "], " #B "+" #B1 "*" XSTR(BPS) "(%[" #SRC "]) \n\t" \
553 "lbu %[" #TEMP2 "], " #C "+" #C1 "*" XSTR(BPS) "(%[" #SRC "]) \n\t" \
554 "lbu %[" #TEMP3 "], " #D "+" #D1 "*" XSTR(BPS) "(%[" #SRC "]) \n\t" \
[all …]
/external/opencv3/3rdparty/libwebp/dsp/
Ddec.c62 dst[x + y * BPS] = clip_8b(dst[x + y * BPS] + ((v) >> 3))
103 dst += BPS; in TransformOne()
117 VP8Transform(in + 2 * 16, dst + 4 * BPS, 1); in TransformUV()
133 if (in[2 * 16]) TransformDC(in + 2 * 16, dst + 4 * BPS); in TransformDCUV()
134 if (in[3 * 16]) TransformDC(in + 3 * 16, dst + 4 * BPS + 4); in TransformDCUV()
174 #define DST(x, y) dst[(x) + (y) * BPS]
177 const uint8_t* top = dst - BPS; in TrueMotion()
186 dst += BPS; in TrueMotion()
199 memcpy(dst + j * BPS, dst - BPS, 16); in VE16()
207 dst += BPS; in HE16()
[all …]
Denc.c36 0 + 0 * BPS, 4 + 0 * BPS, 8 + 0 * BPS, 12 + 0 * BPS,
37 0 + 4 * BPS, 4 + 4 * BPS, 8 + 4 * BPS, 12 + 4 * BPS,
38 0 + 8 * BPS, 4 + 8 * BPS, 8 + 8 * BPS, 12 + 8 * BPS,
39 0 + 12 * BPS, 4 + 12 * BPS, 8 + 12 * BPS, 12 + 12 * BPS,
41 0 + 0 * BPS, 4 + 0 * BPS, 0 + 4 * BPS, 4 + 4 * BPS, // U
42 8 + 0 * BPS, 12 + 0 * BPS, 8 + 4 * BPS, 12 + 4 * BPS // V
88 dst[(x) + (y) * BPS] = clip_8b(ref[(x) + (y) * BPS] + ((v) >> 3))
138 for (i = 0; i < 4; ++i, src += BPS, ref += BPS) { in FTransform()
227 #define DST(x, y) dst[(x) + (y) * BPS]
232 memset(dst + j * BPS, value, size); in Fill()
[all …]
Denc_sse2.c282 ref0 = _mm_loadl_epi64((__m128i*)&ref[0 * BPS]); in ITransformSSE2()
283 ref1 = _mm_loadl_epi64((__m128i*)&ref[1 * BPS]); in ITransformSSE2()
284 ref2 = _mm_loadl_epi64((__m128i*)&ref[2 * BPS]); in ITransformSSE2()
285 ref3 = _mm_loadl_epi64((__m128i*)&ref[3 * BPS]); in ITransformSSE2()
288 ref0 = _mm_cvtsi32_si128(*(int*)&ref[0 * BPS]); in ITransformSSE2()
289 ref1 = _mm_cvtsi32_si128(*(int*)&ref[1 * BPS]); in ITransformSSE2()
290 ref2 = _mm_cvtsi32_si128(*(int*)&ref[2 * BPS]); in ITransformSSE2()
291 ref3 = _mm_cvtsi32_si128(*(int*)&ref[3 * BPS]); in ITransformSSE2()
311 _mm_storel_epi64((__m128i*)&dst[0 * BPS], ref0); in ITransformSSE2()
312 _mm_storel_epi64((__m128i*)&dst[1 * BPS], ref1); in ITransformSSE2()
[all …]
Denc_neon.c32 const int kBPS = BPS; in ITransformOne()
235 const int kBPS = BPS; in FTransform()
421 const int kBPS = BPS; in Disto4x4()
609 for (y = 0; y < 16 * BPS; y += 4 * BPS) { in Disto16x16()
/external/opencv3/3rdparty/libwebp/enc/
Dvp8enci.h122 #define BPS 16 // this is the common stride macro
123 #define Y_SIZE (BPS * 16)
124 #define UV_SIZE (BPS * 8)
126 #define PRED_SIZE (6 * 16 * BPS + 12 * BPS)
140 #define I16DC16 (0 * 16 * BPS)
141 #define I16TM16 (1 * 16 * BPS)
142 #define I16VE16 (2 * 16 * BPS)
143 #define I16HE16 (3 * 16 * BPS)
145 #define C8DC8 (4 * 16 * BPS)
146 #define C8TM8 (4 * 16 * BPS + 8 * BPS)
[all …]
Diterator.c97 dst += BPS; in ImportBlock()
101 memcpy(dst, dst - BPS, size); in ImportBlock()
102 dst += BPS; in ImportBlock()
141 src += BPS; in ExportBlock()
257 enc->y_left_[i] = ysrc[15 + i * BPS]; in VP8IteratorNext()
260 enc->u_left_[i] = usrc[7 + i * BPS]; in VP8IteratorNext()
261 enc->v_left_[i] = usrc[15 + i * BPS]; in VP8IteratorNext()
269 memcpy(enc->y_top_ + x * 16, ysrc + 15 * BPS, 16); in VP8IteratorNext()
270 memcpy(enc->uv_top_ + x * 16, usrc + 7 * BPS, 8 + 8); in VP8IteratorNext()
399 top[-4 + i] = blk[i + 3 * BPS]; // store future top samples in VP8IteratorRotateI4()
[all …]
Dquant.c403 0 + 0 * BPS, 4 + 0 * BPS, 8 + 0 * BPS, 12 + 0 * BPS,
404 0 + 4 * BPS, 4 + 4 * BPS, 8 + 4 * BPS, 12 + 4 * BPS,
405 0 + 8 * BPS, 4 + 8 * BPS, 8 + 8 * BPS, 12 + 8 * BPS,
406 0 + 12 * BPS, 4 + 12 * BPS, 8 + 12 * BPS, 12 + 12 * BPS,
408 0 + 0 * BPS, 4 + 0 * BPS, 0 + 4 * BPS, 4 + 4 * BPS, // U
409 8 + 0 * BPS, 12 + 0 * BPS, 8 + 4 * BPS, 12 + 4 * BPS // V
Dfilter.c224 VP8EncSimpleHFilter16i(y_dst, BPS, limit); in DoFilter()
225 VP8EncSimpleVFilter16i(y_dst, BPS, limit); in DoFilter()
228 VP8EncHFilter16i(y_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
229 VP8EncHFilter8i(u_dst, v_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
230 VP8EncVFilter16i(y_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
231 VP8EncVFilter8i(u_dst, v_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
326 VP8SSIMAccumulate(yuv1 + Y_OFF, BPS, yuv2 + Y_OFF, BPS, x, y, 16, 16, &s); in GetMBSSIM()
331 VP8SSIMAccumulate(yuv1 + U_OFF, BPS, yuv2 + U_OFF, BPS, x, y, 8, 8, &s); in GetMBSSIM()
332 VP8SSIMAccumulate(yuv1 + V_OFF, BPS, yuv2 + V_OFF, BPS, x, y, 8, 8, &s); in GetMBSSIM()
/external/opencv3/3rdparty/libwebp/dec/
Dframe.c533 0 + 0 * BPS, 4 + 0 * BPS, 8 + 0 * BPS, 12 + 0 * BPS,
534 0 + 4 * BPS, 4 + 4 * BPS, 8 + 4 * BPS, 12 + 4 * BPS,
535 0 + 8 * BPS, 4 + 8 * BPS, 8 + 8 * BPS, 12 + 8 * BPS,
536 0 + 12 * BPS, 4 + 12 * BPS, 8 + 12 * BPS, 12 + 12 * BPS
564 Copy32b(&y_dst[j * BPS - 4], &y_dst[j * BPS + 12]); in VP8ReconstructBlock()
567 Copy32b(&u_dst[j * BPS - 4], &u_dst[j * BPS + 4]); in VP8ReconstructBlock()
568 Copy32b(&v_dst[j * BPS - 4], &v_dst[j * BPS + 4]); in VP8ReconstructBlock()
572 y_dst[j * BPS - 1] = 129; in VP8ReconstructBlock()
575 u_dst[j * BPS - 1] = 129; in VP8ReconstructBlock()
576 v_dst[j * BPS - 1] = 129; in VP8ReconstructBlock()
[all …]
Dvp8i.h96 #define BPS 32 // this is the common stride used by yuv[] macro
97 #define YUV_SIZE (BPS * 17 + BPS * 9)
98 #define Y_SIZE (BPS * 17)
99 #define Y_OFF (BPS * 1 + 8)
100 #define U_OFF (Y_OFF + BPS * 16 + BPS)
/external/webp/src/dec/
Dframe.c22 0 + 0 * BPS, 4 + 0 * BPS, 8 + 0 * BPS, 12 + 0 * BPS,
23 0 + 4 * BPS, 4 + 4 * BPS, 8 + 4 * BPS, 12 + 4 * BPS,
24 0 + 8 * BPS, 4 + 8 * BPS, 8 + 8 * BPS, 12 + 8 * BPS,
25 0 + 12 * BPS, 4 + 12 * BPS, 8 + 12 * BPS, 12 + 12 * BPS
83 y_dst[j * BPS - 1] = 129; in ReconstructRow()
86 u_dst[j * BPS - 1] = 129; in ReconstructRow()
87 v_dst[j * BPS - 1] = 129; in ReconstructRow()
92 y_dst[-1 - BPS] = u_dst[-1 - BPS] = v_dst[-1 - BPS] = 129; in ReconstructRow()
96 memset(y_dst - BPS - 1, 127, 16 + 4 + 1); in ReconstructRow()
97 memset(u_dst - BPS - 1, 127, 8 + 1); in ReconstructRow()
[all …]
Dvp8i.h59 #define YUV_SIZE (BPS * 17 + BPS * 9)
60 #define Y_SIZE (BPS * 17)
61 #define Y_OFF (BPS * 1 + 8)
62 #define U_OFF (Y_OFF + BPS * 16 + BPS)
/external/webp/src/enc/
Dfilter.c96 VP8SimpleHFilter16i(y_dst, BPS, limit); in DoFilter()
97 VP8SimpleVFilter16i(y_dst, BPS, limit); in DoFilter()
100 VP8HFilter16i(y_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
101 VP8HFilter8i(u_dst, v_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
102 VP8VFilter16i(y_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
103 VP8VFilter8i(u_dst, v_dst, BPS, limit, ilevel, hev_thresh); in DoFilter()
198 VP8SSIMAccumulate(yuv1 + Y_OFF_ENC, BPS, yuv2 + Y_OFF_ENC, BPS, in GetMBSSIM()
204 VP8SSIMAccumulate(yuv1 + U_OFF_ENC, BPS, yuv2 + U_OFF_ENC, BPS, in GetMBSSIM()
206 VP8SSIMAccumulate(yuv1 + V_OFF_ENC, BPS, yuv2 + V_OFF_ENC, BPS, in GetMBSSIM()
Dvp8enci.h76 #define YUV_SIZE_ENC (BPS * 16)
77 #define PRED_SIZE_ENC (32 * BPS + 16 * BPS + 8 * BPS) // I16+Chroma+I4 preds
89 #define I16DC16 (0 * 16 * BPS)
91 #define I16VE16 (1 * 16 * BPS)
94 #define C8DC8 (2 * 16 * BPS)
96 #define C8VE8 (2 * 16 * BPS + 8 * BPS)
99 #define I4DC4 (3 * 16 * BPS + 0)
107 #define I4HD4 (3 * 16 * BPS + 4 * BPS)
Dquant.c65 for (i = 0; i < 16; ++i) printf("%3d ", y_in[i + j * BPS]); in PrintBlockInfo()
67 for (i = 0; i < 16; ++i) printf("%3d ", y_out[i + j * BPS]); in PrintBlockInfo()
70 printf("%1d ", abs(y_in[i + j * BPS] - y_out[i + j * BPS])); in PrintBlockInfo()
76 for (i = 0; i < 8; ++i) printf("%3d ", uv_in[i + j * BPS]); in PrintBlockInfo()
78 for (i = 8; i < 16; ++i) printf("%3d ", uv_in[i + j * BPS]); in PrintBlockInfo()
80 for (i = 0; i < 8; ++i) printf("%3d ", uv_out[i + j * BPS]); in PrintBlockInfo()
82 for (i = 8; i < 16; ++i) printf("%3d ", uv_out[i + j * BPS]); in PrintBlockInfo()
85 printf("%1d ", abs(uv_out[i + j * BPS] - uv_in[i + j * BPS])); in PrintBlockInfo()
89 printf("%1d ", abs(uv_out[i + j * BPS] - uv_in[i + j * BPS])); in PrintBlockInfo()
479 0 + 0 * BPS, 4 + 0 * BPS, 8 + 0 * BPS, 12 + 0 * BPS,
[all …]

12