Home
last modified time | relevance | path

Searched refs:Abs (Results 1 – 25 of 126) sorted by relevance

123456

/external/libyuv/files/unit_test/
Dunit_test.cc94 static_cast<int>((static_cast<double>(Abs(benchmark_width_)) * in LibYUVConvertTest()
95 static_cast<double>(Abs(benchmark_height_)) * in LibYUVConvertTest()
100 static_cast<int>((static_cast<double>(Abs(benchmark_width_)) * in LibYUVConvertTest()
101 static_cast<double>(Abs(benchmark_height_)) * in LibYUVConvertTest()
153 static_cast<int>((static_cast<double>(Abs(benchmark_width_)) * in LibYUVColorTest()
154 static_cast<double>(Abs(benchmark_height_)) * in LibYUVColorTest()
159 static_cast<int>((static_cast<double>(Abs(benchmark_width_)) * in LibYUVColorTest()
160 static_cast<double>(Abs(benchmark_height_)) * in LibYUVColorTest()
212 static_cast<int>((static_cast<double>(Abs(benchmark_width_)) * in LibYUVScaleTest()
213 static_cast<double>(Abs(benchmark_height_)) * in LibYUVScaleTest()
[all …]
Dscale_argb_test.cc41 (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2) * 4LL; in ARGBTestFilter()
42 int src_stride_argb = (b * 2 + Abs(src_width)) * 4; in ARGBTestFilter()
102 int abs_diff = Abs(dst_argb_c[(i * dst_stride_argb) + j] - in ARGBTestFilter()
161 (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2) * 4; in ARGBClipTestFilter()
162 int src_stride_argb = (b * 2 + Abs(src_width)) * 4; in ARGBClipTestFilter()
175 for (i = b; i < (Abs(src_height) + b); ++i) { in ARGBClipTestFilter()
176 for (j = b; j < (Abs(src_width) + b) * 4; ++j) { in ARGBClipTestFilter()
215 int abs_diff = Abs(dst_argb_c[(i * dst_stride_argb) + j] - in ARGBClipTestFilter()
231 #define DX(x, nom, denom) static_cast<int>((Abs(x) / nom) * nom)
278 int diff = ARGBTestFilter(width, height, Abs(benchmark_width_), \
[all …]
Dscale_test.cc38 int src_width_uv = (Abs(src_width) + 1) >> 1; in TestFilter()
39 int src_height_uv = (Abs(src_height) + 1) >> 1; in TestFilter()
41 int64 src_y_plane_size = (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2); in TestFilter()
44 int src_stride_y = b * 2 + Abs(src_width); in TestFilter()
114 int abs_diff = Abs(dst_y_c[(i * dst_stride_y) + j] - in TestFilter()
124 int abs_diff = Abs(dst_u_c[(i * dst_stride_uv) + j] - in TestFilter()
129 abs_diff = Abs(dst_v_c[(i * dst_stride_uv) + j] - in TestFilter()
164 int src_width_uv = (Abs(src_width) + 1) >> 1; in TestFilter_16()
165 int src_height_uv = (Abs(src_height) + 1) >> 1; in TestFilter_16()
167 int64 src_y_plane_size = (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2); in TestFilter_16()
[all …]
Drotate_test.cc39 int src_i420_y_size = src_width * Abs(src_height); in I420TestRotate()
40 int src_i420_uv_size = ((src_width + 1) / 2) * ((Abs(src_height) + 1) / 2); in I420TestRotate()
158 int src_nv12_y_size = src_width * Abs(src_height); in NV12TestRotate()
160 ((src_width + 1) / 2) * ((Abs(src_height) + 1) / 2) * 2; in NV12TestRotate()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dunary_op_test.cc42 auto abs = builder.Abs(arg); in AbsSize0TestHelper()
55 auto abs = builder.Abs(arg); in AbsTestHelper()
75 auto abs = builder.Abs(arg); in SignAbsTestHelper()
96 auto abs = builder.Abs(arg); in AbsTestHelper()
121 auto abs = builder.Abs(arg); in SignAbsTestHelper()
144 auto absi = builder.Abs(argi); in XLA_TEST_F()
146 auto absf = builder.Abs(argf); in XLA_TEST_F()
148 auto absf0 = builder.Abs(argf0); in XLA_TEST_F()
150 auto absc = builder.Abs(argc); in XLA_TEST_F()
193 auto abs = builder.Abs(arg); in XLA_TEST_F()
[all …]
Dreduce_precision_test.cc263 auto abs = builder.Abs(a); in XLA_TEST_F()
292 auto abs = builder.Abs(a); in XLA_TEST_F()
318 auto abs = builder.Abs(a); in XLA_TEST_F()
342 auto abs = builder.Abs(a); in XLA_TEST_F()
367 auto abs = builder.Abs(a); in XLA_TEST_F()
/external/libyuv/files/util/
Dyuvconvert.cc40 static __inline uint32 Abs(int32 v) { in Abs() function
152 dst_width = Abs(image_width); in ParseOptions()
153 dst_height = Abs(image_height); in ParseOptions()
224 int org_size = Abs(image_width) * Abs(image_height) * 4; // ARGB in main()
227 const int y_size = Abs(image_width) * Abs(image_height); in main()
229 ((Abs(image_width) + 1) / 2) * ((Abs(image_height) + 1) / 2); in main()
290 int src_width = Abs(image_width); in main()
291 int src_height = Abs(image_height); in main()
305 TileARGBScale(ch_org, Abs(image_width) * 4, image_width, image_height, in main()
/external/eigen/unsupported/Eigen/src/EulerAngles/
DEulerSystem.h23 struct Abs struct
29 struct Abs<Num, false> argument
37 enum { value = Axis != 0 && Abs<Axis>::value <= 3 };
137 AlphaAxisAbs = internal::Abs<AlphaAxis>::value, /*!< the first rotation axis unsigned */
138 BetaAxisAbs = internal::Abs<BetaAxis>::value, /*!< the second rotation axis unsigned */
139 GammaAxisAbs = internal::Abs<GammaAxis>::value, /*!< the third rotation axis unsigned */
/external/protobuf/src/google/protobuf/stubs/
Dmathutil.h111 static T Abs(const T x) { in Abs() function
154 T relative_margin = static_cast<T>(fraction * Max(Abs(x), Abs(y))); in WithinFractionOrMargin()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dunary_ops.cc44 XLAJIT_MAKE_UNARY(ComplexAbs, b->Abs(x));
51 XLAJIT_MAKE_UNARY(Abs, b->Abs(x));
106 XLAJIT_MAKE_UNARY(IsInf, b->Eq(b->Abs(x),
187 b->Add(b->Abs(x), XlaHelpers::One(b, input_type(0)))));
Dbinary_ops.cc75 auto abs_x = b->Abs(x); in FloorDivImpl()
76 auto abs_y = b->Abs(y); in FloorDivImpl()
161 b->Abs(rhs)))));
179 auto abs = b->Abs(b->Sub(ctx->Input(0), ctx->Input(1))); in Compile()
Dquantize_and_dequantize_op.cc65 xla::ComputationDataHandle m = b->Max(b->Abs(input_min), b->Abs(input_max)); in Compile()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c117 struct match_info Abs; member
154 tokens.Abs.String = src_str + matches[2].rm_so; in init_rc_normal_src()
155 tokens.Abs.Length = match_length(matches, 2); in init_rc_normal_src()
169 if (tokens.Abs.Length > 0) { in init_rc_normal_src()
170 src_reg->Abs = 1; in init_rc_normal_src()
242 src_reg->Negate, src_reg->Abs); in init_rc_normal_src()
/external/libyuv/files/docs/
Dfiltering.md95 *dx = FixedDiv(Abs(src_width), dst_width);
101 if (dst_width <= Abs(src_width)) {
102 *dx = FixedDiv(Abs(src_width), dst_width);
105 *dx = FIXEDDIV1(Abs(src_width), dst_width);
117 if (dst_width <= Abs(src_width)) {
118 *dx = FixedDiv(Abs(src_width), dst_width);
121 *dx = FIXEDDIV1(Abs(src_width), dst_width);
128 *dx = FixedDiv(Abs(src_width), dst_width);
/external/llvm/lib/MC/
DMCAssembler.cpp790 bool Abs = LF.getValue().evaluateKnownAbsolute(Value, Layout); in relaxLEB() local
791 if (!Abs) in relaxLEB()
808 bool Abs = DF.getAddrDelta().evaluateKnownAbsolute(AddrDelta, Layout); in relaxDwarfLineAddr() local
809 assert(Abs && "We created a line delta with an invalid expression"); in relaxDwarfLineAddr()
810 (void) Abs; in relaxDwarfLineAddr()
826 bool Abs = DF.getAddrDelta().evaluateKnownAbsolute(AddrDelta, Layout); in relaxDwarfCallFrameFragment() local
827 assert(Abs && "We created call frame with an invalid expression"); in relaxDwarfCallFrameFragment()
828 (void) Abs; in relaxDwarfCallFrameFragment()
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_optimize.c54 if (outer.Abs) { in chain_srcregs()
55 combine.Abs = 1; in chain_srcregs()
58 combine.Abs = inner.Abs; in chain_srcregs()
167 inst->U.I.SrcReg[0].Abs || in copy_propagate()
387 if (imm < 0.0 && !newsrc.Abs) in constant_folding()
591 if (inst_add->U.I.SrcReg[0].Abs || inst_add->U.I.SrcReg[1].Abs) in peephole_add_presub_add()
666 || inst_add->U.I.SrcReg[1].Abs in peephole_add_presub_inv()
Dradeon_pair_translate.c244 pair->RGB.Arg[i].Abs = inst->SrcReg[i].Abs; in set_pair_instruction()
270 pair->Alpha.Arg[i].Abs = inst->SrcReg[i].Abs; in set_pair_instruction()
Dradeon_program_print.c239 if (src.Abs) in rc_print_src_register()
247 if (src.Abs && !trivial_negate) in rc_print_src_register()
255 if (src.Abs && trivial_negate) in rc_print_src_register()
405 const char* abs = inst->RGB.Arg[arg].Abs ? "|" : ""; in rc_print_pair_instruction()
440 const char* abs = inst->Alpha.Arg[arg].Abs ? "|" : ""; in rc_print_pair_instruction()
/external/libavc/encoder/arm/
Dime_distortion_metrics_a9q.s1003 vabdl.u8 q0, d30, d31 @I Abs diff r1 blk 12
1010 vabdl.u8 q1, d28, d29 @I Abs diff r1 blk 12
1013 vabdl.u8 q2, d26, d27 @I Abs diff r1 blk 12
1015 vabdl.u8 q3, d24, d25 @I Abs diff r1 blk 12
1301 vabal.u8 q0, d30, d28 @I accumulate Abs diff R1
1302 vabal.u8 q1, d31, d29 @I accumulate Abs diff R1
1305 vabal.u8 q0, d26, d24 @I accumulate Abs diff R2
1308 vabal.u8 q1, d27, d25 @I accumulate Abs diff R2
1311 vabal.u8 q0, d22, d20 @I accumulate Abs diff R3
1314 vabal.u8 q1, d23, d21 @I accumulate Abs diff R3
[all …]
/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_from.cc28 static __inline int Abs(int v) { in Abs() function
41 const int dst_y_width = Abs(src_y_width); in I420ToI4xx()
42 const int dst_y_height = Abs(src_y_height); in I420ToI4xx()
73 const int dst_uv_width = (Abs(width) + 1) >> 1; in I420ToI422()
74 const int dst_uv_height = Abs(height); in I420ToI422()
95 const int dst_uv_width = Abs(width); in I420ToI444()
96 const int dst_uv_height = Abs(height); in I420ToI444()
117 const int dst_uv_width = (Abs(width) + 3) >> 2; in I420ToI411()
118 const int dst_uv_height = Abs(height); in I420ToI411()
Dscale.cc26 static __inline int Abs(int v) { in Abs() function
744 src_width = Abs(src_width); in ScalePlaneBox()
813 src_width = Abs(src_width); in ScalePlaneBox_16()
875 src_width = Abs(src_width); in ScalePlaneBilinearDown()
971 src_width = Abs(src_width); in ScalePlaneBilinearDown_16()
1064 src_width = Abs(src_width); in ScalePlaneBilinearUp()
1195 src_width = Abs(src_width); in ScalePlaneBilinearUp_16()
1325 src_width = Abs(src_width); in ScalePlaneSimple()
1357 src_width = Abs(src_width); in ScalePlaneSimple_16()
1412 if (dst_width <= Abs(src_width) && dst_height <= src_height) { in ScalePlane()
[all …]
Dscale_common.cc26 static __inline int Abs(int v) { in Abs() function
1109 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
1115 if (dst_width <= Abs(src_width)) { in ScaleSlope()
1116 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
1119 *dx = FixedDiv1(Abs(src_width), dst_width); in ScaleSlope()
1131 if (dst_width <= Abs(src_width)) { in ScaleSlope()
1132 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
1135 *dx = FixedDiv1(Abs(src_width), dst_width); in ScaleSlope()
1142 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
/external/libyuv/files/source/
Dscale_common.cc26 static __inline int Abs(int v) { in Abs() function
1262 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
1268 if (dst_width <= Abs(src_width)) { in ScaleSlope()
1269 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
1272 *dx = FixedDiv1(Abs(src_width), dst_width); in ScaleSlope()
1284 if (dst_width <= Abs(src_width)) { in ScaleSlope()
1285 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
1288 *dx = FixedDiv1(Abs(src_width), dst_width); in ScaleSlope()
1295 *dx = FixedDiv(Abs(src_width), dst_width); in ScaleSlope()
/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_Abs.pbtxt2 graph_op_name: "Abs"
/external/swiftshader/src/Shader/
DPixelProgram.cpp922 mod.x = Abs(x); in fetchRegister()
923 mod.y = Abs(y); in fetchRegister()
924 mod.z = Abs(z); in fetchRegister()
925 mod.w = Abs(w); in fetchRegister()
928 mod.x = -Abs(x); in fetchRegister()
929 mod.y = -Abs(y); in fetchRegister()
930 mod.z = -Abs(z); in fetchRegister()
931 mod.w = -Abs(w); in fetchRegister()
1246 dst.x = Abs(src.x.yyww - src.x.xxzz) + Abs(src.x.zwzw - src.x.xyxy); in FWIDTH()
1247 dst.y = Abs(src.y.yyww - src.y.xxzz) + Abs(src.y.zwzw - src.y.xyxy); in FWIDTH()
[all …]

123456