/hardware/bsp/intel/peripheral/libupm/src/lcd/ |
D | eboled.cxx | 180 void EBOLED::drawChar (uint8_t x, uint8_t y, uint8_t data, uint8_t color, uint8_t size) { in drawChar() argument 182 (y >= OLED_HEIGHT) || // Clip bottom in drawChar() 184 ((y + 8 * size - 1) < 0)) // Clip top in drawChar() 204 drawPixel(x+i, y+j, color); in drawChar() 206 drawRectangleFilled(x+(i*size), y+(j*size), size, size, color); // big size in drawChar() 234 void EBOLED::drawPixel(int8_t x, int8_t y, uint8_t color) in drawPixel() argument 236 if(x<0 || x>=OLED_WIDTH || y<0 || y>=OLED_HEIGHT) in drawPixel() 251 screenBuffer[(x/2) + ((y/8) * VERT_COLUMNS)] ^= (1<<(y%8+(x%2 * 8))); in drawPixel() 254 screenBuffer[(x/2) + ((y/8) * VERT_COLUMNS)] |= (1<<(y%8+(x%2 * 8))); in drawPixel() 257 screenBuffer[(x/2) + ((y/8) * VERT_COLUMNS)] &= ~(1<<(y%8+(x%2 * 8))); in drawPixel() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | y4minput.c | 190 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/bsp/intel/peripheral/libupm/src/st7735/ |
D | gfx.cxx | 44 GFX::setPixel (int x, int y, uint16_t color) { in setPixel() argument 45 if((x < 0) ||(x >= m_width) || (y < 0) || (y >= m_height)) { in setPixel() 49 int index = ((y * m_width) + x) * sizeof(uint16_t); in setPixel() 62 GFX::fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) { in fillRect() argument 64 drawFastVLine(i, y, h, color); in fillRect() 69 GFX::drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color) { in drawFastVLine() argument 70 drawLine(x, y, x, y+h-1, color); in drawFastVLine() 127 int16_t y = r; in drawCircle() local 134 while (x<y) { in drawCircle() 136 y--; in drawCircle() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/ |
D | mlmath.h | 54 #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/6515/libsensors_iio/software/core/driver/include/ |
D | mlmath.h | 54 #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/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/ |
D | AKFS_Device.c | 35 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 …]
|
D | AKFS_VNorm.c | 47 (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/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | convolve_test.cc | 269 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 …]
|
D | intrapred_test.cc | 57 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 …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
D | vp9_textblit.c | 27 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()
|
D | vp9_convolve.c | 25 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 …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
D | textblit.c | 55 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/img/hwcomposer/merrifield/test/ |
D | nv12_ved_test.cpp | 42 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/bsp/intel/peripheral/libupm/examples/c++/ |
D | mpu9250.cxx | 54 float x, y, z; in main() local 56 sensor->getAccelerometer(&x, &y, &z); in main() 58 cout << "AX: " << x << " AY: " << y << " AZ: " << z << endl; in main() 60 sensor->getGyroscope(&x, &y, &z); in main() 62 cout << "GX: " << x << " GY: " << y << " GZ: " << z << endl; in main() 64 sensor->getMagnetometer(&x, &y, &z); in main() 66 cout << "MX = " << x << " MY = " << y << " MZ = " << z << endl; in main()
|
D | mpu9150.cxx | 54 float x, y, z; in main() local 56 sensor->getAccelerometer(&x, &y, &z); in main() 58 cout << "AX: " << x << " AY: " << y << " AZ: " << z << endl; in main() 60 sensor->getGyroscope(&x, &y, &z); in main() 62 cout << "GX: " << x << " GY: " << y << " GZ: " << z << endl; in main() 64 sensor->getMagnetometer(&x, &y, &z); in main() 66 cout << "MX = " << x << " MY = " << y << " MZ = " << z << endl; in main()
|
D | lsm9ds0.cxx | 56 float x, y, z; in main() local 58 sensor->getAccelerometer(&x, &y, &z); in main() 60 cout << "AX: " << x << " AY: " << y << " AZ: " << z << endl; in main() 62 sensor->getGyroscope(&x, &y, &z); in main() 64 cout << "GX: " << x << " GY: " << y << " GZ: " << z << endl; in main() 66 sensor->getMagnetometer(&x, &y, &z); in main() 68 cout << "MX = " << x << " MY = " << y << " MZ = " << z << endl; in main()
|
D | lol-example.cxx | 53 int x = 0, y = 0; in main() local 55 sensor->setPixel(x, y, !(sensor->getPixel(x, y))); in main() 56 if (++x == 13) { x = 0; y++; } in main() 57 if (y == 9) y = 0; in main()
|
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
D | LoL_exampleSample.java | 41 int x = 0, y = 0; in main() local 44 short pixel = sensor.getPixel(x, y); in main() 46 sensor.setPixel(x, y, pixel); in main() 50 y++; in main() 52 if (y == 9) in main() 53 y = 0; in main()
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/ |
D | DisplayPlane.cpp | 93 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/bsp/intel/peripheral/libupm/examples/javascript/ |
D | mpu9250.js | 38 var y = new sensorObj.new_floatp(); variable 46 sensor.getAccelerometer(x, y, z); 48 " AY: " + sensorObj.floatp_value(y) + 51 sensor.getGyroscope(x, y, z); 53 " AY: " + sensorObj.floatp_value(y) + 56 sensor.getMagnetometer(x, y, z); 58 " MY: " + sensorObj.floatp_value(y) +
|
D | lsm9ds0.js | 39 var y = new sensorObj.new_floatp(); variable 47 sensor.getAccelerometer(x, y, z); 49 " AY: " + sensorObj.floatp_value(y) + 52 sensor.getGyroscope(x, y, z); 54 " AY: " + sensorObj.floatp_value(y) + 57 sensor.getMagnetometer(x, y, z); 59 " MY: " + sensorObj.floatp_value(y) +
|
D | mpu9150.js | 38 var y = new sensorObj.new_floatp(); variable 46 sensor.getAccelerometer(x, y, z); 48 " AY: " + sensorObj.floatp_value(y) + 51 sensor.getGyroscope(x, y, z); 53 " AY: " + sensorObj.floatp_value(y) + 56 sensor.getMagnetometer(x, y, z); 58 " MY: " + sensorObj.floatp_value(y) +
|
/hardware/bsp/intel/peripheral/libupm/examples/python/ |
D | lsm9ds0.py | 48 y = sensorObj.new_floatp() variable 53 sensor.getAccelerometer(x, y, z) 55 print " AY: ", sensorObj.floatp_value(y), 58 sensor.getGyroscope(x, y, z) 60 print " GY: ", sensorObj.floatp_value(y), 63 sensor.getMagnetometer(x, y, z) 65 print " MY: ", sensorObj.floatp_value(y),
|
D | mpu9150.py | 47 y = sensorObj.new_floatp() variable 52 sensor.getAccelerometer(x, y, z) 54 print " AY: ", sensorObj.floatp_value(y), 57 sensor.getGyroscope(x, y, z) 59 print " GY: ", sensorObj.floatp_value(y), 62 sensor.getMagnetometer(x, y, z) 64 print " MY: ", sensorObj.floatp_value(y),
|
D | mpu9250.py | 47 y = sensorObj.new_floatp() variable 52 sensor.getAccelerometer(x, y, z) 54 print " AY: ", sensorObj.floatp_value(y), 57 sensor.getGyroscope(x, y, z) 59 print " GY: ", sensorObj.floatp_value(y), 62 sensor.getMagnetometer(x, y, z) 64 print " MY: ", sensorObj.floatp_value(y),
|