Home
last modified time | relevance | path

Searched refs:step (Results 1 – 25 of 93) sorted by relevance

1234

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjrange.c39 mp_int_t step; member
44 if ((o->step > 0 && o->cur < o->stop) || (o->step < 0 && o->cur > o->stop)) { in range_it_iternext()
46 o->cur += o->step; in range_it_iternext()
66 o->step = step; in mp_obj_new_range_iterator()
78 mp_int_t step; member
85 if (self->step == 1) { in range_print()
98 o->step = 1; in range_make_new()
119 if (self->step > 0) { in range_len()
124 len = len / self->step; in range_len()
157 && (lhs_len == 1 || lhs->step == rhs->step))) in range_binary_op()
[all …]
A Dobjslice.c45 mp_obj_print_helper(print, o->step, PRINT_REPR); in slice_print()
58 MP_OBJ_NEW_SMALL_INT(bound_indices.step), in slice_indices()
78 dest[0] = self->step; in slice_attr()
111 o->step = ostep; in mp_obj_new_slice()
120 mp_int_t start, stop, step; in mp_obj_slice_indices() local
122 if (self->step == mp_const_none) { in mp_obj_slice_indices()
123 step = 1; in mp_obj_slice_indices()
125 step = mp_obj_get_int(self->step); in mp_obj_slice_indices()
126 if (step == 0) { in mp_obj_slice_indices()
131 if (step > 0) { in mp_obj_slice_indices()
[all …]
A Dsequence.c52 if (indexes->step < 0) { in mp_seq_get_fast_slice_indexes()
57 if (indexes->step > 0 && indexes->start > indexes->stop) { in mp_seq_get_fast_slice_indexes()
59 } else if (indexes->step < 0 && indexes->start < indexes->stop) { in mp_seq_get_fast_slice_indexes()
63 return indexes->step == 1; in mp_seq_get_fast_slice_indexes()
72 mp_int_t step = indexes->step; in mp_seq_extract_slice() local
76 if (step < 0) { in mp_seq_extract_slice()
79 start += step; in mp_seq_extract_slice()
84 start += step; in mp_seq_extract_slice()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Ddec_mips32.c31 const int p1 = p[-2 * step], p0 = p[-step], q0 = p[0], q1 = p[step]; in do_filter2()
35 p[-step] = VP8kclip1[p0 + a2]; in do_filter2()
41 const int p1 = p[-2 * step], p0 = p[-step], q0 = p[0], q1 = p[step]; in do_filter4()
46 p[-2 * step] = VP8kclip1[p1 + a3]; in do_filter4()
54 const int p2 = p[-3 * step], p1 = p[-2 * step], p0 = p[-step]; in do_filter6()
55 const int q0 = p[0], q1 = p[step], q2 = p[2 * step]; in do_filter6()
70 const int p1 = p[-2 * step], p0 = p[-step], q0 = p[0], q1 = p[step]; in hev()
75 const int p1 = p[-2 * step], p0 = p[-step], q0 = p[0], q1 = p[step]; in needs_filter()
81 const int p3 = p[-4 * step], p2 = p[-3 * step]; in needs_filter2()
82 const int p1 = p[-2 * step], p0 = p[-step]; in needs_filter2()
[all …]
A Ddec.c485 const int p1 = p[-2*step], p0 = p[-step], q0 = p[0], q1 = p[step]; in DoFilter2_C()
489 p[-step] = VP8kclip1[p0 + a2]; in DoFilter2_C()
495 const int p1 = p[-2*step], p0 = p[-step], q0 = p[0], q1 = p[step]; in DoFilter4_C()
500 p[-2*step] = VP8kclip1[p1 + a3]; in DoFilter4_C()
501 p[- step] = VP8kclip1[p0 + a2]; in DoFilter4_C()
508 const int p2 = p[-3*step], p1 = p[-2*step], p0 = p[-step]; in DoFilter6_C()
509 const int q0 = p[0], q1 = p[step], q2 = p[2*step]; in DoFilter6_C()
524 const int p1 = p[-2*step], p0 = p[-step], q0 = p[0], q1 = p[step]; in Hev()
531 const int p1 = p[-2 * step], p0 = p[-step], q0 = p[0], q1 = p[step]; in NeedsFilter_C()
539 const int p3 = p[-4 * step], p2 = p[-3 * step], p1 = p[-2 * step]; in NeedsFilter2_C()
[all …]
A Dalpha_processing_mips_dsp_r2.c135 const int step = 4; in PackARGB_MIPSdspR2() local
164 : [a]"r"(a), [r]"r"(r), [g]"r"(g), [b]"r"(b), [step]"r"(step), in PackARGB_MIPSdspR2()
172 const uint8_t* b, int len, int step, in PackRGB_MIPSdspR2() argument
204 : [a]"r"(a), [r]"r"(r), [g]"r"(g), [b]"r"(b), [step]"r"(step), in PackRGB_MIPSdspR2()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dhuffman_utils.c44 uint32_t step = 1 << (len - 1); in GetNextKey() local
45 while (key & step) { in GetNextKey()
46 step >>= 1; in GetNextKey()
48 return step ? (key & (step - 1)) + step : key; in GetNextKey()
54 int step, int end, in ReplicateValue() argument
56 assert(end % step == 0); in ReplicateValue()
58 end -= step; in ReplicateValue()
147 for (len = 1, step = 2; len <= root_bits; ++len, step <<= 1) { in BuildHuffmanTable()
158 ReplicateValue(&table[key], step, table_size, code); in BuildHuffmanTable()
164 for (len = root_bits + 1, step = 2; len <= MAX_ALLOWED_CODE_LENGTH; in BuildHuffmanTable()
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_objx/
A Dlv_spinbox.c71 ext->step = 1; in lv_spinbox_create()
167 ext->step = step; in lv_spinbox_set_step()
236 ext->step = new_step; in lv_spinbox_step_next()
238 ext->step = 1; in lv_spinbox_step_next()
269 ext->value += ext->step; in lv_spinbox_increment()
289 ext->value -= ext->step; in lv_spinbox_decrement()
336 if(ext->step > 1) { in lv_spinbox_signal()
340 ext->step = 1; in lv_spinbox_signal()
436 int32_t step = ext->step; in lv_spinbox_updatevalue() local
438 while(step >= 10) { in lv_spinbox_updatevalue()
[all …]
A Dlv_spinbox.h49 int32_t step; member
111 void lv_spinbox_set_step(lv_obj_t * spinbox, uint32_t step);
/AliOS-Things-master/components/littlevgl/src/lv_misc/
A Dlv_anim.c182 uint32_t step; in lv_anim_path_linear() local
192 new_value = (int32_t)step * (a->end - a->start); in lv_anim_path_linear()
213 int32_t step = lv_bezier3(t, 0, 1, 1, 1024); in lv_anim_path_ease_in() local
216 new_value = (int32_t)step * (a->end - a->start); in lv_anim_path_ease_in()
241 new_value = (int32_t)step * (a->end - a->start); in lv_anim_path_ease_out()
263 int32_t step = lv_bezier3(t, 0, 100, 924, 1024); in lv_anim_path_ease_in_out() local
266 new_value = (int32_t)step * (a->end - a->start); in lv_anim_path_ease_in_out()
288 int32_t step = lv_bezier3(t, 0, 600, 1300, 1024); in lv_anim_path_overshoot() local
291 new_value = (int32_t)step * (a->end - a->start); in lv_anim_path_overshoot()
345 int32_t step = lv_bezier3(t, 1024, 1024, 800, 0); in lv_anim_path_bounce() local
[all …]
/AliOS-Things-master/components/py_engine/tests/misc/
A Drge_sm.py16 step = self.Trajectory[-1][:]
17 istep, iac = step[:], self.InArgCoeff
30 step = [s + c * k[ik] for ik, s in enumerate(step)]
32 self.Trajectory += [step]
34 self.Trajectory = [step]
82 def drange(start, stop, step): argument
86 r += step
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dpicture_csp_enc.c330 int step, in ImportOneRow() argument
336 const int off = i * step; in ImportOneRow()
492 step, picture->width, src2); in PreprocessARGB()
740 a_ptr[step] * GammaToLinear(src[step]) + in LinearToGammaWeighted()
742 a_ptr[rgb_stride + step] * GammaToLinear(src[rgb_stride + step]); in LinearToGammaWeighted()
814 dst[0] = SUM4(r_ptr + j, step); in AccumulateRGB()
815 dst[1] = SUM4(g_ptr + j, step); in AccumulateRGB()
816 dst[2] = SUM4(b_ptr + j, step); in AccumulateRGB()
866 assert(step == 4); in ImportYUVAFromRGBA()
1119 assert(step == 4); in Import()
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodurandom.c144 mp_int_t step = mp_obj_get_int(args[2]); in mod_urandom_randrange() local
146 if (step > 0) { in mod_urandom_randrange()
147 n = (stop - start + step - 1) / step; in mod_urandom_randrange()
148 } else if (step < 0) { in mod_urandom_randrange()
149 n = (stop - start + step + 1) / step; in mod_urandom_randrange()
154 return mp_obj_new_int(start + step * yasmarang_randbelow(n)); in mod_urandom_randrange()
/AliOS-Things-master/components/linkkit/iot_coap/CoAPPacket/
A DCoAPDeserialize_common.c32 #define COAP_OPT(o, e, step) do { \ argument
33 if ((e) < step) { \
37 (e) -= step; \
38 (o) = ((o)) + step; \
45 #define COAP_OPT_CHECK(o, e, step) \ argument
47 COAP_OPT(o, e, step); \
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/
A Dwindow.c56 memmove(state->input, state->input + state->step, in WindowProcessSamples()
57 sizeof(*state->input) * (state->size - state->step)); in WindowProcessSamples()
58 state->input_used -= state->step; in WindowProcessSamples()
A Dwindow.h30 size_t step; member
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/testzlib/
A Dtestzlib.c196 int step=0; in main() local
212 step++; in main()
220 printf("total compress size = %u, in %u step\n",lSizeCpr,step); in main()
237 int step=0; in main() local
253 step++; in main()
261 printf("total uncompress size = %u, in %u step\n",lSizeUncpr,step); in main()
/AliOS-Things-master/components/genie_service/core/src/sig_models/
A Dsig_model_transition.c50 uint16_t step = (p_state->trans_end_time - cur_time) / SIG_MODEL_TRANSITION_INTERVAL; in sig_model_transition_update() local
66 delta = (p_state->lightness[TYPE_TARGET] - p_state->lightness[TYPE_PRESENT]) / step; in sig_model_transition_update()
85 delta = (p_state->lightness[TYPE_PRESENT] - p_state->lightness[TYPE_TARGET]) / step; in sig_model_transition_update()
110 …elta = (p_state->color_temperature[TYPE_TARGET] - p_state->color_temperature[TYPE_PRESENT]) / step; in sig_model_transition_update()
131 …elta = (p_state->color_temperature[TYPE_PRESENT] - p_state->color_temperature[TYPE_TARGET]) / step; in sig_model_transition_update()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal_ext/
A Daudio_api.h333 void audio_adc_digital_vol (audio_t *obj, u8 step);
361 void audio_dac_digital_vol (audio_t *obj, u8 step);
410 void audio_sidetone_vol (audio_t *obj, audio_sidetone_boost_t sidetone_boost, u8 step);
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/test/
A Dinfcover.c284 local void inf(char *hex, char *what, unsigned step, int win, unsigned len, in inf() argument
312 if (step == 0 || step > have) in inf()
313 step = have; in inf()
314 strm.avail_in = step; in inf()
315 have -= step; in inf()
339 strm.avail_in = step > have ? have : step; in inf()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/
A Dcommon.h292 double step = (max - min) / (num - 1); in gen_lut() local
293 double half_step = step / 2.0; in gen_lut()
295 double sample_val = TfLiteRound(func(min + i * step) * 32768.0); in gen_lut()
297 TfLiteRound((func(min + (i + 1) * step) * 32768.0 + in gen_lut()
298 TfLiteRound(func(min + i * step) * 32768.0)) / in gen_lut()
301 TfLiteRound(func(min + i * step + half_step) * 32768.0); in gen_lut()
321 float step = (max - min) / (num - 1); in gen_lut() local
322 float half_step = step / 2.0f; in gen_lut()
324 float sample_val = TfLiteRound(func(min + i * step) * 32768.0f); in gen_lut()
326 TfLiteRound((func(min + (i + 1) * step) * 32768.0f + in gen_lut()
[all …]
/AliOS-Things-master/components/py_engine/tests/basics/
A Dbuiltin_range_attrs.py12 print(range(1, 2, 3).step)
A Dslice_attrs.py6 print(idx.start, idx.stop, idx.step)
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_codec.h121 int hal_codec_sidetone_gain_ramp_up(float step);
122 int hal_codec_sidetone_gain_ramp_down(float step);
/AliOS-Things-master/components/a2sa/internal/driver/core/
A Dcontrol.h97 long step; /* R: step */ member
102 long long step; /* R: step */ member

Completed in 31 milliseconds

1234