/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/ |
D | resize_grad.c | 31 size_t in_y = i / param->in_width_; in ResizeNearestNeighborGrad() local 35 …(align_corners) ? (size_t)roundf(in_y * param->height_scale_) : (size_t)floorf(in_y * param->heigh… in ResizeNearestNeighborGrad() 41 size_t in_offset = in_y * (param->in_width_ * channel) + (in_x * channel) + c; in ResizeNearestNeighborGrad() 82 float in_y = (float)h * param->height_scale_; in ResizeBiLinearGrad() local 83 size_t top_y_index = MSMAX((size_t)(floorf(in_y)), (size_t)(0)); in ResizeBiLinearGrad() 84 size_t bottom_y_index = MSMIN((size_t)(ceilf(in_y)), param->out_height_ - 1); in ResizeBiLinearGrad() 85 float y_lerp = in_y - floorf(in_y); in ResizeBiLinearGrad() 122 const float in_y = (float)(h)*param->height_scale_; in ResizeBiLinearGrad() local 123 const size_t top_y_index = MSMAX((size_t)floorf(in_y), 0); in ResizeBiLinearGrad() 124 const size_t bottom_y_index = MSMIN((size_t)ceilf(in_y), out_height - 1); in ResizeBiLinearGrad() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/ |
D | resize_grad.c | 30 size_t in_y = i / param->in_width_; in ResizeNearestNeighborFp16Grad() local 34 …(align_corners) ? (size_t)roundf(in_y * param->height_scale_) : (size_t)floorf(in_y * param->heigh… in ResizeNearestNeighborFp16Grad() 40 size_t in_offset = in_y * (param->in_width_ * channel) + (in_x * channel) + c; in ResizeNearestNeighborFp16Grad() 81 float16_t in_y = (float16_t)h * param->height_scale_; in ResizeBiLinearFp16Grad() local 82 size_t top_y_index = MSMAX((size_t)(floorf(in_y)), (size_t)(0)); in ResizeBiLinearFp16Grad() 83 size_t bottom_y_index = MSMIN((size_t)(ceilf(in_y)), param->out_height_ - 1); in ResizeBiLinearFp16Grad() 84 float16_t y_lerp = in_y - floorf(in_y); in ResizeBiLinearFp16Grad() 119 const float16_t in_y = (float16_t)(h)*param->height_scale_; in ResizeBiLinearFp16Grad() local 120 const size_t top_y_index = MSMAX((size_t)floorf(in_y), 0); in ResizeBiLinearFp16Grad() 121 const size_t bottom_y_index = MSMIN((size_t)ceilf(in_y), out_height - 1); in ResizeBiLinearFp16Grad() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/geometrictransform/ |
D | gstmirror.c | 159 gdouble * in_y) in mirror_map() argument 172 *in_y = y; in mirror_map() 179 *in_y = y; in mirror_map() 183 *in_y = gt->height - 1.0 - y; in mirror_map() 185 *in_y = y; in mirror_map() 190 *in_y = y; in mirror_map() 192 *in_y = gt->height - 1.0 - y; in mirror_map() 200 x, y, *in_x, *in_y); in mirror_map()
|
D | gstgeometrictransform.c | 84 gdouble in_x, in_y; in gst_geometric_transform_generate_map() local 108 if (!klass->map_func (gt, x, y, &in_x, &in_y)) { in gst_geometric_transform_generate_map() 115 ptr[1] = in_y; in gst_geometric_transform_generate_map() 169 guint8 * out_data, gint x, gint y, gdouble in_x, gdouble in_y) in gst_geometric_transform_do_map() argument 180 in_y = CLAMP (in_y, 0, gt->height - 1); in gst_geometric_transform_do_map() 185 in_y = gst_gm_mod_float (in_y, gt->height); in gst_geometric_transform_do_map() 188 if (in_y < 0) in gst_geometric_transform_do_map() 189 in_y += gt->height; in gst_geometric_transform_do_map() 198 gint trunc_y = (gint) in_y; in gst_geometric_transform_do_map() 277 gdouble in_x, in_y; in gst_geometric_transform_transform_frame() local [all …]
|
D | gsttwirl.c | 137 gdouble * in_y) in twirl_map() argument 150 *in_y = y; in twirl_map() 157 *in_y = cgt->precalc_y_center + d * sin (a); in twirl_map() 161 x, y, *in_x, *in_y); in twirl_map()
|
D | gstfisheye.c | 79 gdouble * in_y) in fisheye_map() argument 119 *in_y = 0.5 * (norm_y + 1.0) * height; in fisheye_map() 122 x, y, *in_x, *in_y); in fisheye_map()
|
D | gstpinch.c | 137 gdouble * in_y) in pinch_map() argument 156 *in_y = y; in pinch_map() 167 *in_y = cgt->precalc_y_center + dy; in pinch_map() 171 x, y, *in_x, *in_y); in pinch_map()
|
D | gsttunnel.c | 80 gdouble * in_y) in tunnel_map() argument 109 *in_y = 0.5 * (norm_y) * MAX (width, height) + cgt->y_center * height; in tunnel_map() 112 x, y, *in_x, *in_y); in tunnel_map()
|
D | gstsphere.c | 138 gdouble * in_y) in sphere_map() argument 154 *in_y = y; in sphere_map() 179 *in_y = y - tan (angle2) * z; in sphere_map() 183 x, y, *in_x, *in_y); in sphere_map()
|
D | gstwaterripple.c | 163 gdouble * in_y) in water_ripple_map() argument 176 *in_y = y; in water_ripple_map() 187 *in_y = y + dy * amount; in water_ripple_map() 192 x, y, *in_x, *in_y); in water_ripple_map()
|
D | gstrotate.c | 138 gdouble * in_y) in rotate_map() argument 176 *in_y = yi + ciy; in rotate_map() 179 x, y, *in_x, *in_y); in rotate_map()
|
D | gstbulge.c | 133 gdouble * in_y) in bulge_map() argument 169 *in_y = (0.5 * norm_y + cgt->y_center) * height; in bulge_map() 172 x, y, *in_x, *in_y); in bulge_map()
|
D | gststretch.c | 133 gdouble * in_y) in stretch_map() argument 170 *in_y = (0.5 * norm_y + cgt->y_center) * height; in stretch_map() 173 x, y, *in_x, *in_y); in stretch_map()
|
D | gstdiffuse.c | 173 gdouble * in_y) in diffuse_map() argument 183 *in_y = y + distance * diffuse->cos_table[angle]; in diffuse_map() 186 x, y, *in_x, *in_y); in diffuse_map()
|
D | gstperspective.c | 185 gdouble * in_y) in perspective_map() argument 204 *in_y = yi; in perspective_map() 207 x, y, *in_x, *in_y); in perspective_map()
|
D | gstcircle.c | 165 gdouble * in_y) in circle_map() argument 181 *in_y = in circle_map() 186 x, y, *in_x, *in_y); in circle_map()
|
D | gstsquare.c | 159 gdouble * in_y) in square_map() argument 186 *in_y = 0.5 * (norm_y + 1.0) * height; in square_map() 189 x, y, *in_x, *in_y); in square_map()
|
D | gstkaleidoscope.c | 166 gdouble * in_y) in kaleidoscope_map() argument 189 *in_y = cgt->precalc_y_center + distance * sin (theta); in kaleidoscope_map() 192 x, y, *in_x, *in_y); in kaleidoscope_map()
|
D | gstmarble.c | 211 gdouble * in_y) in marble_map() argument 221 *in_y = y + marble->cos_table[displacement]; in marble_map() 224 x, y, *in_x, *in_y); in marble_map()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/tessellation_shader/ |
D | esextcTessellationShaderUtils.hpp | 52 _ivec4(int in_x, int in_y, int in_z, int in_w) in _ivec4() 55 y = in_y; in _ivec4() 92 _vec2(float in_x, float in_y) in _vec2() 95 y = in_y; in _vec2() 134 _vec4(float in_x, float in_y, float in_z, float in_w) in _vec4() 137 y = in_y; in _vec4()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | resize_bilinear_grad_cpu_kernel.cc | 127 const float in_y = static_cast<float>(h) * height_scale; in LaunchKernel() local 128 … const size_t top_y_index = std::max(static_cast<size_t>(floorf(in_y)), static_cast<size_t>(0)); in LaunchKernel() 129 const size_t bottom_y_index = std::min(static_cast<size_t>(ceilf(in_y)), out_height - 1); in LaunchKernel() 130 const float y_lerp = in_y - floorf(in_y); in LaunchKernel()
|
/third_party/boost/libs/geometry/test/srs/ |
D | proj4.hpp | 129 std::vector<double> in_y, in forward() 133 assert(in_x.size() == in_y.size()); in forward() 134 pj_transform(m_from.get(), m_to.get(), (long)in_x.size(), 1, &in_x[0], &in_y[0], NULL); in forward() 136 out_y = std::move(in_y); in forward()
|
/third_party/freetype/src/base/ |
D | ftcalc.c | 981 FT_Pos in_y, in ft_corner_orientation() argument 991 MUL_INT64( in_y, out_x ) ); in ft_corner_orientation() 1002 ADD_LONG( FT_ABS( in_y ), FT_ABS( out_x ) ) <= 131071L ) in ft_corner_orientation() 1005 FT_Long z2 = MUL_LONG( in_y, out_x ); in ft_corner_orientation() 1022 ft_multo64( (FT_UInt32)in_y, (FT_UInt32)out_x, &z2 ); in ft_corner_orientation() 1047 FT_Pos in_y, in ft_corner_is_flat() argument 1052 FT_Pos ay = in_y + out_y; in ft_corner_is_flat() 1076 d_in = FT_HYPOT( in_x, in_y ); in ft_corner_is_flat()
|
/third_party/flutter/skia/third_party/externals/freetype/src/base/ |
D | ftcalc.c | 982 FT_Pos in_y, in ft_corner_orientation() argument 992 MUL_INT64( in_y, out_x ) ); in ft_corner_orientation() 1003 ADD_LONG( FT_ABS( in_y ), FT_ABS( out_x ) ) <= 131071L ) in ft_corner_orientation() 1006 FT_Long z2 = MUL_LONG( in_y, out_x ); in ft_corner_orientation() 1023 ft_multo64( (FT_UInt32)in_y, (FT_UInt32)out_x, &z2 ); in ft_corner_orientation() 1048 FT_Pos in_y, in ft_corner_is_flat() argument 1053 FT_Pos ay = in_y + out_y; in ft_corner_is_flat() 1077 d_in = FT_HYPOT( in_x, in_y ); in ft_corner_is_flat()
|
/third_party/skia/third_party/externals/freetype/src/base/ |
D | ftcalc.c | 981 FT_Pos in_y, in ft_corner_orientation() argument 991 MUL_INT64( in_y, out_x ) ); in ft_corner_orientation() 1002 ADD_LONG( FT_ABS( in_y ), FT_ABS( out_x ) ) <= 131071L ) in ft_corner_orientation() 1005 FT_Long z2 = MUL_LONG( in_y, out_x ); in ft_corner_orientation() 1022 ft_multo64( (FT_UInt32)in_y, (FT_UInt32)out_x, &z2 ); in ft_corner_orientation() 1047 FT_Pos in_y, in ft_corner_is_flat() argument 1052 FT_Pos ay = in_y + out_y; in ft_corner_is_flat() 1076 d_in = FT_HYPOT( in_x, in_y ); in ft_corner_is_flat()
|