Home
last modified time | relevance | path

Searched refs:UNSIGHED_CHAR_MAX (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/multimedia/image_effect/interfaces/inner_api/native/utils/
H A Dformat_helper.h22 #define UNSIGHED_CHAR_MAX 255 macro
41 return Clip(y, 0, UNSIGHED_CHAR_MAX); in RGBToY()
47 return Clip(u, 0, UNSIGHED_CHAR_MAX); in RGBToU()
53 return Clip(v, 0, UNSIGHED_CHAR_MAX); in RGBToV()
59 return Clip(r, 0, UNSIGHED_CHAR_MAX); in YuvToR()
65 return Clip(g, 0, UNSIGHED_CHAR_MAX); in YuvToG()
71 return Clip(b, 0, UNSIGHED_CHAR_MAX); in YuvToB()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/
H A Dcpu_brightness_algo.cpp72 float current = CommonUtils::Clip(1.f - (float)(idx) / UNSIGHED_CHAR_MAX, 0, 1) + eps; in OnApplyRGBA8888()
75 lut[idx] = (unsigned char)(current * UNSIGHED_CHAR_MAX); in OnApplyRGBA8888()
120 float current = CommonUtils::Clip(1.f - (float)(idx) / UNSIGHED_CHAR_MAX, 0, 1) + eps; in OnApplyYUVNV21()
123 lut[idx] = (unsigned char)(current * UNSIGHED_CHAR_MAX); in OnApplyYUVNV21()
179 float current = CommonUtils::Clip(1.f - (float)(i) / UNSIGHED_CHAR_MAX, 0, 1) + eps; in OnApplyYUVNV12()
182 lut[i] = (unsigned char)(current * UNSIGHED_CHAR_MAX); in OnApplyYUVNV12()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/
H A Dcpu_contrast_algo.cpp62 float current = (float)idx / UNSIGHED_CHAR_MAX; in OnApplyRGBA8888()
65 lut[idx] = (unsigned char)(current * UNSIGHED_CHAR_MAX); in OnApplyRGBA8888()
109 float current = (float)(i) / UNSIGHED_CHAR_MAX; in OnApplyYUVNV21()
112 lut[i] = (unsigned char)(current * UNSIGHED_CHAR_MAX); in OnApplyYUVNV21()
166 float current = (float)(idx) / UNSIGHED_CHAR_MAX; in OnApplyYUVNV12()
169 lut[idx] = (unsigned char)(current * UNSIGHED_CHAR_MAX); in OnApplyYUVNV12()