/ohos5.0/foundation/multimedia/image_effect/interfaces/inner_api/native/utils/ |
H A D | format_helper.h | 38 static inline uint8_t RGBToY(uint8_t r, uint8_t g, uint8_t b) in RGBToY() 40 int y = (54 * r + 183 * g + 18 * b) >> 8; in RGBToY() local 44 static inline uint8_t RGBToU(uint8_t r, uint8_t g, uint8_t b) in RGBToU() 50 static inline uint8_t RGBToV(uint8_t r, uint8_t g, uint8_t b) in RGBToV() 56 static inline uint8_t YuvToR(uint8_t y, uint8_t u, uint8_t v) in YuvToR() 62 static inline uint8_t YuvToG(uint8_t y, uint8_t u, uint8_t v) in YuvToG() 68 static inline uint8_t YuvToB(uint8_t y, uint8_t u, uint8_t v) in YuvToB() 70 int b = (y + ((475 * (u - 128)) >> 8)); in YuvToB() local
|
/ohos5.0/commonlibrary/c_utils/base/include/ |
H A D | pubdef.h | 29 #define B_TO_M(b) ((b) / 1024 / 1024) argument 33 #define B_TO_K(b) ((b) / 1024) argument 51 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) argument 53 #define MIN(x, y) (((x) < (y)) ? (x) : (y)) argument
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
H A D | ecc_asy_key_generator_openssl.c | 59 static HcfResult CheckEc224CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckEc224CurveId() 80 static HcfResult CheckEc256CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckEc256CurveId() 101 static HcfResult CheckEc384CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckEc384CurveId() 122 static HcfResult CheckEc521CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckEc521CurveId() 143 static HcfResult CheckBP160r1CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckBP160r1CurveId() 164 static HcfResult CheckBP160t1CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckBP160t1CurveId() 185 static HcfResult CheckBP192r1CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckBP192r1CurveId() 206 static HcfResult CheckBP192t1CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckBP192t1CurveId() 227 static HcfResult CheckBP224r1CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckBP224r1CurveId() 248 static HcfResult CheckBP224t1CurveId(BIGNUM *p, BIGNUM *b, BIGNUM *x, BIGNUM *y) in CheckBP224t1CurveId() [all …]
|
H A D | ecc_common_param_spec_generator_openssl.c | 64 BIGNUM *y = OpensslBnNew(); in BuildCommonParamPart() local 99 BIGNUM *b = OpensslBnNew(); in BuildCommonParamGFp() local 284 EC_POINT **ecPoint, BIGNUM **x, BIGNUM **y) in InitEccPoint() 337 static HcfResult ConvertBigNumToEccPoint(const BIGNUM *x, const BIGNUM *y, in ConvertBigNumToEccPoint() 396 BIGNUM *y = NULL; in HcfEngineConvertPoint() local
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/include/ |
H A D | platform_assert.h | 49 #define CHECK_EQ(a, b) CHECK((a) == (b)) argument 50 #define CHECK_NE(a, b) CHECK((a) != (b)) argument 51 #define CHECK_GE(a, b) CHECK((a) >= (b)) argument 52 #define CHECK_GT(a, b) CHECK((a) > (b)) argument 53 #define CHECK_LE(a, b) CHECK((a) <= (b)) argument 54 #define CHECK_LT(a, b) CHECK((a) < (b)) argument 71 #define CHECK_EQ_RETURN(a, b, ret) CHECK_AND_RETURN((a) == (b), ret) argument 72 #define CHECK_NE_RETURN(a, b, ret) CHECK_AND_RETURN((a) != (b), ret) argument 74 #define CHECK_GT_RETURN(a, b, ret) CHECK_AND_RETURN((a) > (b), ret) argument 76 #define CHECK_LT_RETURN(a, b, ret) CHECK_AND_RETURN((a) < (b), ret) argument [all …]
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | platform_assert.h | 27 #define CHECK_EQ(a, b) CHECK((a) == (b)) argument 28 #define CHECK_NE(a, b) CHECK((a) != (b)) argument 29 #define CHECK_GE(a, b) CHECK((a) >= (b)) argument 30 #define CHECK_GT(a, b) CHECK((a) > (b)) argument 31 #define CHECK_LE(a, b) CHECK((a) <= (b)) argument 32 #define CHECK_LT(a, b) CHECK((a) < (b)) argument 49 #define CHECK_EQ_RETURN(a, b, ret) CHECK_AND_RETURN((a) == (b), ret) argument 50 #define CHECK_NE_RETURN(a, b, ret) CHECK_AND_RETURN((a) != (b), ret) argument 52 #define CHECK_GT_RETURN(a, b, ret) CHECK_AND_RETURN((a) > (b), ret) argument 54 #define CHECK_LT_RETURN(a, b, ret) CHECK_AND_RETURN((a) < (b), ret) argument [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/ |
H A D | Scene.js | 23 viewport(x, y, width, height) { argument 45 clear(r = 0, g = 0, b = 0, a = 1) { argument
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | trans_affine.h | 200 static TransAffine TransAffineScaling(float x, float y) in TransAffineScaling() 219 static TransAffine TransAffineTranslation(float x, float y) in TransAffineTranslation() 225 inline void TransAffine::Transform(float* x, float* y) const in Transform() 232 inline void TransAffine::InverseTransform(float* x, float* y) const in InverseTransform() 236 float b = (*y - data_[5]) * reciprocal; in InverseTransform() local 284 inline void TransAffine::ScalingAbs(float* x, float* y) const in ScalingAbs()
|
H A D | graphic_math.h | 46 #define MATH_MAX(a, b) ((a) > (b) ? (a) : (b)) argument 50 #define MATH_MIN(a, b) ((a) < (b) ? (a) : (b)) argument 58 #define MATH_MINUS(a, b) ((a) < (b) ? ((b) - (a)) : ((a) - (b))) argument 66 #define MATH_FLT_EQUAL(a, b) (MATH_ABS((a) - (b)) <= UI_FLT_EPSILON) argument 119 Vector2(T x, T y) in Vector2() 242 Vector3(T x, T y, T z) in Vector3() 298 Vector4(T x, T y, T z, T w) in Vector4() 525 T y = data_[1] * ((data_[3] * data_[8]) - (data_[5] * data_[6])); in Determinant() local
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | path_test.cpp | 60 float b = t + rand.nextULessThan(bitmapHeight_); in OnTestPerformance() local 74 float y; in OnTestPerformance() local 92 float y; in OnTestPerformance() local 110 float y; in OnTestPerformance() local 131 float y; in OnTestPerformance() local 166 float y = rand.nextUScalar1() * 300; // 300 用于生成随机坐标 in OnTestPerformance() local 219 float y = rand.nextUScalar1() * 300; // 300 用于生成随机坐标 in OnTestPerformance() local 291 int b = ((t + 100) > bitmapHeight_) ? bitmapHeight_ : (t + 100); // 100 用于高度计算 in OnTestPerformance() local 317 int b = ((t + 100) > bitmapHeight_) ? bitmapHeight_ : (t + 100); // 100 用于高度计算 in OnTestPerformance() local 449 float b; in OnTestPerformance() local [all …]
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/ |
H A D | cpu_brightness_algo.cpp | 82 for (uint32_t y = 0; y < height; ++y) { in OnApplyRGBA8888() local 135 uint8_t y = srcNV21[y_index]; in OnApplyYUVNV21() local 140 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV21() local 194 uint8_t y = srcNV12[y_index]; in OnApplyYUVNV12() local 199 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV12() local
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsgpuoverdrawcanvaslistener_fuzzer/ |
H A D | rsgpuoverdrawcanvaslistener_fuzzer.cpp | 64 float y = GetData<float>(); in DoDrawPoint() local 77 float y = GetData<float>(); in DoDrawLine() local 81 float b = GetData<float>(); in DoDrawLine() local 214 float y = GetData<float>(); in DoDrawCircle() local 254 float y = GetData<float>(); in DoDrawShadow() local 267 uint32_t b = GetData<uint32_t>(); in DoDrawShadow() local 303 float y = GetData<float>(); in DoDrawBitmap() local 318 float y = GetData<float>(); in DoDrawImage() local 380 uint32_t b = GetData<uint32_t>(); in DoAttachPen() local
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/ |
H A D | cpu_contrast_algo.cpp | 72 for (uint32_t y = 0; y < height; ++y) { in OnApplyRGBA8888() local 124 uint8_t y = srcNV21[y_index]; in OnApplyYUVNV21() local 129 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV21() local 181 uint8_t y = srcNV12[y_index]; in OnApplyYUVNV12() local 186 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV12() local
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/transform/ |
H A D | transform_component.cpp | 33 void TransformComponent::Translate(const Dimension& x, const Dimension& y, const AnimationOption& a… in Translate() 39 …const Dimension& x, const Dimension& y, const Dimension& z, const AnimationOption& animationOption) in Translate() 52 void TransformComponent::TranslateY(const Dimension& y, const AnimationOption& animationOption) in TranslateY() 68 void TransformComponent::Scale(float x, float y, const AnimationOption& animationOption) in Scale() 73 void TransformComponent::Scale(float x, float y, float z, const AnimationOption& animationOption) in Scale() 86 void TransformComponent::ScaleY(float y, const AnimationOption& animationOption) in ScaleY() 148 float a, float b, float c, float d, float dx, float dy, const AnimationOption& animationOption) in Matrix() 171 void TransformComponent::SetRotateTransition(TransitionType type, double x, double y, double z, dou… in SetRotateTransition() 194 TransitionType type, const Dimension& x, const Dimension& y, const Dimension& z) in SetTranslateTransition() 216 void TransformComponent::SetScaleTransition(TransitionType type, float x, float y, float z) in SetScaleTransition()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscpuoverdrawcanvaslistener_fuzzer/ |
H A D | rscpuoverdrawcanvaslistener_fuzzer.cpp | 63 float y = GetData<float>(); in DoDrawPoint() local 76 float y = GetData<float>(); in DoDrawLine() local 80 float b = GetData<float>(); in DoDrawLine() local 213 float y = GetData<float>(); in DoDrawCircle() local 253 float y = GetData<float>(); in DoDrawShadow() local 266 uint32_t b = GetData<uint32_t>(); in DoDrawShadow() local 302 float y = GetData<float>(); in DoDrawTextBlob() local 315 float y = GetData<float>(); in DoDrawBitmap() local 330 float y = GetData<float>(); in DoDrawImage() local
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_common.cpp | 96 unsigned b = ((color >> 3) & 0x1F); in color_to_565() local 126 uint8_t* DrawBitmapGetAddr8(OH_Drawing_Bitmap* bitmap, int x, int y) in DrawBitmapGetAddr8() 135 uint16_t* DrawBitmapGetAddr16(OH_Drawing_Bitmap* bitmap, int x, int y) in DrawBitmapGetAddr16() 144 uint32_t* DrawBitmapGetAddr32(OH_Drawing_Bitmap* bitmap, int x, int y) in DrawBitmapGetAddr32() 153 void DrawPathGetBound(DrawRect& r, float x, float y) in DrawPathGetBound()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_vector4.h | 96 Quaternion(float x, float y, float z, float w) : Vector4f(x, y, z, w) {} in Quaternion() 127 Vector4<T>::Vector4(T x, T y, T z, T w) in Vector4() 241 void Vector4<T>::Min(const Vector4<T>& a, const Vector4<T>& b, Vector4<T>& result) in Min() 253 void Vector4<T>::Max(const Vector4<T>& a, const Vector4<T>& b, Vector4<T>& result) in Max() 302 void Vector4<T>::SetValues(T x, T y, T z, T w) in SetValues()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc_slr.cpp | 92 bool SLRCheck(const SLRMat &src, const SLRMat &dst, const SLRWeightMat &x, const SLRWeightMat &y) in SLRCheck() 116 int y; member 120 const SLRWeightMat &y) in SLRBoxCheck() 161 …nst SLRSliceKey &key, const SLRMat &src, SLRMat &dst, const SLRWeightMat &x, const SLRWeightMat &y) in SLRBox() 197 …uint32_t r = SLRCast(rgba[0]), g = SLRCast(rgba[1]), b = SLRCast(rgba[2]), a = SLRCast(rgba[3]); /… in SLRBox() local 201 void SLRProc::Serial(const SLRMat &src, SLRMat &dst, const SLRWeightMat &x, const SLRWeightMat &y) in Serial() 218 const SLRWeightMat &x, const SLRWeightMat &y) in SLRSubtask() 231 void SLRProc::Parallel(const SLRMat &src, SLRMat &dst, const SLRWeightMat &x, const SLRWeightMat &y) in Parallel()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_matrix44.cpp | 56 void SkiaMatrix44::Multiply(const Matrix44& a, const Matrix44& b) in Multiply() 63 void SkiaMatrix44::SetCol(int column, scalar x, scalar y, scalar z, scalar w) in SetCol()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_particle_noise_field.cpp | 158 float PerlinNoise2D::Lerp(float t, float a, float b) in Lerp() 164 float PerlinNoise2D::Grad(int hash, float x, float y) in Grad() 196 float PerlinNoise2D::Noise(float x, float y) in Noise() 228 Vector2f PerlinNoise2D::Curl(float x, float y) in Curl()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/ |
H A D | matrix.h | 26 float y = 0.0f; member 71 static inline double MulAddMul(const float a, const float b, const float c, const float d) in MulAddMul() 76 static inline double MulSubMul(const float a, const float b, const float c, const float d) in MulSubMul()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/mock/base/ |
H A D | securectype.h | 84 #define SECUREC_ATTRIBUTE(x, y) __attribute__((format(printf, (x), (y)))) argument 86 #define SECUREC_ATTRIBUTE(x, y) argument 169 #define SECUREC_TWO_MIN(a, b) ((a) < (b) ? (a) : (b)) argument
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | native_image.cpp | 47 std::vector<uint8_t> y; member 54 static inline void DataSwap(uint8_t* a, uint8_t* b, bool flip) in DataSwap() 138 …NativeComponent* y = CreateComponent(int32_t(ComponentType::YUV_Y), yuv.ySize, width, NUM_1, nullp… in SplitYUV422SPComponent() local 184 auto y = GetComponent(int32_t(ComponentType::YUV_Y)); in CombineYUVComponents() local
|
/ohos5.0/base/security/crypto_framework/interfaces/innerkits/algorithm_parameter/ |
H A D | detailed_ecc_key_params.h | 37 HcfBigInteger y; member 44 HcfBigInteger b; member
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/ |
H A D | color_picker.cpp | 122 int y = 0; in GetMainColor() local 209 uint32_t b = GetARGB32ColorB(color); in RGB2GRAY() local 238 uint32_t b = GetARGB32ColorB(color); in CalcRelaticeLuminance() local 465 double y = basicS + basicV; in AdjustToBasicColor() local 666 double r, g, b; in RGB2HSV() local 741 uint32_t r, g, b; in HSVtoRGB() local
|