/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/ |
D | scale_fp32.c | 32 int in_offset = axis_offset + in_index; in ScaleInner() local 33 MS_FLOAT32X8 data = MS_LD256_F32(in_data + in_offset); in ScaleInner() 35 MS_ST256_F32(out_data + in_offset, result); in ScaleInner() 42 int in_offset = axis_offset + in_index; in ScaleInner() local 43 MS_FLOAT32X4 data = MS_LDQ_F32(in_data + in_offset); in ScaleInner() 45 MS_STQ_F32(out_data + in_offset, result); in ScaleInner() 49 int in_offset = axis_offset + in_index; in ScaleInner() local 50 out_data[in_offset] = in_data[in_offset] * scale[i] + offset[i]; in ScaleInner() 63 int in_offset = out_offset + index; in ScaleAxis() local 66 MS_FLOAT32X8 data = MS_LD256_F32(in_data + in_offset); in ScaleAxis() [all …]
|
D | strided_slice_fp32.c | 91 … int32_t in_offset = dim0 * dim_offset[0] + dim1 * dim_offset[1] + dim2 * dim_offset[2] + in DoStridedSliceIntFp64Bool() local 95 *((int32_t *)out_data + out_offset) = *((int32_t *)in_data + in_offset); in DoStridedSliceIntFp64Bool() 97 *((int8_t *)out_data + out_offset) = *((int8_t *)in_data + in_offset); in DoStridedSliceIntFp64Bool() 99 *((bool *)out_data + out_offset) = *((bool *)in_data + in_offset); in DoStridedSliceIntFp64Bool() 101 *((double *)out_data + out_offset) = *((double *)in_data + in_offset); in DoStridedSliceIntFp64Bool() 153 … int32_t in_offset = dim0 * dim_offset[0] + dim1 * dim_offset[1] + dim2 * dim_offset[2] + in DoStridedSlice() local 157 *((float *)out_data + out_offset) = *((float *)in_data + in_offset); in DoStridedSlice() 160 *((float16_t *)out_data + out_offset) = *((float16_t *)in_data + in_offset); in DoStridedSlice() 178 size_t in_offset) { in FastStride() argument 180 const uint8_t *input_ptr = input + i * in_offset; in FastStride()
|
D | crop_fp32.c | 64 size_t in_offset = (l + offset_pad[2]) * in_stride2 + in_offset1; in Crop4D() local 65 memcpy(output + out_offset, input + in_offset, copy_size); in Crop4D() 90 size_t in_offset = dim1_offset + k * in_dim2_stride; in Crop4DNoParallel() local 91 memcpy(output + out_offset, input + in_offset, copy_size); in Crop4DNoParallel()
|
D | gatherNd_fp32.c | 21 int GatherNd(const float *input, float *output, const int *in_offset, int area, int count) { in GatherNd() argument 24 (void)memcpy(output + area * i, input + in_offset[i], (size_t)(area) * sizeof(float)); in GatherNd()
|
D | gatherNd_fp32.h | 30 int GatherNd(const float *input, float *output, const int *in_offset, int area, int count);
|
D | strided_slice_fp32.h | 28 size_t in_offset);
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/ |
D | scale_fp16.c | 28 int in_offset = axis_offset + in_index; in Fp16ScaleInner() local 29 float16x8_t data = vld1q_f16(in_data + in_offset); in Fp16ScaleInner() 34 vst1q_f16(out_data + in_offset, result); in Fp16ScaleInner() 38 int in_offset = axis_offset + in_index; in Fp16ScaleInner() local 39 out_data[in_offset] = in_data[in_offset] * scale[i] + offset[i]; in Fp16ScaleInner() 52 int in_offset = out_offset + index; in Fp16ScaleAxis() local 53 float16x8_t data = vld1q_f16(in_data + in_offset); in Fp16ScaleAxis() 57 vst1q_f16(out_data + in_offset, result); in Fp16ScaleAxis() 61 int in_offset = out_offset + index; in Fp16ScaleAxis() local 62 out_data[in_offset] = in_data[in_offset] * scale[index] + offset[index]; in Fp16ScaleAxis() [all …]
|
D | pooling_fp16.c | 158 int in_offset = in_channel_offset + ((in_h_index + h) * in_w + in_w_index + w) * channel; in MaxPoolingC8Fp16() local 160 tmp_max = vmaxq_f16(tmp_max, vld1q_f16(input_ptr + in_offset)); in MaxPoolingC8Fp16() 163 tmp_max[k] = fmax(tmp_max[k], *(input_ptr + in_offset + k)); in MaxPoolingC8Fp16() 205 int in_offset = in_channel_offset + ((in_h_index + h) * in_w + in_w_index + w) * channel; in MaxPoolingC4Fp16() local 207 tmp_max = vmax_f16(tmp_max, vld1_f16(input_ptr + in_offset)); in MaxPoolingC4Fp16() 210 tmp_max[k] = fmax(tmp_max[k], *(input_ptr + in_offset + k)); in MaxPoolingC4Fp16() 243 int in_offset = in_channel_offset + ((in_h_index + h) * in_w + in_w_index + w) * channel; in MaxPoolingC1Fp16() local 244 tmp_max = fmax(tmp_max, *(input_ptr + in_offset)); in MaxPoolingC1Fp16()
|
D | conv_fp16.c | 48 int in_offset = b * conv_param->input_channel_ * conv_param->input_h_ * conv_param->input_w_; in ConvFp16() local 53 Im2ColPackUnitFp16(input_data + in_offset, conv_param, packed_input, real_cal_row, i); in ConvFp16() 90 int in_offset = b * conv_param->input_channel_ * conv_param->input_h_ * conv_param->input_w_; in ConvOutNc8hw8Fp16() local 94 Im2ColPackUnitFp16(input_data + in_offset, conv_param, packed_input, real_in_row, i * tile_n); in ConvOutNc8hw8Fp16()
|
/third_party/gstreamer/gstplugins_bad/gst/mpegpsmux/ |
D | mpegpsmux_h264.c | 89 gsize in_offset; in mpegpsmux_prepare_h264() local 157 in_offset = 0; in mpegpsmux_prepare_h264() 158 while (in_offset < map.size) { in mpegpsmux_prepare_h264() 163 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 166 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 169 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 176 in_offset += nal_length_size; in mpegpsmux_prepare_h264() 180 gst_byte_writer_put_data (&bw, map.data + in_offset, in mpegpsmux_prepare_h264() 181 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 182 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/third_party/gstreamer/gstplugins_base/gst/audiomixer/ |
D | gstaudiomixer.c | 213 GstAudioAggregatorPad * aaggpad, GstBuffer * inbuf, guint in_offset, 289 GstAudioAggregatorPad * aaggpad, GstBuffer * inbuf, guint in_offset, in gst_audiomixer_aggregate_one_buffer() argument 314 num_frames * bpf, out_offset * bpf, in_offset * bpf); in gst_audiomixer_aggregate_one_buffer() 321 (gpointer) (inmap.data + in_offset * bpf), in gst_audiomixer_aggregate_one_buffer() 326 (gpointer) (inmap.data + in_offset * bpf), in gst_audiomixer_aggregate_one_buffer() 331 (gpointer) (inmap.data + in_offset * bpf), in gst_audiomixer_aggregate_one_buffer() 336 (gpointer) (inmap.data + in_offset * bpf), in gst_audiomixer_aggregate_one_buffer() 341 (gpointer) (inmap.data + in_offset * bpf), in gst_audiomixer_aggregate_one_buffer() 346 (gpointer) (inmap.data + in_offset * bpf), in gst_audiomixer_aggregate_one_buffer() 351 (gpointer) (inmap.data + in_offset * bpf), in gst_audiomixer_aggregate_one_buffer() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | pooling_int8.c | 62 … int in_offset = in_channel_offset + ((in_h_index + h) * in_w + in_w_index + w) * channel; in AvgPoolingInt8() local 63 tmp_avg += *(input_ptr + in_offset); in AvgPoolingInt8() 139 int in_offset = in_channel_offset + input_stride + (h * in_w + w) * channel; in AvgPoolingOptInt8() local 141 int8x16_t in_ptr = vld1q_s8(input_ptr + in_offset); in AvgPoolingOptInt8() 150 tmp_avg[k] += input_ptr[in_offset + k]; in AvgPoolingOptInt8() 211 int in_offset = in_channel_offset + input_stride + (h * in_w + w) * channel; in AvgPoolingOptInt8() local 213 int8x8_t in_ptr = vld1_s8(input_ptr + in_offset); in AvgPoolingOptInt8() 218 tmp_avg[k] += input_ptr[in_offset + k]; in AvgPoolingOptInt8() 261 int in_offset = in_channel_offset + input_stride + (h * in_w + w) * channel; in AvgPoolingOptInt8() local 262 tmp_avg += input_ptr[in_offset]; in AvgPoolingOptInt8() [all …]
|
D | batch_to_space_int8.c | 42 size_t in_offset = in_stride_n * (bh * stride_h + bw * out_n + n) + w_offset + h_offset; in BatchToSpaceNoCropForNHWCInt8() local 44 int32_t output_tmp = round(input[in_offset + c] * scale + bias) + output_zp; in BatchToSpaceNoCropForNHWCInt8() 97 size_t in_offset = in_stride_n * (bh * stride_h + bw * out_n + n) + w_offset + h_offset; in BatchToSpaceForNHWCInt8() local 99 int32_t output_tmp = round(input[in_offset + c] * scale + bias) + output_zp; in BatchToSpaceForNHWCInt8()
|
D | gatherNd_int8.c | 21 int GatherNdInt8(int8_t *input, int8_t *output, const int *in_offset, int area, int count, GatherQu… in GatherNdInt8() argument 27 int32_t tmp = round(alpha * (input[in_offset[i] + j] - z1)) + z2; in GatherNdInt8()
|
D | slice_int8.c | 71 size_t in_offset = (w + param->begin_[6]) * in_stride[6] + in_offset5; in SliceInt8() local 73 memcpy(output + out_offset, input + in_offset, unit_size); in SliceInt8() 77 … input[in_offset + c] - input_zp, param->quant_arg_.multiplier_.multiplier_, in SliceInt8()
|
D | depth_to_space_int8.c | 40 size_t in_offset = in_offset_w + l * block_size * param->out_stride_dim2_; in DepthToSpaceForNHWCInt8() local 42 int32_t output_tmp = round(input[in_offset + m] * scale + bias) + output_zp; in DepthToSpaceForNHWCInt8()
|
D | resize_int8.c | 176 int in_offset = Offset(input_shape, batch, input_y, input_x, 0); in ResizeNearestNeighborInt8Simple() local 178 memcpy(output_data + out_offset, input_data + in_offset, c * sizeof(int8_t)); in ResizeNearestNeighborInt8Simple() 217 int in_offset = Offset(input_shape, batch, input_y, input_x, c); in ResizeNearestNeighborInt8() local 221 input_data[in_offset] - quant_in->zp_, multiplier->multiplier_, in ResizeNearestNeighborInt8()
|
D | gatherNd_int8.h | 26 int GatherNdInt8(int8_t *in_data, int8_t *out_data, const int *in_offset, int area, int count, Gath…
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/ |
D | resize_grad.c | 41 size_t in_offset = in_y * (param->in_width_ * channel) + (in_x * channel) + c; in ResizeNearestNeighborGrad() local 42 out_addr[out_offset] += in_addr[in_offset]; in ResizeNearestNeighborGrad() 94 size_t in_offset = h * (param->in_width_ * channel) + (w * channel) + c; in ResizeBiLinearGrad() local 102 …out_addr[out_offset_top_y_left_x] += in_addr[in_offset] * (float)(inverse_y_lerp * inverse_x_lerp); in ResizeBiLinearGrad() 103 … out_addr[out_offset_top_y_right_x] += in_addr[in_offset] * (float)(inverse_y_lerp * x_lerp); in ResizeBiLinearGrad() 104 … out_addr[out_offset_bottom_y_left_x] += in_addr[in_offset] * (float)(y_lerp * inverse_x_lerp); in ResizeBiLinearGrad() 105 out_addr[out_offset_bottom_y_right_x] += in_addr[in_offset] * (float)(y_lerp * x_lerp); in ResizeBiLinearGrad()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/ |
D | resize_grad.c | 40 size_t in_offset = in_y * (param->in_width_ * channel) + (in_x * channel) + c; in ResizeNearestNeighborFp16Grad() local 41 out_addr[out_offset] += in_addr[in_offset]; in ResizeNearestNeighborFp16Grad() 93 size_t in_offset = h * (param->in_width_ * channel) + (w * channel) + c; in ResizeBiLinearFp16Grad() local 101 …out_addr[out_offset_top_y_left_x] += in_addr[in_offset] * (float16_t)(inverse_y_lerp * inverse_x_l… in ResizeBiLinearFp16Grad() 102 … out_addr[out_offset_top_y_right_x] += in_addr[in_offset] * (float16_t)(inverse_y_lerp * x_lerp); in ResizeBiLinearFp16Grad() 103 … out_addr[out_offset_bottom_y_left_x] += in_addr[in_offset] * (float16_t)(y_lerp * inverse_x_lerp); in ResizeBiLinearFp16Grad() 104 … out_addr[out_offset_bottom_y_right_x] += in_addr[in_offset] * (float16_t)(y_lerp * x_lerp); in ResizeBiLinearFp16Grad()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/ |
D | batch_to_space_base.c | 38 int in_offset = in_stride_n * (bh * stride_h + bw * out_n + n) + w_offset + h_offset; in BatchToSpaceNoCropForNHWC() local 39 … memcpy((int8_t *)output + output_offset, (int8_t *)input + in_offset * data_size, copy_size); in BatchToSpaceNoCropForNHWC() 87 int in_offset = in_stride_n * (bh * stride_h + bw * out_n + n) + w_offset + h_offset; in BatchToSpaceForNHWC() local 88 … memcpy((int8_t *)output + output_offset, (int8_t *)input + in_offset * data_size, copy_size); in BatchToSpaceForNHWC()
|
D | unstack_base.c | 28 int in_offset = i * para->axis_dim_ * para->after_dims_ + j * para->after_dims_; in Unstack() local 29 …(void)memcpy(out_addr + out_offset * data_size, in_addr + in_offset * data_size, para->after_dims_… in Unstack()
|
D | depth_to_space_base.c | 36 … int in_offset = (in_offset_w + l * block_size * param->out_stride_dim2_) * param->data_type_size_; in DepthToSpaceForNHWC() local 37 memcpy((int8_t *)output + out_offset, (int8_t *)input + in_offset, copy_size); in DepthToSpaceForNHWC()
|
/third_party/gstreamer/gstplugins_base/gst/audiorate/ |
D | gstaudiorate.c | 452 guint64 in_offset, in_offset_end, in_samples; in gst_audio_rate_chain() local 517 in_offset = gst_util_uint64_scale_int_round (in_time, rate, GST_SECOND); in gst_audio_rate_chain() 518 in_offset_end = in_offset + in_samples; in gst_audio_rate_chain() 526 in_size, in_offset, in_offset_end, audiorate->next_offset, in gst_audio_rate_chain() 545 if (in_offset > audiorate->next_offset) { in gst_audio_rate_chain() 553 fillsamples = in_offset - audiorate->next_offset; in gst_audio_rate_chain() 612 } else if (in_offset < audiorate->next_offset) { in gst_audio_rate_chain() 634 truncsamples = audiorate->next_offset - in_offset; in gst_audio_rate_chain()
|
/third_party/ffmpeg/tests/api/ |
D | api-flac-test.c | 114 int in_offset = 0, out_offset = 0; in run_test() local 169 memcpy(raw_in + in_offset, in_frame->data[0], in_frame_bytes); in run_test() 170 in_offset += in_frame_bytes; in run_test()
|