Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Dy4minput.c190 int y; in y4m_42xmpeg2_42xjpeg_helper() local
192 for (y = 0; y < _c_h; y++) { in y4m_42xmpeg2_42xjpeg_helper()
284 int y; in y4m_convert_42xpaldv_42xjpeg() local
304 for (y = 0; y < OC_MINI(c_h, 3); y++) { in y4m_convert_42xpaldv_42xjpeg()
305 _dst[y * c_w] = (unsigned char)OC_CLAMPI(0, (tmp[0] in y4m_convert_42xpaldv_42xjpeg()
306 … - 9 * tmp[OC_MAXI(y - 2, 0) * c_w] + 35 * tmp[OC_MAXI(y - 1, 0) * c_w] in y4m_convert_42xpaldv_42xjpeg()
307 … + 114 * tmp[y * c_w] - 17 * tmp[OC_MINI(y + 1, c_h - 1) * c_w] in y4m_convert_42xpaldv_42xjpeg()
308 … + 4 * tmp[OC_MINI(y + 2, c_h - 1) * c_w] + 64) >> 7, 255); in y4m_convert_42xpaldv_42xjpeg()
310 for (; y < c_h - 2; y++) { in y4m_convert_42xpaldv_42xjpeg()
311 _dst[y * c_w] = (unsigned char)OC_CLAMPI(0, (tmp[(y - 3) * c_w] in y4m_convert_42xpaldv_42xjpeg()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/driver/include/
Dmlmath.h54 #define atan2(x,y) ml_atan2(x,y) argument
64 #define pow(x,y) ml_pow(x,y) argument
70 #define atan2f(x,y) ml_atan2(x,y) argument
87 #define MIN(x,y) (((x)<(y))?(x):(y)) argument
91 #define MAX(x,y) (((x)>(y))?(x):(y)) argument
/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/
Dmlmath.h54 #define atan2(x,y) ml_atan2(x,y) argument
64 #define pow(x,y) ml_pow(x,y) argument
70 #define atan2f(x,y) ml_atan2(x,y) argument
87 #define MIN(x,y) (((x)<(y))?(x):(y)) argument
91 #define MAX(x,y) (((x)>(y))?(x):(y)) argument
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dconvolve_test.cc269 for (int y = 0; y < Height(); ++y) in TEST_P() local
271 ASSERT_EQ(out[y * kOutputStride + x], in[y * kInputStride + x]) in TEST_P()
272 << "(" << x << "," << y << ")"; in TEST_P()
286 for (int y = 0; y < Height(); ++y) in TEST_P() local
288 ASSERT_EQ(out[y * kOutputStride + x], in[y * kInputStride + x]) in TEST_P()
289 << "(" << x << "," << y << ")"; in TEST_P()
303 for (int y = 0; y < Height(); ++y) in TEST_P() local
305 ASSERT_EQ(out[y * kOutputStride + x], in[y * kInputStride + x]) in TEST_P()
306 << "(" << x << "," << y << ")"; in TEST_P()
375 for (int y = 0; y < Height(); ++y) in TEST_P() local
[all …]
Dintrapred_test.cc57 for (int y = 0; y < block_size_; y++) in FillRandom() local
58 data_ptr_[p][y * stride_ - 1] = rnd.Rand8(); in FillRandom()
105 for (int y = 0; y < block_size_; y++) in CheckDCPrediction() local
106 sum += data_ptr_[p][y * stride_ - 1]; in CheckDCPrediction()
112 for (int y = 1; y < block_size_; ++y) in CheckDCPrediction() local
113 ASSERT_EQ(0, memcmp(data_ptr_[p], &data_ptr_[p][y * stride_], in CheckDCPrediction()
127 for (int y = 0; y < block_size_; y++) in CheckVPrediction() local
129 &data_ptr_[p][y * stride_], block_size_)); in CheckVPrediction()
136 for (int y = 0; y < block_size_; y++) in CheckHPrediction() local
138 ASSERT_EQ(data_ptr_[p][-1 + y * stride_], in CheckHPrediction()
[all …]
Dvariance_test.cc43 for (int y = 0; y < h; y++) { in variance_ref() local
45 int diff = ref[w * y + x] - src[w * y + x]; in variance_ref()
60 for (int y = 0; y < h; y++) { in subpel_variance_ref() local
63 const int a1 = ref[(w + 1) * (y + 0) + x + 0]; in subpel_variance_ref()
64 const int a2 = ref[(w + 1) * (y + 0) + x + 1]; in subpel_variance_ref()
65 const int b1 = ref[(w + 1) * (y + 1) + x + 0]; in subpel_variance_ref()
66 const int b2 = ref[(w + 1) * (y + 1) + x + 1]; in subpel_variance_ref()
70 int diff = r - src[w * y + x]; in subpel_variance_ref()
174 for (int y = 0; y < h; y++) { in subpel_avg_variance_ref() local
177 const int a1 = ref[(w + 1) * (y + 0) + x + 0]; in subpel_avg_variance_ref()
[all …]
/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/
DAKFS_Device.c35 vdata[i].u.y = AKFS_INIT_VALUE_F; in AKFS_InitBuffer()
72 vec->u.x = vec->u.y; in AKFS_Rotate()
73 vec->u.y = -tmp; in AKFS_Rotate()
77 vec->u.y = -(vec->u.y); in AKFS_Rotate()
81 vec->u.x = -(vec->u.y); in AKFS_Rotate()
82 vec->u.y = tmp; in AKFS_Rotate()
91 vec->u.x = vec->u.y; in AKFS_Rotate()
92 vec->u.y = tmp; in AKFS_Rotate()
96 vec->u.y = -(vec->u.y); in AKFS_Rotate()
101 vec->u.x = -(vec->u.y); in AKFS_Rotate()
[all …]
DAKFS_VNorm.c47 (s->u.y <= AKFS_EPSILON) || in AKFS_VbNorm()
59 vvec[i].u.y = ((vdata[i].u.y - o->u.y) / (s->u.y) * (AKFLOAT)tgt); in AKFS_VbNorm()
84 vave->u.y = 0; in AKFS_VbAve()
88 (vvec[i].u.y == AKFS_INIT_VALUE_F) || in AKFS_VbAve()
93 vave->u.y += vvec[i].u.y; in AKFS_VbAve()
98 vave->u.y = 0; in AKFS_VbAve()
102 vave->u.y /= i; in AKFS_VbAve()
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/
DDisplayPlane.cpp93 void DisplayPlane::checkPosition(int& x, int& y, int& w, int& h) in checkPosition() argument
102 if (y < 0) in checkPosition()
103 y = 0; in checkPosition()
106 if ((y + h) > mode->vdisplay) in checkPosition()
107 h = mode->vdisplay - y; in checkPosition()
110 void DisplayPlane::setPosition(int x, int y, int w, int h) in setPosition() argument
112 ALOGTRACE("Position = %d, %d - %dx%d", x, y, w, h); in setPosition()
117 mPosition.y = (int) (((float)y/DEFAULT_DRM_FB_HEIGHT)*mDisplayHeight); in setPosition()
122 mDisplayCrop.y = 0; in setPosition()
129 if (mPosition.x != x || mPosition.y != y || in setPosition()
[all …]
/hardware/intel/img/hwcomposer/merrifield/test/
Dnv12_ved_test.cpp42 for (int y = 0; y < h; y++) { in fillYUVBuffer() local
44 int parityY = (y / blockHeight) & 1; in fillYUVBuffer()
46 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; in fillYUVBuffer()
47 if (x < w / 2 && y < h / 2) { in fillYUVBuffer()
48 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; in fillYUVBuffer()
49 if (x * 2 < w / 2 && y * 2 < h / 2) { in fillYUVBuffer()
50 buf[yuvTexOffsetV + (y * 2 * yuvTexStrideV) + x * 2 + 0] = in fillYUVBuffer()
51 buf[yuvTexOffsetV + (y * 2 * yuvTexStrideV) + x * 2 in fillYUVBuffer()
54 + ((y * 2 + 1) * yuvTexStrideV) in fillYUVBuffer()
56 + ((y * 2 + 1) * yuvTexStrideV) in fillYUVBuffer()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_textblit.c27 static void plot(int x, int y, unsigned char *image, int pitch) { in plot() argument
28 image[x + y * pitch] ^= 255; in plot()
64 int error, ystep, y, x; in vp9_blit_line() local
92 y = y0; in vp9_blit_line()
101 plot(y, x, image, pitch); in vp9_blit_line()
105 y = y + ystep; in vp9_blit_line()
111 plot(x, y, image, pitch); in vp9_blit_line()
115 y = y + ystep; in vp9_blit_line()
Dvp9_convolve.c25 int x, y; in convolve_horiz() local
27 for (y = 0; y < h; ++y) { in convolve_horiz()
47 int x, y; in convolve_avg_horiz() local
49 for (y = 0; y < h; ++y) { in convolve_avg_horiz()
70 int x, y; in convolve_vert() local
75 for (y = 0; y < h; ++y) { in convolve_vert()
81 dst[y * dst_stride] = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in convolve_vert()
93 int x, y; in convolve_avg_vert() local
98 for (y = 0; y < h; ++y) { in convolve_avg_vert()
104 dst[y * dst_stride] = ROUND_POWER_OF_TWO(dst[y * dst_stride] + in convolve_avg_vert()
[all …]
Dvp9_reconinter.c25 int x, int y, int b_w, int b_h, int w, int h) { in build_mc_border() argument
27 const uint8_t *ref_row = src - x - y * src_stride; in build_mc_border()
29 if (y >= h) in build_mc_border()
31 else if (y > 0) in build_mc_border()
32 ref_row += y * src_stride; in build_mc_border()
59 ++y; in build_mc_border()
61 if (y > 0 && y < h) in build_mc_border()
86 int x, int y) { in vp9_build_inter_predictor() argument
90 MV32 mv = vp9_scale_mv(&mv_q4, x, y, sf); in vp9_build_inter_predictor()
144 int x, int y, int w, int h, in build_inter_predictors() argument
[all …]
Dvp9_common.h27 #define MIN(x, y) (((x) < (y)) ? (x) : (y)) argument
28 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) argument
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Dtextblit.c55 static void plot (const int x, const int y, unsigned char *image, const int pitch) in plot() argument
57 image [x+y*pitch] ^= 255; in plot()
65 int error, ystep, y, x; in vp8_blit_line() local
95 y = y0; in vp8_blit_line()
106 plot(y,x, image, pitch); in vp8_blit_line()
111 y = y + ystep; in vp8_blit_line()
120 plot(x,y, image, pitch); in vp8_blit_line()
125 y = y + ystep; in vp8_blit_line()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/mips/dspr2/
Dvp9_convolve8_dspr2.c45 int32_t y; in convolve_horiz_4_transposed_dspr2() local
60 for (y = h; y--;) { in convolve_horiz_4_transposed_dspr2()
161 int32_t y; in convolve_horiz_8_transposed_dspr2() local
177 for (y = h; y--;) { in convolve_horiz_8_transposed_dspr2()
338 int32_t c, y; in convolve_horiz_16_transposed_dspr2() local
356 for (y = h; y--;) { in convolve_horiz_16_transposed_dspr2()
628 int32_t c, y; in convolve_horiz_64_transposed_dspr2() local
646 for (y = h; y--;) { in convolve_horiz_64_transposed_dspr2()
916 int x, y, k; in convolve_horiz_transposed() local
918 for (y = 0; y < h; ++y) { in convolve_horiz_transposed()
[all …]
Dvp9_convolve8_avg_dspr2.c30 int32_t x, y; in convolve_avg_vert_4_dspr2() local
50 for (y = h; y--;) { in convolve_avg_vert_4_dspr2()
191 int32_t x, y; in convolve_avg_vert_64_dspr2() local
211 for (y = h; y--;) { in convolve_avg_vert_64_dspr2()
450 int x, y; in vp9_convolve_avg_dspr2() local
462 for (y = h; y--; ) { in vp9_convolve_avg_dspr2()
484 for (y = h; y--; ) { in vp9_convolve_avg_dspr2()
511 for (y = h; y--; ) { in vp9_convolve_avg_dspr2()
546 for (y = h; y--; ) { in vp9_convolve_avg_dspr2()
600 for (y = h; y--; ) { in vp9_convolve_avg_dspr2()
[all …]
Dvp9_convolve2_dspr2.c29 int32_t y; in convolve_bi_horiz_4_transposed_dspr2() local
41 for (y = h; y--;) { in convolve_bi_horiz_4_transposed_dspr2()
119 int32_t y; in convolve_bi_horiz_8_transposed_dspr2() local
133 for (y = h; y--;) { in convolve_bi_horiz_8_transposed_dspr2()
257 int32_t c, y; in convolve_bi_horiz_16_transposed_dspr2() local
273 for (y = h; y--;) { in convolve_bi_horiz_16_transposed_dspr2()
489 int32_t c, y; in convolve_bi_horiz_64_transposed_dspr2() local
505 for (y = h; y--;) { in convolve_bi_horiz_64_transposed_dspr2()
719 int x, y; in convolve_bi_horiz_transposed() local
721 for (y = 0; y < h; ++y) { in convolve_bi_horiz_transposed()
/hardware/intel/img/hwcomposer/merrifield/common/planes/
DDisplayPlane.cpp87 void DisplayPlane::checkPosition(int& x, int& y, int& w, int& h) in checkPosition() argument
96 if (y < 0) in checkPosition()
97 y = 0; in checkPosition()
100 if ((y + h) > mode->vdisplay) in checkPosition()
101 h = mode->vdisplay - y; in checkPosition()
104 void DisplayPlane::setPosition(int x, int y, int w, int h) in setPosition() argument
106 ATRACE("Position = %d, %d - %dx%d", x, y, w, h); in setPosition()
108 if (mPosition.x != x || mPosition.y != y || in setPosition()
112 mPosition.y = y; in setPosition()
118 void DisplayPlane::setSourceCrop(int x, int y, int w, int h) in setSourceCrop() argument
[all …]
/hardware/qcom/camera/QCamera2/HAL3/
DQCamera3CropRegionMapper.cpp221 void QCamera3CropRegionMapper::toActiveArray(uint32_t& x, uint32_t& y) in toActiveArray() argument
229 (y > static_cast<uint32_t>(mSensorH))) { in toActiveArray()
231 __func__, x, y, mSensorW, mSensorH); in toActiveArray()
235 y = y * mActiveArrayH / mSensorH; in toActiveArray()
250 void QCamera3CropRegionMapper::toSensor(uint32_t& x, uint32_t& y) in toSensor() argument
259 (y > static_cast<uint32_t>(mActiveArrayH))) { in toSensor()
261 __func__, x, y, mSensorW, mSensorH); in toSensor()
265 y = y * mSensorH / mActiveArrayH; in toSensor()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_resize.c237 int64_t y; in interpolate() local
243 y = offset; in interpolate()
244 while ((y >> INTERP_PRECISION_BITS) < (INTERP_TAPS / 2 - 1)) { in interpolate()
246 y += delta; in interpolate()
250 y = delta * x + offset; in interpolate()
251 while ((y >> INTERP_PRECISION_BITS) + in interpolate()
254 y -= delta; in interpolate()
258 for (x = 0, y = offset; x < outlength; ++x, y += delta) { in interpolate()
260 int_pel = y >> INTERP_PRECISION_BITS; in interpolate()
261 sub_pel = (y >> (INTERP_PRECISION_BITS - SUBPEL_BITS)) & SUBPEL_MASK; in interpolate()
[all …]
Dvp9_aq_cyclicrefresh.c142 int x = 0; int y = 0; in vp9_cyclic_refresh_update_segment() local
166 for (y = 0; y < ymis; y++) in vp9_cyclic_refresh_update_segment()
168 cr->map[block_index + y * cm->mi_cols + x] = new_map_value; in vp9_cyclic_refresh_update_segment()
169 cpi->segmentation_map[block_index + y * cm->mi_cols + x] = in vp9_cyclic_refresh_update_segment()
199 int xmis, ymis, x, y, qindex2; in vp9_cyclic_refresh_setup() local
283 for (y = 0; y < ymis; y++) { in vp9_cyclic_refresh_setup()
285 const int bl_index2 = bl_index + y * cm->mi_cols + x; in vp9_cyclic_refresh_setup()
301 for (y = 0; y < ymis; y++) in vp9_cyclic_refresh_setup()
303 seg_map[bl_index + y * cm->mi_cols + x] = new_value; in vp9_cyclic_refresh_setup()
/hardware/intel/img/psb_video/src/
Dtng_ved_scaling.c43 float y; in tng_calculate_coeff_bessi0() local
48 y = (float)(x / 3.75); in tng_calculate_coeff_bessi0()
49 y *= y; in tng_calculate_coeff_bessi0()
50 ans = (float)(1.0 + y * (3.5156229 + y * (3.0899424 + y * (1.2067492 in tng_calculate_coeff_bessi0()
51 + y * (0.2659732 + y * (0.360768e-1 + y * 0.45813e-2)))))); in tng_calculate_coeff_bessi0()
55 y = (float)(3.75 / ax); in tng_calculate_coeff_bessi0()
56 ans = (float)((float)((sqrt(ax) / sqrt(ax)) * (0.39894228 + y * (0.1328592e-1 in tng_calculate_coeff_bessi0()
57 + y * (0.225319e-2 + y * (-0.157565e-2 + y * (0.916281e-2 in tng_calculate_coeff_bessi0()
58 +y * (-0.2057706e-1 + y * (0.2635537e-1 + y * (-0.1647633e-1 in tng_calculate_coeff_bessi0()
59 + y * 0.392377e-2)))))))))); in tng_calculate_coeff_bessi0()
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/base/
DHwcLayer.cpp29 inline bool operator==(const hwc_rect_t& x, const hwc_rect_t& y) in operator ==() argument
31 return (x.top == y.top && in operator ==()
32 x.bottom == y.bottom && in operator ==()
33 x.left == y.left && in operator ==()
34 x.right == y.right); in operator ==()
37 inline bool operator !=(const hwc_rect_t& x, const hwc_rect_t& y) in operator !=() argument
39 return !operator==(x, y); in operator !=()
42 inline bool operator ==(const hwc_frect_t& x, const hwc_frect_t& y) in operator ==() argument
44 return (x.top == y.top && in operator ==()
45 x.bottom == y.bottom && in operator ==()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/base/
DHwcLayer.cpp30 inline bool operator==(const hwc_rect_t& x, const hwc_rect_t& y) in operator ==() argument
32 return (x.top == y.top && in operator ==()
33 x.bottom == y.bottom && in operator ==()
34 x.left == y.left && in operator ==()
35 x.right == y.right); in operator ==()
38 inline bool operator !=(const hwc_rect_t& x, const hwc_rect_t& y) in operator !=() argument
40 return !operator==(x, y); in operator !=()
43 inline bool operator ==(const hwc_frect_t& x, const hwc_frect_t& y) in operator ==() argument
45 return (x.top == y.top && in operator ==()
46 x.bottom == y.bottom && in operator ==()
[all …]

12345678910>>...15