/external/adhd/cras/src/server/ |
D | cras_mix_ops.c | 31 static inline int need_to_scale(float scaler) { in need_to_scale() argument 32 return (scaler < 0.99 || scaler > 1.01); in need_to_scale() 98 float scaler, float increment, int step) in cras_scale_buffer_inc_s16_le() argument 103 if (scaler > MAX_VOLUME_TO_SCALE && increment > 0) in cras_scale_buffer_inc_s16_le() 106 if (scaler < MIN_VOLUME_TO_SCALE && increment < 0) { in cras_scale_buffer_inc_s16_le() 113 if (scaler > MAX_VOLUME_TO_SCALE) { in cras_scale_buffer_inc_s16_le() 114 } else if (scaler < MIN_VOLUME_TO_SCALE) { in cras_scale_buffer_inc_s16_le() 117 out[i] *= scaler; in cras_scale_buffer_inc_s16_le() 121 scaler += increment; in cras_scale_buffer_inc_s16_le() 126 float scaler) in cras_scale_buffer_s16_le() argument [all …]
|
D | cras_mix.c | 47 unsigned int frame, float scaler, in cras_scale_buffer_increment() argument 50 ops->scale_buffer_increment(fmt, buff, frame * channel, scaler, in cras_scale_buffer_increment() 55 float scaler) in cras_scale_buffer() argument 57 ops->scale_buffer(fmt, buff, count, scaler); in cras_scale_buffer() 69 unsigned int src_stride, float scaler) in cras_mix_add_scale_stride() argument 72 scaler); in cras_mix_add_scale_stride()
|
D | cras_ramp.c | 87 ramp->start_scaler = action.scaler; in cras_ramp_start() 94 ramp->start_scaler = action.scaler; in cras_ramp_start() 111 action.scaler = 1.0; in cras_ramp_get_current_action() 119 action.scaler = 1.0; in cras_ramp_get_current_action() 124 action.scaler = ramp->start_scaler + in cras_ramp_get_current_action() 130 action.scaler = ramp->start_scaler + in cras_ramp_get_current_action()
|
D | cras_mix.h | 30 unsigned int frame, float scaler, 42 float scaler); 70 unsigned int src_stride, float scaler);
|
D | cras_mix_ops.h | 34 unsigned int count, float scaler, 37 unsigned int count, float scaler); 44 float scaler);
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | timestamp_scaler_unittest.cc | 33 TimestampScaler scaler(db); in TEST() local 37 EXPECT_EQ(timestamp, scaler.ToInternal(timestamp, kRtpPayloadType)); in TEST() 39 EXPECT_EQ(timestamp, scaler.ToExternal(timestamp)); in TEST() 54 TimestampScaler scaler(db); in TEST() local 63 EXPECT_EQ(timestamp, scaler.ToInternal(timestamp, kRtpPayloadType)); in TEST() 65 EXPECT_EQ(timestamp, scaler.ToExternal(timestamp)); in TEST() 79 TimestampScaler scaler(db); in TEST() local 86 scaler.ToInternal(external_timestamp, kRtpPayloadType)); in TEST() 88 EXPECT_EQ(external_timestamp, scaler.ToExternal(internal_timestamp)); in TEST() 103 TimestampScaler scaler(db); in TEST() local [all …]
|
/external/adhd/cras/src/tests/ |
D | ramp_unittest.cc | 32 EXPECT_FLOAT_EQ(1.0, action.scaler); in TEST() 53 EXPECT_FLOAT_EQ(0.0, action.scaler); in TEST() 67 float scaler = increment * ramped_frames; in TEST() local 80 EXPECT_FLOAT_EQ(scaler, action.scaler); in TEST() 105 EXPECT_FLOAT_EQ(1.0, action.scaler); in TEST() 120 float scaler; in TEST() local 131 scaler = 1 + down_increment * ramped_frames; in TEST() 133 up_increment = (1 - scaler) / 48000; in TEST() 142 EXPECT_FLOAT_EQ(scaler, action.scaler); in TEST() 157 float scaler; in TEST() local [all …]
|
D | softvol_curve_unittest.cc | 17 float scaler; in TEST() local 18 scaler = convert_softvol_scaler_from_dB(-2000); in TEST() 19 EXPECT_NEAR(scaler, 0.1f, ABS_ERROR); in TEST() 20 scaler = convert_softvol_scaler_from_dB(-1000); in TEST() 21 EXPECT_NEAR(scaler, 0.3162277f, ABS_ERROR); in TEST() 22 scaler = convert_softvol_scaler_from_dB(-4000); in TEST() 23 EXPECT_NEAR(scaler, 0.01f, ABS_ERROR); in TEST() 24 scaler = convert_softvol_scaler_from_dB(-3500); in TEST() 25 EXPECT_NEAR(scaler, 0.0177828f, ABS_ERROR); in TEST()
|
D | mix_unittest.cc | 22 static inline int need_to_scale(float scaler) { in need_to_scale() argument 23 return (scaler < 0.99 || scaler > 1.01); in need_to_scale() 61 void TestScaleStride(float scaler) { in TestScaleStride() argument 65 if (need_to_scale(scaler)) in TestScaleStride() 66 tmp = mix_buffer_[i] + src_buffer_[i/2] * scaler; in TestScaleStride() 78 kBufferFrames, 4, 2, scaler); in TestScaleStride() 84 float scaler = start_scaler; in ScaleIncrement() local 86 if (scaler > 0.9999999) { in ScaleIncrement() 87 } else if (scaler < 0.0000001) { in ScaleIncrement() 90 compare_buffer_[i] = mix_buffer_[i] * scaler; in ScaleIncrement() [all …]
|
/external/freetype/src/cache/ |
D | ftcbasic.c | 39 FTC_ScalerRec scaler; member 45 FT_BOOL( FTC_SCALER_COMPARE( &(a)->scaler, &(b)->scaler ) && \ 49 ( FTC_SCALER_HASH( &(a)->scaler ) + 31 * (a)->load_flags ) 106 error = FTC_Manager_LookupFace( manager, family->attrs.scaler.face_id, in ftc_basic_family_get_count() 135 error = FTC_Manager_LookupSize( manager, &family->attrs.scaler, &size ); in ftc_basic_family_load_bitmap() 161 FTC_Scaler scaler = &family->attrs.scaler; in ftc_basic_family_load_glyph() local 168 scaler, in ftc_basic_family_load_glyph() 217 result = FT_BOOL( family->attrs.scaler.face_id == face_id ); in ftc_basic_gnode_compare_faceid() 320 query.attrs.scaler.face_id = type->face_id; in FTC_ImageCache_Lookup() 321 query.attrs.scaler.width = type->width; in FTC_ImageCache_Lookup() [all …]
|
D | ftcmanag.c | 36 FTC_Scaler scaler, in ftc_scaler_lookup_size() argument 44 error = FTC_Manager_LookupFace( manager, scaler->face_id, &face ); in ftc_scaler_lookup_size() 54 if ( scaler->pixel ) in ftc_scaler_lookup_size() 55 error = FT_Set_Pixel_Sizes( face, scaler->width, scaler->height ); in ftc_scaler_lookup_size() 58 (FT_F26Dot6)scaler->width, in ftc_scaler_lookup_size() 59 (FT_F26Dot6)scaler->height, in ftc_scaler_lookup_size() 60 scaler->x_res, in ftc_scaler_lookup_size() 61 scaler->y_res ); in ftc_scaler_lookup_size() 78 FTC_ScalerRec scaler; member 104 FTC_Scaler scaler = (FTC_Scaler)ftcscaler; in ftc_size_node_compare() local [all …]
|
/external/freetype/src/autofit/ |
D | afloader.c | 228 AF_ScalerRec scaler; in af_loader_load_glyph() local 238 FT_ZERO( &scaler ); in af_loader_load_glyph() 288 scaler.face = face; in af_loader_load_glyph() 289 scaler.x_scale = size_internal->autohint_metrics.x_scale; in af_loader_load_glyph() 290 scaler.x_delta = 0; in af_loader_load_glyph() 291 scaler.y_scale = size_internal->autohint_metrics.y_scale; in af_loader_load_glyph() 292 scaler.y_delta = 0; in af_loader_load_glyph() 294 scaler.render_mode = FT_LOAD_TARGET_MODE( load_flags ); in af_loader_load_glyph() 295 scaler.flags = 0; in af_loader_load_glyph() 327 writing_system_class->style_metrics_scale( style_metrics, &scaler ); in af_loader_load_glyph() [all …]
|
D | afdummy.c | 31 hints->x_scale = metrics->scaler.x_scale; in af_dummy_hints_init() 32 hints->y_scale = metrics->scaler.y_scale; in af_dummy_hints_init() 33 hints->x_delta = metrics->scaler.x_delta; in af_dummy_hints_init() 34 hints->y_delta = metrics->scaler.y_delta; in af_dummy_hints_init()
|
D | aflatin2.c | 84 AF_Scaler scaler = &dummy->root.scaler; in af_latin2_metrics_init_widths() local 100 scaler->x_scale = scaler->y_scale = 0x10000L; in af_latin2_metrics_init_widths() 101 scaler->x_delta = scaler->y_delta = 0; in af_latin2_metrics_init_widths() 102 scaler->face = face; in af_latin2_metrics_init_widths() 103 scaler->render_mode = FT_RENDER_MODE_NORMAL; in af_latin2_metrics_init_widths() 104 scaler->flags = 0; in af_latin2_metrics_init_widths() 525 AF_Scaler scaler, in af_latin2_metrics_scale_dim() argument 536 scale = scaler->x_scale; in af_latin2_metrics_scale_dim() 537 delta = scaler->x_delta; in af_latin2_metrics_scale_dim() 541 scale = scaler->y_scale; in af_latin2_metrics_scale_dim() [all …]
|
D | aflatin.c | 83 AF_Scaler scaler = &dummy->root.scaler; in af_latin_metrics_init_widths() local 165 scaler->x_scale = 0x10000L; in af_latin_metrics_init_widths() 166 scaler->y_scale = 0x10000L; in af_latin_metrics_init_widths() 167 scaler->x_delta = 0; in af_latin_metrics_init_widths() 168 scaler->y_delta = 0; in af_latin_metrics_init_widths() 170 scaler->face = face; in af_latin_metrics_init_widths() 171 scaler->render_mode = FT_RENDER_MODE_NORMAL; in af_latin_metrics_init_widths() 172 scaler->flags = 0; in af_latin_metrics_init_widths() 1141 AF_Scaler scaler, in af_latin_metrics_scale_dim() argument 1152 scale = scaler->x_scale; in af_latin_metrics_scale_dim() [all …]
|
D | afcjk.c | 92 AF_Scaler scaler = &dummy->root.scaler; in af_cjk_metrics_init_widths() local 172 scaler->x_scale = 0x10000L; in af_cjk_metrics_init_widths() 173 scaler->y_scale = 0x10000L; in af_cjk_metrics_init_widths() 174 scaler->x_delta = 0; in af_cjk_metrics_init_widths() 175 scaler->y_delta = 0; in af_cjk_metrics_init_widths() 177 scaler->face = face; in af_cjk_metrics_init_widths() 178 scaler->render_mode = FT_RENDER_MODE_NORMAL; in af_cjk_metrics_init_widths() 179 scaler->flags = 0; in af_cjk_metrics_init_widths() 670 AF_Scaler scaler, in af_cjk_metrics_scale_dim() argument 681 scale = scaler->x_scale; in af_cjk_metrics_scale_dim() [all …]
|
D | afindic.c | 65 AF_Scaler scaler ) in af_indic_metrics_scale() argument 68 af_cjk_metrics_scale( metrics, scaler ); in af_indic_metrics_scale()
|
/external/skia/src/core/ |
D | SkStrikeCache.cpp | 24 std::unique_ptr<SkScalerContext> scaler, in Node() argument 28 , fStrike{desc, std::move(scaler), metrics} 146 auto scaler = typeface.createScalerContext(effects, &desc, true /* can fail */); in CreateScalerContext() local 152 if (scaler == nullptr) { in CreateScalerContext() 154 scaler = typeface.createScalerContext(effects, &desc, false /* must succeed */); in CreateScalerContext() 156 return scaler; in CreateScalerContext() 176 auto scaler = CreateScalerContext(desc, effects, typeface); in findOrCreateStrike() local 177 node = this->createStrike(desc, std::move(scaler)); in findOrCreateStrike() 187 auto scaler = CreateScalerContext(desc, effects, typeface); in findOrCreateScopedStrike() local 188 node = this->createStrike(desc, std::move(scaler)); in findOrCreateScopedStrike() [all …]
|
D | SkStrikeCache.h | 79 std::unique_ptr<SkScalerContext> scaler, 85 std::unique_ptr<SkScalerContext> scaler, 91 std::unique_ptr<SkScalerContext> scaler,
|
/external/tensorflow/tensorflow/core/kernels/ |
D | resize_nearest_neighbor_op.cc | 136 typename BoolToScaler<half_pixel_centers>::Scaler scaler; in operator ()() local 149 ? static_cast<Eigen::Index>(roundf(scaler(y, height_scale))) in operator ()() 150 : static_cast<Eigen::Index>(floorf(scaler(y, height_scale))), in operator ()() 158 ? static_cast<Eigen::Index>(roundf(scaler(x, width_scale))) in operator ()() 159 : static_cast<Eigen::Index>(floorf(scaler(x, width_scale))), in operator ()() 280 typename BoolToScaler<half_pixel_centers>::Scaler scaler; in operator ()() local 294 ? static_cast<Eigen::Index>(roundf(scaler(y, height_scale))) in operator ()() 295 : static_cast<Eigen::Index>(floorf(scaler(y, height_scale))), in operator ()() 300 ? static_cast<Eigen::Index>(roundf(scaler(x, width_scale))) in operator ()() 301 : static_cast<Eigen::Index>(floorf(scaler(x, width_scale))), in operator ()()
|
/external/skqp/src/core/ |
D | SkStrikeCache.cpp | 24 std::unique_ptr<SkScalerContext> scaler, in Node() argument 28 , fCache{desc, std::move(scaler), metrics} 132 auto scaler = typeface.createScalerContext(effects, &desc, true /* can fail */); in CreateScalerContext() local 138 if (scaler == nullptr) { in CreateScalerContext() 140 scaler = typeface.createScalerContext(effects, &desc, false /* must succeed */); in CreateScalerContext() 142 return scaler; in CreateScalerContext() 162 auto scaler = CreateScalerContext(desc, effects, typeface); in findOrCreateStrike() local 163 node = this->createStrike(desc, std::move(scaler)); in findOrCreateStrike() 398 std::unique_ptr<SkScalerContext> scaler, in CreateStrikeExclusive() argument 403 desc, std::move(scaler), maybeMetrics, std::move(pinner)); in CreateStrikeExclusive() [all …]
|
D | SkStrikeCache.h | 79 std::unique_ptr<SkScalerContext> scaler, 85 std::unique_ptr<SkScalerContext> scaler, 91 std::unique_ptr<SkScalerContext> scaler,
|
/external/u-boot/drivers/spi/ |
D | cf_spi.c | 194 int scaler[] = { in cfspi_setup_slave() local 204 tmp = (prescaler[3] * scaler[15]); in cfspi_setup_slave() 215 (cfslave->baudrate > (gd->bus_clk / (prescaler[0] * scaler[0])))) { in cfspi_setup_slave() 254 brcnt = sizeof(scaler) / sizeof(int); in cfspi_setup_slave() 260 tmp = (baud_speed / scaler[j]) * (1 + dbr); in cfspi_setup_slave()
|
/external/google-fruit/examples/scaling_doubles/ |
D | main.cpp | 27 std::unique_ptr<Scaler> scaler = scalerFactory(12.1); in main() local 28 std::cout << scaler->scale(3) << std::endl; in main()
|
/external/freetype/include/freetype/ |
D | ftcache.h | 509 FTC_Scaler scaler, 855 FTC_Scaler scaler, 1088 FTC_Scaler scaler,
|