Searched refs:scale (Results 1 - 25 of 59) sorted by relevance

123

/hardware/bsp/intel/peripheral/libupm/examples/javascript/
H A Dhx711.js27 var scale = new hx711.HX711(3, 2);
31 scale.setScale(2837);
32 scale.tare(2);
34 console.log(scale.getUnits());
/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/ti/omap3/omx/system/src/openmax_il/perf/tests/
H A Dperf34 # scale factor size => scale a size by factor percent
35 scale() {
91 VPsize=$(scale $18 $(scale $19 $VDsize)) ;;
93 VPsize=$(scale $16 $(scale $17 $VDsize)) ;;
95 VPsize=$(scale $12 $(scale $13 $VDsize)) ;;
190 VPsize=$(scale
[all...]
/hardware/bsp/intel/peripheral/libupm/src/hx711/
H A Dhx711.h118 * @param scale Value obtained via calibration
120 void setScale(float scale = 1.f);
133 * @param scale Value obtained via calibration
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/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/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/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/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/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/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/qcom/display/msm8996/sdm/libs/core/fb/
H A Dhw_device.cpp240 // Send scale data to MDP driver
241 mdp_layer.scale = GetScaleDataRef(mdp_layer_count);
257 mdp_scale_data *scale = reinterpret_cast<mdp_scale_data*>(mdp_layer.scale); local
259 j, scale->init_phase_x[j], scale->phase_step_x[j], scale->init_phase_y[j],
260 scale->phase_step_y[j], scale->num_ext_pxls_left[j], scale
976 SetHWScaleData(const ScaleData &scale, uint32_t index) argument
[all...]
/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/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/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/armv6/
H A Dvp8_short_fdct4x4_armv6.asm148 asr r2, r2, #4 ; scale top halfword
150 asr r3, r3, #4 ; scale top halfword
151 pkhtb r4, r2, r8, asr #20 ; pack and scale bottom halfword
152 pkhtb r5, r3, r9, asr #20 ; pack and scale bottom halfword
202 asr r2, r2, #4 ; scale top halfword
204 asr r3, r3, #4 ; scale top halfword
205 pkhtb r4, r2, r8, asr #20 ; pack and scale bottom halfword
206 pkhtb r5, r3, r9, asr #20 ; pack and scale bottom halfword
/hardware/qcom/msm8996/kernel-headers/linux/
H A Dmsm_mdp_ext.h80 struct mdp_scale_data __user * scale; member in struct:mdp_input_layer
/hardware/qcom/msm8996/original-kernel-headers/linux/
H A Dmsm_mdp_ext.h37 * call uses scale parameters when this flag is enabled.
246 struct mdp_scale_data __user *scale; member in struct:mdp_input_layer
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/include/nestegg/
H A Dnestegg.h172 /** Query the tstamp scale of the media stream in nanoseconds.
176 @param scale Storage for the queried scale factor.
179 int nestegg_tstamp_scale(nestegg * context, uint64_t * scale);

Completed in 967 milliseconds

123