/third_party/skia/gm/ |
H A D | hsl.cpp | 90 static void hue(float dr, float dg, float db, in hue() argument 96 set_sat(&R,&G,&B, sat(dr,dg,db)); in hue() 97 set_lum(&R,&G,&B, lum(dr,dg,db)); in hue() 103 static void saturation(float dr, float dg, float db, in saturation() argument 107 G = dg, in saturation() 110 set_lum(&R,&G,&B, lum( dr, dg, db)); // This may seem redundant, but it is not. in saturation() 116 static void color(float dr, float dg, float db, in color() argument 122 set_lum(&R,&G,&B, lum(dr,dg,db)); in color() 128 static void luminosity(float dr, float dg, float db, in luminosity() argument 132 G = dg, in luminosity() [all...] |
/third_party/skia/src/opts/ |
H A D | SkRasterPipeline_opts.h | 1075 F dr,dg,db,da; member 1114 F& r, F& g, F& b, F& a, F& dr, F& dg, F& db, F& da); \ 1118 params->dr, params->dg, params->db, params->da); \ 1123 F& r, F& g, F& b, F& a, F& dr, F& dg, F& db, F& da) 1127 F& r, F& g, F& b, F& a, F& dr, F& dg, F& db, F& da); \ 1129 F r, F g, F b, F a, F dr, F dg, F db, F da) { \ 1130 name##_k(Ctx{program},dx,dy,tail, r,g,b,a, dr,dg,db,da); \ 1132 next(tail,program,dx,dy, r,g,b,a, dr,dg,db,da); \ 1135 F& r, F& g, F& b, F& a, F& dr, F& dg, F& db, F& da) 1291 dr = dg [all...] |
/third_party/backends/backend/ |
H A D | pieusb_specific.c | 1899 double dg, dgi; in sanei_pieusb_set_gain_offset() local 1903 dg = 3.00; in sanei_pieusb_set_gain_offset() 1905 if (dgi < dg) dg = dgi; in sanei_pieusb_set_gain_offset() 1907 if (dgi < dg) dg = dgi; in sanei_pieusb_set_gain_offset() 1909 if (dgi < dg) dg = dgi; in sanei_pieusb_set_gain_offset() 1910 updateGain2(scanner, 0, dg); in sanei_pieusb_set_gain_offset() 1911 updateGain2(scanner, 1, dg); in sanei_pieusb_set_gain_offset() [all...] |
H A D | microtek.c | 2682 size_t dr, dg, db; /* additions which will occur */ in pack_seqrgb_data() local 2685 dr = dg = db = nlines * rb->bpl; in pack_seqrgb_data() 2689 DBG(23, "pack_seq: dr/ar: %lu/%lu dg/ag: %lu/%lu db/ab: %lu/%lu\n", in pack_seqrgb_data() 2691 (u_long)dg, (u_long)ag, in pack_seqrgb_data() 2694 (dg > ag) || in pack_seqrgb_data() 2698 if (dg > ag) increase = MAX(increase, (dg - ag)); in pack_seqrgb_data() 2781 size_t dr, dg, db; /* additions which will occur */ in pack_goofyrgb_data() local 2785 for (dr = dg = db = 0, seg = 0, pt = s->scsi_buffer + 1; in pack_goofyrgb_data() 2790 case 'G': dg in pack_goofyrgb_data() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_colorkey.c | 51 double dr, dg, db, diff; in do_colorkey_pixel() local 54 dg = g * scale - colorkey_rgba[1]; in do_colorkey_pixel() 57 diff = sqrt((dr * dr + dg * dg + db * db) / (255.0 * 255.0 * 3.0)); in do_colorkey_pixel()
|
H A D | af_adynamicequalizer.c | 159 const double dg = tan(M_PI * dfrequency / sample_rate); in filter_channels() local 173 da[0] = 1. / (1. + dg * (dg + k)); in filter_channels() 174 da[1] = dg * da[0]; in filter_channels() 175 da[2] = dg * da[1]; in filter_channels()
|
H A D | vf_chromashift.c | 183 type *dg = (type *)out->data[0] + slice_start * glinesize; \ 195 dg[x] = sg[av_clip(x - gh, 0, w - 1) + gy]; \ 200 dg += glinesize; \ 250 type *dg = (type *)out->data[0] + slice_start * glinesize; \ 278 dg[x] = sg[gx + gy * sglinesize]; \ 283 dg += glinesize; \
|
H A D | vf_palettegen.c | 144 const int dg = c1[1] - c2[1]; in diff() local 146 return dr*dr + dg*dg + db*db; in diff() 155 const int dg = c1[2] - c2[2]; in diff_alpha() local 157 return da*da + dr*dr + dg*dg + db*db; in diff_alpha()
|
H A D | vf_paletteuse.c | 170 const int dg = c1[2] - c2[2]; in diff() local 174 return da*da + dr*dr + dg*dg + db*db; in diff() 179 return dr*dr + dg*dg + db*db; in diff()
|
H A D | vf_overlay.c | 362 const int dg = s->main_rgba_map[G]; in blend_slice_packed_rgb() local 403 d[dg] = S[sg]; in blend_slice_packed_rgb() 411 d[dg] = is_straight ? FAST_DIV255(d[dg] * (255 - alpha) + S[sg] * alpha) : in blend_slice_packed_rgb() 412 FFMIN(FAST_DIV255(d[dg] * (255 - alpha)) + S[sg], 255); in blend_slice_packed_rgb()
|
/third_party/skia/src/core/ |
H A D | SkScalerContext.h | 79 void setDeviceGamma(SkScalar dg) { in setDeviceGamma() 80 SkASSERT(0 <= dg && dg < SkIntToScalar(4)); in setDeviceGamma() 81 fDeviceGamma = SkScalarFloorToInt(dg * (1 << 6)); in setDeviceGamma()
|
/third_party/skia/src/effects/ |
H A D | SkColorMatrix.cpp | 78 void SkColorMatrix::postTranslate(float dr, float dg, float db, float da) { in postTranslate() argument 80 fMat[kG_Trans] += dg; in postTranslate()
|
/third_party/skia/tools/skdiff/ |
H A D | skdiff.h | 260 int dg = SkGetPackedG32(c0) - SkGetPackedG32(c1); in compute_diff_pmcolor() local 263 return SkPackARGB32(0xFF, SkAbs32(dr), SkAbs32(dg), SkAbs32(db)); in compute_diff_pmcolor()
|
H A D | skdiff.cpp | 146 int dg = SkGetPackedG32(c0) - SkGetPackedG32(c1); in colors_match_thresholded() local 151 (SkAbs32(dg) <= threshold) && in colors_match_thresholded()
|
/third_party/skia/include/private/ |
H A D | SkColorData.h | 342 unsigned dg = SkGetPackedG16(dst); in SkSrcOver32To16() local 348 dg = (sg + SkMul16ShiftRound(dg, isa, SK_G16_BITS)) >> (8 - SK_G16_BITS); in SkSrcOver32To16() 351 return SkPackRGB16(dr, dg, db); in SkSrcOver32To16()
|
/third_party/skia/third_party/externals/libpng/contrib/libtests/ |
H A D | pngstest.c | 802 double dr, dg, db; /* linear r,g,b scaled to 0..1 */ member 1265 out->r = out->g = out->b = sRGB(sRGB_to_d[in->g] * a + back->dg * (1-a)); in gpc_bckg() 1294 out->g = sRGB(sRGB_to_d[in->g] * a + back->dg * (1-a)); in gpc_bckc() 1339 sRGB_to_d[in->g], sRGB_to_d[in->b]) + back->dg * (1-a)); in gpc_g8b() 1763 out->r = out->g = out->b = sRGB(in->g * a + back->dg * a1); in gpc_b16g() 1787 out->g = sRGB(in->g * a + back->dg * a1); in gpc_b16c() 1861 out->r = out->g = out->b = sRGB(in->g * a + back->dg * a1); in gpc_gb16() 1892 out->g = sRGB(in->g * a + back->dg * a1); in gpc_cb16() 2166 result->background_color.dg = in transform_from_formats() 2176 result->background_color.dg in transform_from_formats() [all...] |
/third_party/skia/third_party/etc1/ |
H A D | etc1.cpp | 402 int dg = g52 - g51; in etc_encodeBaseColors() local 405 differential = inRange4bitSigned(dr) && inRange4bitSigned(dg) in etc_encodeBaseColors() 409 g2 = convert5To8(g51 + dg); in etc_encodeBaseColors() 412 | ((7 & dg) << 16) | (b51 << 11) | ((7 & db) << 8) | 2; in etc_encodeBaseColors()
|
/third_party/skia/modules/skottie/src/effects/ |
H A D | DisplacementMapEffect.cpp | 132 float dr, dg, db, da, d_offset, // displacement contribution member 220 xc.dg*s.x, yc.dg*s.y, 0, 0,
|
/third_party/skia/include/effects/ |
H A D | SkColorMatrix.h | 38 void postTranslate(float dr, float dg, float db, float da);
|
/third_party/skia/modules/canvaskit/ |
H A D | matrix.js | 508 CanvasKit.ColorMatrix.postTranslate = function(m, dr, dg, db, da) { 510 m[gPostTrans] += dg;
|
/third_party/astc-encoder/Source/ |
H A D | wuffs-v0.3.c | 16681 uint32_t dg = 0x101 * (0xFF & (dst_nonpremul >> 8)); in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() local 16690 dg = (dg * da) / 0xFFFF; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 16699 dg = ((sg * sa) + (dg * ia)) / 0xFFFF; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 16705 dg = (dg * 0xFFFF) / da; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 16712 dg >>= 8; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 16716 return (db << 0) | (dg << 8) | (dr << 16) | (da << 24); in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 16734 uint64_t dg in wuffs_base__composite_nonpremul_nonpremul_u64_axxx() local 16772 uint32_t dg = 0x101 * (0xFF & (dst_nonpremul >> 8)); wuffs_base__composite_nonpremul_premul_u32_axxx() local 16816 uint64_t dg = 0xFFFF & (dst_nonpremul >> 16); wuffs_base__composite_nonpremul_premul_u64_axxx() local 16854 uint32_t dg = 0x101 * (0xFF & (dst_premul >> 8)); wuffs_base__composite_premul_nonpremul_u32_axxx() local 16886 uint64_t dg = 0xFFFF & (dst_premul >> 16); wuffs_base__composite_premul_nonpremul_u64_axxx() local 16912 uint32_t dg = 0x101 * (0xFF & (dst_premul >> 8)); wuffs_base__composite_premul_premul_u32_axxx() local 17308 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__bgra_nonpremul__src_over() local 17364 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__bgra_nonpremul_4x16le__src_over() local 17449 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__bgra_premul__src_over() local 17569 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__rgba_nonpremul__src_over() local 17656 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__rgba_premul__src_over() local 17978 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__bgra_nonpremul__src_over() local 18026 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__bgra_nonpremul_4x16le__src_over() local 18101 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__bgra_premul__src_over() local 18179 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__rgba_nonpremul__src_over() local 18254 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__rgba_premul__src_over() local [all...] |
/third_party/skia/third_party/externals/wuffs/release/c/ |
H A D | wuffs-v0.3.c | 15618 uint32_t dg = 0x101 * (0xFF & (dst_nonpremul >> 8)); in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() local 15623 dg = (dg * da) / 0xFFFF; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 15632 dg = ((sg * sa) + (dg * ia)) / 0xFFFF; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 15638 dg = (dg * 0xFFFF) / da; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 15645 dg >>= 8; in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 15649 return (db << 0) | (dg << 8) | (dr << 16) | (da << 24); in wuffs_base__composite_nonpremul_nonpremul_u32_axxx() 15662 uint64_t dg in wuffs_base__composite_nonpremul_nonpremul_u64_axxx() local 15700 uint32_t dg = 0x101 * (0xFF & (dst_nonpremul >> 8)); wuffs_base__composite_nonpremul_premul_u32_axxx() local 15744 uint64_t dg = 0xFFFF & (dst_nonpremul >> 16); wuffs_base__composite_nonpremul_premul_u64_axxx() local 15782 uint32_t dg = 0x101 * (0xFF & (dst_premul >> 8)); wuffs_base__composite_premul_nonpremul_u32_axxx() local 15814 uint64_t dg = 0xFFFF & (dst_premul >> 16); wuffs_base__composite_premul_nonpremul_u64_axxx() local 15840 uint32_t dg = 0x101 * (0xFF & (dst_premul >> 8)); wuffs_base__composite_premul_premul_u32_axxx() local 16232 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__bgra_nonpremul__src_over() local 16288 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__bgra_nonpremul_4x16le__src_over() local 16373 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__bgra_premul__src_over() local 16493 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__rgba_nonpremul__src_over() local 16580 uint32_t dg = (0x1041 * old_g6) >> 2; wuffs_base__pixel_swizzler__bgr_565__rgba_premul__src_over() local 16906 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__bgra_nonpremul__src_over() local 16954 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__bgra_nonpremul_4x16le__src_over() local 17029 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__bgra_premul__src_over() local 17107 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__rgba_nonpremul__src_over() local 17182 uint32_t dg = 0x101 * ((uint32_t)d[1]); wuffs_base__pixel_swizzler__bgr__rgba_premul__src_over() local [all...] |
/third_party/skia/third_party/externals/microhttpd/ |
H A D | config.guess | 511 echo m88k-dg-dgux${UNAME_RELEASE} 513 echo m88k-dg-dguxbcs${UNAME_RELEASE} 516 echo i586-dg-dgux${UNAME_RELEASE}
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/ |
H A D | TransliteratorTest.java | 839 Transliterator dg = Transliterator.getInstance(ID); in TestInterIndic() 840 if (dg == null) { in TestInterIndic() 844 String id = dg.getID(); in TestInterIndic() 850 expect(dg, dev, guj); in TestInterIndic()
|
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
H A D | TransliteratorTest.java | 836 Transliterator dg = Transliterator.getInstance(ID); in TestInterIndic() 837 if (dg == null) { in TestInterIndic() 841 String id = dg.getID(); in TestInterIndic() 847 expect(dg, dev, guj); in TestInterIndic()
|