/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | shadows.rscript | 53 int iMin,iMax,chroma; 68 chroma = iMax - iMin; 76 rs = (short)((k1*chroma)/iMax); 83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma)); 86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma)); 88 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma)); 114 // set chroma and min component value m 115 //chroma = ( cv * cs )/k1; 116 //m = cv - chroma; 119 // chroma == 0 <-> cs == 0 --> m=cv [all …]
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | shadows_f.rscript | 53 int iMin,iMax,chroma; 68 chroma = iMax - iMin; 76 rs = (short)((k1*chroma)/iMax); 83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma)); 86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma)); 88 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma)); 114 // set chroma and min component value m 115 //chroma = ( cv * cs )/k1; 116 //m = cv - chroma; 119 // chroma == 0 <-> cs == 0 --> m=cv [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | shadows.rscript | 53 int iMin,iMax,chroma; 68 chroma = iMax - iMin; 76 rs = (short)((k1*chroma)/iMax); 83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma)); 86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma)); 88 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma)); 114 // set chroma and min component value m 115 //chroma = ( cv * cs )/k1; 116 //m = cv - chroma; 119 // chroma == 0 <-> cs == 0 --> m=cv [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | shadows.rscript | 53 int iMin,iMax,chroma; 68 chroma = iMax - iMin; 76 rs = (short)((k1*chroma)/iMax); 83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma)); 86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma)); 88 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma)); 114 // set chroma and min component value m 115 //chroma = ( cv * cs )/k1; 116 //m = cv - chroma; 119 // chroma == 0 <-> cs == 0 --> m=cv [all …]
|
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/ |
D | Shades.java | 54 public static @ColorInt int[] of(float hue, float chroma) { in of() argument 58 shades[0] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 99); in of() 59 shades[1] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 95); in of() 62 shades[i] = ColorUtils.CAMToColor(hue, chroma, lStar); in of()
|
/frameworks/base/core/java/com/android/internal/graphics/cam/ |
D | Cam.java | 115 Cam(float hue, float chroma, float j, float q, float m, float s, float jstar, float astar, in Cam() argument 118 mChroma = chroma; in Cam() 134 public static int getInt(float hue, float chroma, float lstar) { in getInt() argument 135 return getInt(hue, chroma, lstar, Frame.DEFAULT); in getInt() 345 public static int getInt(float hue, float chroma, float lstar, @NonNull Frame frame) { in getInt() argument 393 return HctSolver.solveToInt(hue, chroma, lstar); in getInt() 396 if (chroma < 1.0 || Math.round(lstar) <= 0.0 || Math.round(lstar) >= 100.0) { in getInt() 403 float high = chroma; in getInt() 407 float mid = chroma; in getInt() 461 private static Cam findCamByJ(float hue, float chroma, float lstar) { in findCamByJ() argument [all …]
|
D | HctSolver.java | 606 static int findResultByJ(double hueRadians, double chroma, double y) { in findResultByJ() argument 624 double alpha = chroma == 0.0 || j == 0.0 ? 0.0 : chroma / Math.sqrt(jNormalized); in findResultByJ() 681 public static int solveToInt(double hueDegrees, double chroma, double lstar) { in solveToInt() argument 682 if (chroma < 0.0001 || lstar < 0.0001 || lstar > 99.9999) { in solveToInt() 688 int exactAnswer = findResultByJ(hueRadians, chroma, y); in solveToInt() 718 public static Cam solveToCam(double hueDegrees, double chroma, double lstar) { in solveToCam() argument 719 return Cam.fromInt(solveToInt(hueDegrees, chroma, lstar)); in solveToCam()
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaProfiles.h | 134 chroma_subsampling chroma = CHROMA_SUBSAMPLING_YUV_420, 143 mChromaSubsampling(chroma), in mCodec() 603 chroma_subsampling *chroma, int *bitDepth, hdr_format *hdr);
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 275 chroma_subsampling *chroma, int *bitDepth, hdr_format *hdr) in detectAdvancedVideoProfile() argument 278 *chroma = CHROMA_SUBSAMPLING_YUV_420; in detectAdvancedVideoProfile() 303 *chroma = CHROMA_SUBSAMPLING_YUV_422; in detectAdvancedVideoProfile() 307 *chroma = CHROMA_SUBSAMPLING_YUV_444; in detectAdvancedVideoProfile() 427 chroma_subsampling chroma = CHROMA_SUBSAMPLING_YUV_420; in createVideoCodec() local 438 (video_encoder)codec, profile, &chroma, &bitDepth, &hdr)) { in createVideoCodec() 448 chroma = (chroma_subsampling)chromaTag; in createVideoCodec() 476 atoi(atts[9]) /* frameRate */, profile, chroma, bitDepth, hdr }; in createVideoCodec()
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 365 public static int CAMToColor(float hue, float chroma, float lstar) { in CAMToColor() argument 366 return Cam.getInt(hue, chroma, lstar); in CAMToColor()
|