Searched defs:scale (Results 1 - 25 of 52) sorted by relevance

123

/hardware/bsp/intel/peripheral/libupm/examples/c++/
H A Dhx711.cxx34 upm::HX711 *scale = new upm::HX711(3, 2); local
37 scale->setScale(2837);
38 scale->tare();
39 std::cout << scale->getUnits() << std::endl;
/hardware/bsp/intel/peripheral/sensors/mraa/sensors/
H A DLSM303dAccelerometer.hpp39 * @param scale Sensor sensitivity scaling
44 int scale = LM303D_SCALE_2G);
72 int scale; member in class:LSM303dAccelerometer
H A DLSM303dAccelerometer.cpp50 int bus, int address, int scale)
51 : LSM303d(bus, address, scale), pollFd(pollFd), scale(scale) {
68 double conversion_constant = (double)scale * (double)Sensor::kGravitationalAcceleration / pow(2,15);
49 LSM303dAccelerometer(int pollFd, int bus, int address, int scale) argument
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
H A Dvp9_reconinter.h52 const struct scale_factors *scale,
56 dst->buf = src + scaled_buffer_offset(x, y, stride, scale);
49 setup_pred_plane(struct buf_2d *dst, uint8_t *src, int stride, int mi_row, int mi_col, const struct scale_factors *scale, int subsampling_x, int subsampling_y) argument
H A Dvp9_tapify.py12 scale = 2**16 variable
26 return int((scale*dist(b,p)+s/2)/s)
33 t4 = scale - t(ul,p,sum) - t(ur,p,sum) - t(ll,p,sum);
/hardware/bsp/intel/peripheral/libupm/src/hx711/
H A Dhx711.cxx138 void HX711::setScale(float scale){ argument
139 SCALE = scale;
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
H A Dinv_sysfs_utils.c184 * inv_read_scale() - Read scale.
194 count = inv_sysfs_read((char*)names->scale, sizeof(str), str);
204 * inv_read_temp_scale() - Read temperature scale.
255 float scale; local
257 count += inv_read_scale(names, &scale);
258 data[0] = (long)(raw[0] * (65536.f / scale));
259 data[1] = (long)(raw[1] * (65536.f / scale));
260 data[2] = (long)(raw[2] * (65536.f / scale));
276 static short scale, offset; local
280 count += inv_read_temp_scale(names, &scale);
[all...]
H A Dinv_sysfs_utils.h23 * @fsr: Full-scale range.
25 * @scale: LSBs / dps (or LSBs / Gs).
40 const char *scale; //Gyro scale member in struct:inv_sysfs_names_s
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
H A Dinv_sysfs_utils.c178 * inv_read_scale() - Read scale.
188 count = inv_sysfs_read((char*)names->scale, sizeof(str), str);
198 * inv_read_temp_scale() - Read temperature scale.
249 float scale; local
251 count += inv_read_scale(names, &scale);
252 data[0] = (long)(raw[0] * (65536.f / scale));
253 data[1] = (long)(raw[1] * (65536.f / scale));
254 data[2] = (long)(raw[2] * (65536.f / scale));
270 static short scale, offset; local
274 count += inv_read_temp_scale(names, &scale);
[all...]
H A Dinv_sysfs_utils.h17 * @fsr: Full-scale range.
19 * @scale: LSBs / dps (or LSBs / Gs).
34 const char *scale; //Gyro scale member in struct:inv_sysfs_names_s
/hardware/qcom/display/msm8996/sdm/libs/core/fb/
H A Dhw_scale.cpp51 if (!scale_data.enable.scale) {
62 mdp_scale->enable_pxl_ext = scale_data.enable.scale;
105 mdp_scale_data *scale = reinterpret_cast<mdp_scale_data *>(mdp_scale); local
106 if (scale->enable_pxl_ext) {
107 DLOGV_IF(kTagDriverConfig, "Scale Enable = %d", scale->enable_pxl_ext);
110 j, scale->init_phase_x[j], scale->phase_step_x[j], scale->init_phase_y[j],
111 scale->phase_step_y[j], scale
277 mdp_scale_data_v2 *scale = reinterpret_cast<mdp_scale_data_v2 *>(mdp_scale); local
[all...]
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
H A Dhw_scale.cpp51 if (!scale_data.enable.scale) {
62 mdp_scale->enable_pxl_ext = scale_data.enable.scale;
105 mdp_scale_data *scale = reinterpret_cast<mdp_scale_data *>(mdp_scale); local
106 if (scale->enable_pxl_ext) {
107 DLOGV_IF(kTagDriverConfig, "Scale Enable = %d", scale->enable_pxl_ext);
110 j, scale->init_phase_x[j], scale->phase_step_x[j], scale->init_phase_y[j],
111 scale->phase_step_y[j], scale
280 mdp_scale_data_v2 *scale = reinterpret_cast<mdp_scale_data_v2 *>(mdp_scale); local
[all...]
/hardware/bsp/intel/peripheral/libupm/src/tsl2561/
H A Dtsl2561.cxx125 uint64_t scale = 0; local
130 scale = LUX_CHSCALE_TINT0;
133 scale = LUX_CHSCALE_TINT1;
136 scale = (1 << LUX_CHSCALE);
140 // scale if gain is NOT 16X
141 if (!m_gain) scale = scale << 4;
145 // scale the channel values
146 channel0 = (rawLuxCh0 * scale) >> LUX_CHSCALE;
147 channel1 = (rawLuxCh1 * scale) >> LUX_CHSCAL
[all...]
/hardware/bsp/intel/peripheral/libupm/src/mpu9150/
H A Dmpu60x0.cxx91 // set the gyro and accel scale bits to reasonable values
185 bool MPU60X0::setGyroscopeScale(FS_SEL_T scale) argument
191 reg |= (scale << _FS_SEL_SHIFT);
200 switch (scale)
221 ": internal error, unsupported scale");
228 bool MPU60X0::setAccelerometerScale(AFS_SEL_T scale) argument
234 reg |= (scale << _AFS_SEL_SHIFT);
243 switch (scale)
264 ": internal error, unsupported scale");
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
H A Drate_hist.c189 int buckets, int total, int scale) {
231 len = HIST_BAR_MAX * bucket[i].count / scale;
251 int scale; local
264 scale = merge_hist_buckets(bucket, max_buckets, &buckets);
265 show_histogram(bucket, buckets, total, scale);
270 int i, scale; local
280 scale = merge_hist_buckets(hist->bucket, max_buckets, &buckets);
281 show_histogram(hist->bucket, buckets, hist->total, scale);
188 show_histogram(const struct hist_bucket *bucket, int buckets, int total, int scale) argument
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
H A Dand_constructor.c73 float scale = 2.f; local
82 scale = 2.f;
83 sens = (long)(scale * (1L << 15));
88 // scale is the max value of the compass in micro Tesla.
89 scale = 5000.f;
90 sens = (long)(scale * (1L << 15));
355 // setup the scale factors and orientations and other parameters
/hardware/bsp/intel/peripheral/libupm/src/lsm9ds0/
H A Dlsm9ds0.cxx114 // set gyro scale
118 ": Unable to set gyro scale");
145 ": Unable to set accel scale");
165 ": Unable to set mag scale");
193 // set scale
197 ": Unable to set mag scale");
387 bool LSM9DS0::setGyroscopeScale(G_FS_T scale) argument
393 reg |= (scale << _CTRL_REG4_G_FS_SHIFT);
402 switch (scale)
419 ": internal error, unsupported scale");
453 setAccelerometerScale(XM_AFS_T scale) argument
545 setMagnetometerScale(XM_MFS_T scale) argument
[all...]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
H A Diio_utils.h61 * @scale: scale factor to be applied for conversion to si units
72 float scale; member in struct:iio_channel_info
360 current->scale = 1.0;
390 /* Find the scale */
391 ret = iioutils_get_param_float(&current->scale,
392 "scale",
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
H A Diio_utils.h61 * @scale: scale factor to be applied for conversion to si units
72 float scale; member in struct:iio_channel_info
360 current->scale = 1.0;
390 /* Find the scale */
391 ret = iioutils_get_param_float(&current->scale,
392 "scale",
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
H A Diio_utils.h59 * @scale: scale factor to be applied for conversion to si units
70 float scale; member in struct:iio_channel_info
359 current->scale = 1.0;
389 /* Find the scale */
390 ret = iioutils_get_param_float(&current->scale,
391 "scale",
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/test/
H A Dmm_jpegdec_test.c210 double scale; local
215 scale = 1.5;
221 scale = 2.0;
225 scale = 3.0;
228 scale = 1.0;
231 scale = 0;
235 *cScale = scale;
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/
H A Dmm_jpegdec_test.c210 double scale; local
215 scale = 1.5;
221 scale = 2.0;
225 scale = 3.0;
228 scale = 1.0;
231 scale = 0;
235 *cScale = scale;
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
H A Dvp9_temporal_filter.c41 struct scale_factors *scale,
61 scale,
69 scale,
77 scale,
194 struct scale_factors *scale) {
292 predictor, scale,
32 temporal_filter_predictors_mb_c(MACROBLOCKD *xd, uint8_t *y_mb_ptr, uint8_t *u_mb_ptr, uint8_t *v_mb_ptr, int stride, int uv_block_size, int mv_row, int mv_col, uint8_t *pred, struct scale_factors *scale, int x, int y) argument
190 temporal_filter_iterate_c(VP9_COMP *cpi, int frame_count, int alt_ref_index, int strength, struct scale_factors *scale) argument
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_dec/src/
H A DOMX_JpegDecoder.c1535 int scale=0; local
1539 scale =(int)pScaleFactor->xWidth;
1541 switch (scale)
1634 int scale=0; local
1636 scale =(int)pScaleFactor->xWidth;
1638 switch (scale)
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
H A Dsvc_encodeframe.c337 svc_log(svc_ctx, SVC_LOG_ERROR, "svc scale-factors: invalid value %s\n",
389 "svc: scale-factors: %d values required, but only %d specified\n",
400 * scale-factors=<n1>/<d1>,<n2>/<d2>,...
431 } else if (strcmp("scale-factors", option_name) == 0) {
1055 double scale[COMPONENTS]; local
1085 scale[1] = y_scale;
1086 scale[2] = scale[3] = y_scale / 4; // U or V
1087 scale[0] = y_scale * 1.5; // total
1090 psnr[j] = calc_psnr(si->sse_sum[i][j] / scale[
[all...]

Completed in 1713 milliseconds

123